From c176a295f617fce22085e7cd82597175d621e392 Mon Sep 17 00:00:00 2001 From: tianci Date: Tue, 3 May 2022 14:02:57 +0800 Subject: [PATCH 1/2] A simple modification of the content of a line of text --- 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 8b897cda7c..5dd6530747 100644 --- a/docs/books/admin_guide/03-commands.md +++ b/docs/books/admin_guide/03-commands.md @@ -1349,7 +1349,7 @@ The simple `>` redirection overwrites the contents of the output file: $ date +%F > date_file ``` -while the double redirection `>>` adds (concatenates) to the content of the output file. +When the `>>` character is used, it indicates that the output result of the command is appended to the file content. ```bash $ date +%F >> date_file From 488c52a6542ba03f407155b5d837b1ca13d88aa9 Mon Sep 17 00:00:00 2001 From: tianci Date: Tue, 3 May 2022 14:56:49 +0800 Subject: [PATCH 2/2] Modify the wrong path --- 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 5dd6530747..efe8dd745a 100644 --- a/docs/books/admin_guide/03-commands.md +++ b/docs/books/admin_guide/03-commands.md @@ -1477,7 +1477,7 @@ The aliases are only defined temporarily, for the time of the user session. For permanent use, they must be created in the: * `.bashrc` file in the user's login directory; -* `/etc/profile.d/alias.sh` file for all users. +* `/etc/bashrc` file for all users. !!! Warning