From 29d7bbf889caf93f5507e02580753e4c655c71ba Mon Sep 17 00:00:00 2001 From: Facundo Acevedo Date: Wed, 22 Jan 2020 20:24:39 -0300 Subject: [PATCH] Update README.md - Added some options on how to get help on the command line - Unmarked above question as incomplete - Added some options on how to identify processes - Unmarked above question as incomplete --- README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6227248..e743059 100644 --- a/README.md +++ b/README.md @@ -200,11 +200,13 @@ Useful resources:
-How do you get help on the command line? ***
+How do you get help on the command line?
- `man` [commandname] can be used to see a description of a command (ex.: `man less`, `man cat`) - `-h` or `--help` some programs will implement printing instructions when passed this parameter (ex.: `python -h` and `python --help`) +- `apropos` [topic] is a good resource to get commands related to the topic. +- `help` [bash-builtin] will show you a brief summarie of a builtin bash command (ex.: `help alias`, `help if`)
@@ -347,9 +349,14 @@ Useful resources:
-Before you can manage processes, you must be able to identify them. Which tools will you use? ***
+Before you can manage processes, you must be able to identify them. Which tools will you use?
+ + +`ps` displays information about current running proceses (ex.: `ps aux`) +`pidof` [processname] will show the processes ids of the process name (ex.: `pidof bash`) +`pstree` shows running processes as a tree, use the parameter `-p` to show related PID +`pgrep` looks up for processes based on attributes (ex.: `pgrep -u root bash` will show the PIDs of the processes called bash and owned by root, it can also be used in this way: `pgrep bash` this will show all processes named bash) -To be completed.