Skip to content

Commit

Permalink
* update docs/books/admin_guide 03-commands.md
Browse files Browse the repository at this point in the history
* update docs/books/admin_guide 05-vi.md
rocky-linux#1867 fix markdown violations
  • Loading branch information
nishaaaaaant committed Mar 5, 2024
1 parent ad1ae6d commit 399ef7e
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 76 deletions.
46 changes: 23 additions & 23 deletions docs/books/admin_guide/03-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ man 5 passwd

will inform him about the files related to the command.

Navigate through the manual with the arrows <kbd>↑</kbd> and <kbd>↓</kbd>. Exit the manual by pressing the <kbd>q</kbd> key.
Navigate through the manual with the arrows ``and ``. Exit the manual by pressing the `q` key.

### `shutdown` command

Expand Down Expand Up @@ -252,21 +252,21 @@ To manipulate the history, the following commands entered from the command promp

| Keys | Function |
| ------------------ | --------------------------------------------------------- |
| <kbd>!!</kbd> | Recalls the last command placed. |
| <kbd>!n</kbd> | Recalls the command by its number in the list. |
| <kbd>!string</kbd> | Recalls the most recent command beginning with the string. |
| <kbd>↑</kbd> | Navigates through your history working backward in time from the most recent command. |
| <kbd>↓</kbd> | Navigates through your history working forward in time. |
| `!!` | Recalls the last command placed. |
| `!n` | Recalls the command by its number in the list. |
| `!string` | Recalls the most recent command beginning with the string. |
| `` | Navigates through your history working backward in time from the most recent command. |
| `` | Navigates through your history working forward in time. |

### Auto-complete

Auto-completion is a great help.

* Completes commands, entered paths, or file names.
* Press the <kbd>TAB</kbd> key to complete the entry in the case of a single solution.
* In the case of multiple solutions, press <kbd>TAB</kbd> a second time to see options.
* Press the `TAB` key to complete the entry in the case of a single solution.
* In the case of multiple solutions, press `TAB` a second time to see options.

If double-pressing the <kbd>TAB</kbd> key presents no options, then there is no solution to the current completion.
If double-pressing the `TAB` key presents no options, then there is no solution to the current completion.

## Display and Identification

Expand Down Expand Up @@ -850,7 +850,7 @@ root:x:0:0:root:/root:/bin/bash
...
```

Using the <kbd>ENTER</kbd> key, the move is line by line. Using the <kbd>SPACE</kbd> key, the move is page by page. `/text` allows you to search for the occurrence in the file.
Using the `ENTER` key, the move is line by line. Using the `SPACE` key, the move is page by page. `/text` allows you to search for the occurrence in the file.

### `less` command

Expand All @@ -864,14 +864,14 @@ The commands specific to `less` are:

| Command | Action |
| ----------------- | ----------------------------------------------- |
| <kbd>h</kbd> | Help. |
| <kbd>↑</kbd><kbd>↓</kbd><kbd>→</kbd><kbd>←</kbd> | Move up, down a line, or to the right or left. |
| <kbd>Enter</kbd> | Move down one line. |
| <kbd>Space</kbd> | Move down one page. |
| <kbd>PgUp</kbd> and <kbd>PgDn</kbd> | Move up or down one page. |
| <kbd>g</kbd> and <kbd>G</kbd> | Move to the first and last pages |
| `h` | Help. |
| `` `` `` `` | Move up, down a line, or to the right or left. |
| `Enter` | Move down one line. |
| `Space` | Move down one page. |
| `PgUp` and `PgDn` | Move up or down one page. |
| `g` and `G` | Move to the first and last pages |
| `/text` | Search for text. |
| <kbd>q</kbd> | Quit the `less` command. |
| `q` | Quit the `less` command. |

### `cat` command

Expand Down Expand Up @@ -971,7 +971,7 @@ tcpdump::x:72:72::/:/sbin/nologin
user1:x:500:500:grp1:/home/user1:/bin/bash
```
With the `-f` option, the change information of the file will always be output unless the user exits the monitoring state with <kbd>CTRL</kbd> + <kbd>C</kbd>. This option is very frequently used to track log files (the logs) in real time.
With the `-f` option, the change information of the file will always be output unless the user exits the monitoring state with `CTRL` + `C`. This option is very frequently used to track log files (the logs) in real time.
Without the `-n` option, the `tail` command displays the last 10 lines of the file.
Expand All @@ -995,12 +995,12 @@ adm:x:3:4:adm:/var/adm/:/sbin/nologin
| Option | Description |
| --------- | ------------------------------------------- |
| `-k` | Specify the columns to be separated. You can specify multiple columns. |
| `-k` | Specify the columns to be separated. You can specify multiple columns. |
| `-n` | Requests a numeric sort. |
| `-o file` | Saves the sort to the specified file. |
| `-t` | Specify a delimiter, which requires that the contents of the corresponding file must be regularly delimited column contents, otherwise they cannot be sorted properly. |
| `-t` | Specify a delimiter, which requires that the contents of the corresponding file must be regularly delimited column contents, otherwise they cannot be sorted properly. |
| `-r` | Reverse the order of the result. Used in conjunction with the `-n` option to sort in order from largest to smallest. |
| `-u` | Remove duplicates after sorting. Equivalent to `sort file | uniq`. |
| `-u` | Remove duplicates after sorting. Equivalent to `sort file uniq`. |
The `sort` command sorts the file only on the screen. The file is not modified by the sorting. To save the sort, use the `-o` option or an output redirection `>`.
Expand Down Expand Up @@ -1394,7 +1394,7 @@ When both output streams are redirected, no information is displayed on the scre
A **pipe** is a mechanism allowing you to link the standard output of a first command to the standard input of a second command.
This communication is uni directional and is done with the `|` symbol. The pipe symbol `|` is obtained by pressing the <kbd>SHIFT</kbd> + <kbd>|</kbd> simultaneously.
This communication is uni directional and is done with the `|` symbol. The pipe symbol `|` is obtained by pressing the `SHIFT` + `|` simultaneously.
![pipe](images/pipe.png)
Expand Down Expand Up @@ -1596,7 +1596,7 @@ none on /proc/sys/fs/binfmt_misc type binfmt_misc (r
The `;` character strings the commands.
The commands will all run sequentially in the order of input once the user presses <kbd>ENTER</kbd>.
The commands will all run sequentially in the order of input once the user presses `ENTER`.
```bash
ls /; cd /home; ls -lia; cd /
Expand Down
Loading

0 comments on commit 399ef7e

Please sign in to comment.