Linux Crash Course - The ps Command

  Рет қаралды 48,102

Learn Linux TV

Learn Linux TV

Күн бұрын

The ps command is useful for taking a look at the processes that are running on your Linux system. In this video, I'll show you the basics of the ps command, and some variations you can use to show the output in different ways.
🎓 CROWDSTRIKE CRASH SURVIVOR T-SHIRT
Commemorate the largest outage in history with the latest addition to the LLTV merch shop.
Get yours here ➜ learnlinux.link/crash-shirt
🎓 BRAND NEW UDEMY COURSES AVAILABLE!
Check out my new courses on Udemy and learn something new!
• Getting Started with Ansible ➜ learnlinux.link/ansible
• LPI Linux Essentials Complete Workshop ➜ learnlinux.link/linux-essentials
Support Linux Learning!
• Grab some Linux swag from the official Merch Shop ➜ merch.learnlinux.tv
• Become a Channel Member here on KZfaq ➜ learnlinux.link/member
• Become a Patron and gain access to exclusive perks ➜ learnlinux.link/patron
• 5% discount on LPI exam vouchers ➜ learnlinux.link/lpi-voucher
• Check out my latest book, Mastering Ubuntu Server 4th Edition ➜ ubuntuserverbook.com
• Grab an awesome Pi-powered KVM ➜ learnlinux.link/tinypilot
• Jay's Gear ➜ learnlinux.link/amazon
Note: Royalties and/or commission is earned from each of the above links
⏰ TIME CODES
00:00 - Intro
00:45 - ps command (with no options)
03:57 - ps command argument types
06:16 - Viewing processes from all terminals
08:23 - Process relationship
11:40 - ps aux*🎓 FULL LINUX COURSES FROM LEARN LINUX TV*
• Linux Crash Course ➜ linux.video/cc
• Learn tmux ➜ linux.video/tmux
• Learn vim ➜ linux.video/vim
• Bash Scripting Series ➜ linux.video/bash
• Proxmox VE ➜ linux.video/pve
• Getting Started with Ansible (Udemy) ➜ learnlinux.link/ansible
• LPI Linux Essentials Workshop (Udemy) ➜ learnlinux.link/linux-essentials
🌐 LEARN LINUX TV ON THE WEB
• Main site ➜ www.learnlinux.tv
• Community ➜ community.learnlinux.tv
• Official Github Account ➜ github.com/LearnLinuxTV
• Enterprise Linux Security Podcast ➜ enterpriselinuxsecurity.show
• The Homelab Show Podcast ➜ thehomelab.show
• Jay on Udemy ➜ www.udemy.com/user/jay-lacroix-3
• Jay on Twitter ➜ x.com/JayTheLinuxGuy
• Content Ethics ➜ www.learnlinux.tv/content-ethics
• Request Assistance ➜ www.learnlinux.tv/request-ass...
⚠️ DISCLAIMER
Learn Linux TV provides technical content that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). Learn Linux TV is not responsible for any damages that may arise from any use of this content. Always make sure you have written permission before working with any infrastructure and that you are compliant with all company rules, change control procedures, and local laws.
#Linux #Tutorial #CLI

Пікірлер: 36
@derekgoodwine7509
@derekgoodwine7509 2 жыл бұрын
I really wish you wrote a free PDF book with all this explanation for beginner to intermediate level. Believe me I read several books about Linux. Nothing gets even closer to your clarity, simplicity, and in-deep explanation you give to your subscribers. I am really loyal followers of you and I glad your channel crossed my Linux Journey a long time ago! Sir you are great!
@spectrumecho
@spectrumecho 2 жыл бұрын
Do your very best to buy Jay's book - I did and it's fantastic 👌
@SupraRyu
@SupraRyu 2 жыл бұрын
work for free?… Do you work for free?…
@w0nnafight
@w0nnafight Жыл бұрын
@@SupraRyu your mom does
@shallex5744
@shallex5744 Ай бұрын
@@SupraRyu sometimes
@MrEric377
@MrEric377 2 жыл бұрын
Thank you so much for that. Now I have a better understanding of the ps command I never did before. One thing you left me wanting though was to sort by CPU and Mem so I looked it up. ps aux --sort pcpu or ps aux --sort pmem sort by percent CPU or sort by percent memory. Again thank you for making the linux experience more enjoyable.
@elnurvalikhanli6783
@elnurvalikhanli6783 2 жыл бұрын
ps aux info can't be retrieved from htop ?
@antoniorobles998
@antoniorobles998 2 жыл бұрын
Hi! You are the only youtuber that have my likes even before watch the contents!. Many thanks for your videos. Keep on.
@Heck-ed6sr
@Heck-ed6sr Жыл бұрын
Hey Jay, noticed @7:31 you mentioned a capital S means the process is in uninterruptible sleep. Did you mean interruptible sleep instead? The man page tells me 'S' is for interruptible sleep and 'D' is for uninterruptible sleep.
@DL-xf3ur
@DL-xf3ur 2 жыл бұрын
Thank you as always Jay! Just great.
@srsr6099
@srsr6099 2 жыл бұрын
Awesome Jay, ps makes a prerequisite to top, I guess
@gracienlebel4824
@gracienlebel4824 Жыл бұрын
Awesome tutorial, thanks
@bidzapfc
@bidzapfc 2 жыл бұрын
One of the first commands I learned are ps ax | grep *processname* and then I could tap kill -9 PID
@BDBD16
@BDBD16 2 жыл бұрын
YOU BETTER AX DAT PID!
@ped7g
@ped7g 2 жыл бұрын
unix essential #1 (also the regular way how to exit vi, at least until you decide to learn how to use vi)
@Ranblv
@Ranblv 2 жыл бұрын
great job
@vamankumar8557
@vamankumar8557 2 жыл бұрын
Hi Jay...I have one question from my side. When the tty shows as "?" ...what would that tell us. Is the process not running at that time?
@Heck-ed6sr
@Heck-ed6sr Жыл бұрын
Can someone help to explain why I get the same result when running 'ps aux' and 'ps -aux'? Doesn't the options mean different things when written in Linux and BSD style?
@Raphael-ql9pf
@Raphael-ql9pf Жыл бұрын
What's the difference ps and ps fx? Processes Inside outside terminal
@darren537
@darren537 2 жыл бұрын
What do you you guys learn Linux for? Is there a point if your not a programmer or IT networking Tech
@lightbearer972
@lightbearer972 2 жыл бұрын
@Darren Many Linux users prefer not being beholden to a big tech company like Microsoft or Apple, or enjoy the prospect of being able to have more control over the applications and OS they use and to have a say in how that software is developed. Open source is by its nature a necessarily more transparent and collaborative effort than proprietary offerings. If Apple, for example, changes MacOS in some way that renders a third-party app suddenly useless, the creator of that app not only has to deal with the decisions and alterations Apple made, but also probably had no warning those changes were coming, much less a say in the matter. By definition, such a thing couldn't and wouldn't happen in the open source world. And even if it did, users who didn't like the changes could modify the OS code to get rid of them. Linux allows users to have control over how they use their computers, in short, a phenomenon which many would say has steadily eroded away from more common platforms like Windows, and which arguably has never been a priority for Apple and its Macs. In fact, it's been well documented that Steve Jobs wanted Apple products to be as locked down and non-expandable as possible, and that Steve Wozniak, Jobs' former business partner, left the company in large part because he disagreed and wanted users to be able to tinker with their hardware.
@glyakk
@glyakk 2 жыл бұрын
Some people just enjoy tinkering. Most people who buy a device will only use it as the manufacture intended, and there are others who want to take it apart or change things around and modify their device to their liking.
@thomasblackwell9507
@thomasblackwell9507 4 ай бұрын
Sorry to bother you, but I noticed that you changed the font size while you were using it. What is the command that you are using to do that? Thank you.
@zzzxxxxzxzxzzz
@zzzxxxxzxzxzzz 4 ай бұрын
you can change it in gnome-terminal settings or use Ctrl + Shift + =
@MrMackster01
@MrMackster01 2 жыл бұрын
When I first saw ‘TTY’ in Linux, I thought it was short for TTYL ‘talk to you later ‘ 😂🤨
@swinnburn
@swinnburn 2 жыл бұрын
I wish I could do this with my brain!?
@Mikesco3
@Mikesco3 2 жыл бұрын
I would have just mentioned stop on the outro just as a bonus
@Jkauppa
@Jkauppa 2 жыл бұрын
does not give gpu usage, nor does system monitor, or top
@Jkauppa
@Jkauppa 2 жыл бұрын
dont claim a system is turing complete it it lacks easy functionality
@pilotashish
@pilotashish 2 жыл бұрын
👋 hello
@hestiahelios7431
@hestiahelios7431 2 жыл бұрын
TTY = Typewriter
@jasonlee3247
@jasonlee3247 2 жыл бұрын
Nope
@othernicksweretaken
@othernicksweretaken 2 жыл бұрын
I think you omitted one T. Wasn't it _teletypewriter_ ?
@darthnihiluz5305
@darthnihiluz5305 2 жыл бұрын
ps -ef
@rohitrajkumar2706
@rohitrajkumar2706 9 ай бұрын
dude, are you a hacker?
@othernicksweretaken
@othernicksweretaken 2 жыл бұрын
Why is BSD style still so popular? Because it saves you hitting one dash key? There are only few Unix commands where you can avoid the dash. E.g. tar, like in gzip -dc tarball.tgz | (cd /path/to/untar/target && tar xvf -) This used to be the way to untar to different directory on Unices before the advent of GNU tar with its -C option. Another dashless options command that comes to mind is the convert and copy command dd. Although I'm old enough to have known BSD style I never could get used to it and quickly adopted POSIX style with the single dashes and later on GNU style with the double dashes for long opts.
Awesome Linux Tools: Lynis from CISOfy
14:52
Learn Linux TV
Рет қаралды 20 М.
Linux Crash Course - Data Streams (stdin, stdout & stderr)
17:13
Learn Linux TV
Рет қаралды 51 М.
Clowns abuse children#Short #Officer Rabbit #angel
00:51
兔子警官
Рет қаралды 78 МЛН
Playing hide and seek with my dog 🐶
00:25
Zach King
Рет қаралды 33 МЛН
How to use the ps Command | Linux Command Line Basics
14:45
Akamai Developer
Рет қаралды 34 М.
Linux Process Tuning Made Easy: Understanding nice and renice
16:34
Learn Linux TV
Рет қаралды 12 М.
Linux Crash Course - sudo
26:11
Learn Linux TV
Рет қаралды 65 М.
Linux Crash Course - Understanding Memory and Swap Usage
20:55
Learn Linux TV
Рет қаралды 44 М.
Linux Crash Course - The find command
25:56
Learn Linux TV
Рет қаралды 82 М.
Linux Command-Line Tips & Tricks: Over 15 Examples!
31:37
Learn Linux TV
Рет қаралды 214 М.
Linux processes, init, fork/exec, ps, kill, fg, bg, jobs
13:47
Engineer Man
Рет қаралды 170 М.
12 GREAT command line programs YOU recommended!
16:25
The Linux Experiment
Рет қаралды 243 М.
Linux Crash Course - The grep Command
14:57
Learn Linux TV
Рет қаралды 101 М.
8 super heroic Linux commands that you probably aren't using
8:38
Engineer Man
Рет қаралды 727 М.
S24 Ultra and IPhone 14 Pro Max telephoto shooting comparison #shorts
0:15
Photographer Army
Рет қаралды 10 МЛН
Красиво, но телефон жаль
0:32
Бесполезные Новости
Рет қаралды 1,6 МЛН
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 62 МЛН
Look, this is the 97th generation of the phone?
0:13
Edcers
Рет қаралды 7 МЛН
НОВЫЕ ФЕЙК iPHONE 🤯 #iphone
0:37
ALSER kz
Рет қаралды 278 М.
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 6 МЛН