diff --git a/ebook/en/content/011-the-help-command.md b/ebook/en/content/011-the-help-command.md index 898cbe48..cbc4d1ba 100644 --- a/ebook/en/content/011-the-help-command.md +++ b/ebook/en/content/011-the-help-command.md @@ -4,6 +4,8 @@ Display information about builtin commands. If a `PATTERN` is specified, this command gives detailed help on all commands matching the `PATTERN`, otherwise the list of available help topics is printed. +> **Quick Tip:** The `help` command only works for commands that are "built-in" to the Bash shell itself (like `cd`, `pwd`, `echo`, `read`). It will not work for standalone programs like `ls`, `grep`, or `find`. To get help for those, you should use the `man` command (e.g., `man ls`). + ## Syntax ```bash $ help [-dms] [PATTERN ...] @@ -20,12 +22,22 @@ $ help [-dms] [PATTERN ...] 1. We get the complete information about the `cd` command ```bash $ help cd +cd: cd [-L|[-P [-e]] [-@]] [dir] + Change the shell working directory. + + Change the current directory to DIR. The default DIR is the value of the + HOME shell variable. +... +(additional details about options and exit status follow) ``` 2. We get a short description about the `pwd` command ```bash $ help -d pwd +pwd: pwd [-LP] + Print the name of the current working directory. ``` 3. We get the syntax of the `cd` command ```bash $ help -s cd +cd [-L|[-P [-e]] [-@]] [dir] ``` diff --git a/ebook/en/content/018-the-free-command.md b/ebook/en/content/018-the-free-command.md index f05a9542..94982575 100644 --- a/ebook/en/content/018-the-free-command.md +++ b/ebook/en/content/018-the-free-command.md @@ -10,7 +10,7 @@ The `free` command in Linux/Unix is used to show memory (RAM/SWAP) information. --- Output the memory usage - available and used, as well as swap **Details:** ---- Outputted values are not human-readable (are in bytes) +--- The values are shown in kibibytes by default. **Command:** ``` @@ -29,3 +29,15 @@ free ``` free -h ``` +## Show memory usage with a total line + +**Action:** +--- Output the memory usage and also add a summary line with the total. + +**Details:** +--- The `-t` flag is useful for seeing the combined total of memory and swap. + +**Command:** +``` +free -t +``` \ No newline at end of file