From ee7ab0dd76145d8931c66eb4b20b444068d17d30 Mon Sep 17 00:00:00 2001 From: tianci Date: Sun, 10 Apr 2022 09:42:06 +0800 Subject: [PATCH 1/4] rm command option description modification~ --- docs/books/admin_guide/03-commands.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/books/admin_guide/03-commands.md b/docs/books/admin_guide/03-commands.md index 72e450b53f..c7b9984852 100644 --- a/docs/books/admin_guide/03-commands.md +++ b/docs/books/admin_guide/03-commands.md @@ -688,9 +688,9 @@ rm [-f] [-r] file [file] [...] | Options | Information | | ------- | ---------------------------------------- | -| `-f` | Do not ask for confirmation of deletion. | -| `-i` | Requires confirmation of deletion. | -| `-r` | Recursively deletes subdirectories. | +| `-f` | Do not ask whether to delete. | +| `-i` | Ask whether to delete. | +| `-r` | Delete a directory and recursively delete its subdirectories. | !!! Note From ce8d4be528a1078bddfd36ab732f20c7ffc6effa Mon Sep 17 00:00:00 2001 From: tianci Date: Sun, 10 Apr 2022 10:16:45 +0800 Subject: [PATCH 2/4] update --- docs/books/admin_guide/03-commands.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/books/admin_guide/03-commands.md b/docs/books/admin_guide/03-commands.md index c7b9984852..84384f22a5 100644 --- a/docs/books/admin_guide/03-commands.md +++ b/docs/books/admin_guide/03-commands.md @@ -737,7 +737,7 @@ A few concrete cases will help you understand the difficulties that can arise: $ mv /home/rockstar/file1 /home/rockstar/file2 ``` -Renames `file1` to `file2`, if `file2` already exists, it will be replaced by `file1`. +Renames `file1` to `file2`, if `file2` already exists, Replace the contents of the file with `file1`. ```bash $ mv /home/rockstar/file1 /home/rockstar/file2 /tmp From 927f672304533064961bb3ee56e8ad1af8750c61 Mon Sep 17 00:00:00 2001 From: tianci Date: Sun, 10 Apr 2022 11:55:21 +0800 Subject: [PATCH 3/4] Style modification and correction of less command --- docs/books/admin_guide/03-commands.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/books/admin_guide/03-commands.md b/docs/books/admin_guide/03-commands.md index 84384f22a5..3cc3c623db 100644 --- a/docs/books/admin_guide/03-commands.md +++ b/docs/books/admin_guide/03-commands.md @@ -863,14 +863,14 @@ The commands specific to `less` are: | Command | Action | | ----------------- | ----------------------------------------------- | -| `h` | Help. | -| `Arrows` | 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. | -| `Begin` and `End` | Move to the beginning or end of a file. | +| 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. | +| gg and G | Move to the first and last pages | | `/text` | Search for text. | -| `q` | Quit the `less` command. | +| q | Quit the `less` command. | ### `cat` command From 287e322b8f4c10b50d36e711cec446f0e14d6b52 Mon Sep 17 00:00:00 2001 From: tianci li <86754294+jimcat8@users.noreply.github.com> Date: Sun, 10 Apr 2022 19:32:12 +0800 Subject: [PATCH 4/4] Update 03-commands.md --- docs/books/admin_guide/03-commands.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/books/admin_guide/03-commands.md b/docs/books/admin_guide/03-commands.md index 3cc3c623db..06e9bd0d42 100644 --- a/docs/books/admin_guide/03-commands.md +++ b/docs/books/admin_guide/03-commands.md @@ -737,7 +737,7 @@ A few concrete cases will help you understand the difficulties that can arise: $ mv /home/rockstar/file1 /home/rockstar/file2 ``` -Renames `file1` to `file2`, if `file2` already exists, Replace the contents of the file with `file1`. +Renames `file1` to `file2`. If `file2` already exists, replace the contents of the file with `file1`. ```bash $ mv /home/rockstar/file1 /home/rockstar/file2 /tmp