From a40e74ac05366765d814c04a6ae2a1afd4a894ce Mon Sep 17 00:00:00 2001 From: litianci Date: Tue, 20 Dec 2022 15:48:51 +0800 Subject: [PATCH 1/5] Modify the error description of the -l option --- 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 60aba8b3db..f263962cd1 100644 --- a/docs/books/admin_guide/03-commands.md +++ b/docs/books/admin_guide/03-commands.md @@ -479,7 +479,7 @@ The main options of the `ls` command are: | ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | | `-a` | Displays all files, even hidden ones. Hidden files in Linux are those beginning with `.`. | | `-i` | Displays inode numbers. | -| `-l` | Displays a vertical list of files with additional information formatted in columns. | +| `-l` | Use a long listing format, that is, each line displays long format information for a file/directory. | The `ls` command, however, has a lot of options (see `man`): From ffeb751e16313d079654ac19cf7d791d9c16c347 Mon Sep 17 00:00:00 2001 From: litianci Date: Tue, 20 Dec 2022 16:19:49 +0800 Subject: [PATCH 2/5] Modify the error description of the option --- docs/books/admin_guide/03-commands.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/books/admin_guide/03-commands.md b/docs/books/admin_guide/03-commands.md index f263962cd1..121ce1e59c 100644 --- a/docs/books/admin_guide/03-commands.md +++ b/docs/books/admin_guide/03-commands.md @@ -486,13 +486,13 @@ The `ls` command, however, has a lot of options (see `man`): | Option | Information | | ------ | ------------ | | `-d` | Displays information about a directory instead of listing its contents. | -| `-g` | Displays UID and GID rather than owner names. | -| `-h` | Displays file sizes in the most appropriate format (byte, kilobyte, megabyte, gigabyte, ...). `h` stands for Human Readable. | -| `-s` | Displays the number of blocks occupied by the file. One block equals 400K. | +| `-g` | Like -l option, but do not list owner. | +| `-h` | Displays file sizes in the most appropriate format (byte, kilobyte, megabyte, gigabyte, ...). `h` stands for Human Readable. Need to be used with -l option. | +| `-s` | Displays the number of blocks occupied by the file. In the GNU/Linux operating system, "block" is the smallest unit of storage in the file system, one block equals 4096Byte. | | `-A` | Displays all files in the directory except `.` and `..` | | `-R` | Displays the contents of subdirectories recursively. | | `-F` | Displays the type of files. Prints a `/` for a directory, `*` for executables, `@` for a symbolic link, and nothing for a text file. | -| `-X` | Sorts files according to their extensions. | +| `-X` | Sorts files according to their extensions. | * Description of columns generated by running the `ls -lia` command: From 41867e498e5c3ed16978eccf5f90397e1a5dd536 Mon Sep 17 00:00:00 2001 From: litianci Date: Tue, 20 Dec 2022 16:29:20 +0800 Subject: [PATCH 3/5] updates --- 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 121ce1e59c..8a2ed64ed5 100644 --- a/docs/books/admin_guide/03-commands.md +++ b/docs/books/admin_guide/03-commands.md @@ -488,7 +488,7 @@ The `ls` command, however, has a lot of options (see `man`): | `-d` | Displays information about a directory instead of listing its contents. | | `-g` | Like -l option, but do not list owner. | | `-h` | Displays file sizes in the most appropriate format (byte, kilobyte, megabyte, gigabyte, ...). `h` stands for Human Readable. Need to be used with -l option. | -| `-s` | Displays the number of blocks occupied by the file. In the GNU/Linux operating system, "block" is the smallest unit of storage in the file system, one block equals 4096Byte. | +| `-s` | Displays the allocated size of each file, in blocks. In the GNU/Linux operating system, "block" is the smallest unit of storage in the file system, one block equals 4096Byte. | | `-A` | Displays all files in the directory except `.` and `..` | | `-R` | Displays the contents of subdirectories recursively. | | `-F` | Displays the type of files. Prints a `/` for a directory, `*` for executables, `@` for a symbolic link, and nothing for a text file. | From 96863046d4a88b045afdcae93598506663be0e5d Mon Sep 17 00:00:00 2001 From: tianci li <86754294+jimcat8@users.noreply.github.com> Date: Tue, 20 Dec 2022 23:43:46 +0800 Subject: [PATCH 4/5] Update docs/books/admin_guide/03-commands.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Serge Croisé --- 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 8a2ed64ed5..d92adf1a6b 100644 --- a/docs/books/admin_guide/03-commands.md +++ b/docs/books/admin_guide/03-commands.md @@ -479,7 +479,7 @@ The main options of the `ls` command are: | ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | | `-a` | Displays all files, even hidden ones. Hidden files in Linux are those beginning with `.`. | | `-i` | Displays inode numbers. | -| `-l` | Use a long listing format, that is, each line displays long format information for a file/directory. | +| `-l` | Use a long listing format, that is, each line displays long format information for a file or directory. | The `ls` command, however, has a lot of options (see `man`): From c88ea1838e22169113c9b1e4135600812bc65359 Mon Sep 17 00:00:00 2001 From: tianci li <86754294+jimcat8@users.noreply.github.com> Date: Tue, 20 Dec 2022 23:44:00 +0800 Subject: [PATCH 5/5] Update docs/books/admin_guide/03-commands.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Serge Croisé --- 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 d92adf1a6b..2959183c11 100644 --- a/docs/books/admin_guide/03-commands.md +++ b/docs/books/admin_guide/03-commands.md @@ -487,7 +487,7 @@ The `ls` command, however, has a lot of options (see `man`): | ------ | ------------ | | `-d` | Displays information about a directory instead of listing its contents. | | `-g` | Like -l option, but do not list owner. | -| `-h` | Displays file sizes in the most appropriate format (byte, kilobyte, megabyte, gigabyte, ...). `h` stands for Human Readable. Need to be used with -l option. | +| `-h` | Displays file sizes in the most appropriate format (byte, kilobyte, megabyte, gigabyte, ...). `h` stands for Human Readable. Needs to be used with -l option. | | `-s` | Displays the allocated size of each file, in blocks. In the GNU/Linux operating system, "block" is the smallest unit of storage in the file system, one block equals 4096Byte. | | `-A` | Displays all files in the directory except `.` and `..` | | `-R` | Displays the contents of subdirectories recursively. |