Skip to content

Commit

Permalink
#1867 fix markdown violation in books/admin_guide (#2000)
Browse files Browse the repository at this point in the history
* #1867 fix markdown violation in books/admin_guide

* #1867 fix markdown violation in books
  • Loading branch information
nishaaaaaant authored Apr 10, 2024
1 parent 45893b8 commit ff82ddb
Show file tree
Hide file tree
Showing 48 changed files with 1,375 additions and 1,361 deletions.
44 changes: 22 additions & 22 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 ++arrow-up++ and ++arrow-down++. 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. |
| ++exclam+exclam++ | Recalls the last command placed. |
| ++exclam+n++ | Recalls the command by its number in the list. |
| ++exclam+"string"++ | Recalls the most recent command beginning with the string. |
| ++arrow-up++ | Navigates through your history working backward in time from the most recent command. |
| ++arrow-down++ | 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 All @@ -278,7 +278,7 @@ On a physical terminal, the display will be permanently hidden, whereas in a gra

!!! Tip

<kbd>CTRL</kbd> + <kbd>L</kbd> will have the same effect as the `clear` command
++control+l++ will have the same effect as the `clear` command

### `echo` command

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. |
| ++arrow-up++ ++arrow-down++ ++arrow-right++ ++arrow-left++ | Move up, down a line, or to the right or left. |
| ++enter++ | Move down one line. |
| ++space++ | Move down one page. |
| ++page-up++ and ++page-down++ | 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 ++control+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 Down Expand Up @@ -1000,7 +1000,7 @@ adm:x:3:4:adm:/var/adm/:/sbin/nologin
| `-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. |
| `-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+bar++ 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
4 changes: 2 additions & 2 deletions docs/books/admin_guide/04-advanced-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ The `-n` option allows you to specify the number of seconds between each executi

!!! Note

To exit the `watch` command, you must type the keys: <kbd>CTRL</kbd>+<kbd>C</kbd> to kill the process.
To exit the `watch` command, you must type the keys: ++control+c++ to kill the process.

Examples:

Expand Down Expand Up @@ -421,7 +421,7 @@ This command already saves time. Combine it with owner, owner group, and rights
sudo install -v -o rocky -g users -m 644 -D -t ~/samples/ src/sample.txt
```

!!! note
!!! note

`sudo` is required in this case to make property changes.

Expand Down
Loading

0 comments on commit ff82ddb

Please sign in to comment.