Linux systems can have hundreds of processes. You can view these with the ps command. The ps command has a ton of options but for this video we focus on Unix and GNU options. These options will allow you to get a lot of information about our system processes.
- [Instructor] A Linux system may have hundreds of processes…running at any time.…The first tool we'll look at to monitor processes…is the ps command.…In a terminal, type in ps and hit Enter.…By default, ps only shows the processes…run by the user executing it.…It shows the process ID,…the terminal that was run on,…the aggregated execution time,…and the command that was run.…Oddly, the ps command has three different types…of syntax options: Unix, BSD, and GNU.…
The Unix options looks as you'd expect…with a dash before a single letter.…The GNU options are words with two dashes…just like other commands.…The odd ones are the BSD options…which don't have any dashes at all.…For this course,…we'll focus on the Unix and GNU options.…To get ps to display every process,…we'll want to use the -e option.…Type in "ps -e" and hit Enter.…This still shows the same columns as ps with no options,…but shows every process.…
To give us an idea of…which processes start at other processes,…we can pass the Hierarchy option, or -H.…Type in "ps -eH".…
- Write the command that will take you to the most recent directory.
- Write the command that brings back the arguments and options from the previous line.
- Explain what extended globs can do.
- Identify the access.conf line that will restrict all users from using the cron service except for the user named bob.
- List the line that will get a list of only running services.
- Identify what typing ‘systemctl enable crond’ will do.
Skill Level Intermediate
Linux: User and Group Managementwith Grant McWilliams1h 8m Intermediate
1. Linux Shells Overview
2. Using the Bash Shell
3. Linux Processes
4. Job Scheduling
5. System Services
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.