From af8bf59e754c4171998bba7d4ec4f9b3fb0f2066 Mon Sep 17 00:00:00 2001 From: tianci Date: Mon, 8 Jan 2024 17:54:57 +0800 Subject: [PATCH 1/4] Modify the wrong knowledge points --- 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 7263ecfb37..73ebba5761 100644 --- a/docs/books/admin_guide/03-commands.md +++ b/docs/books/admin_guide/03-commands.md @@ -491,7 +491,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. 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. | +| `-s` | Displays the allocated size of each file, in blocks. By default, a block equals 1024 Byte. You can specify the size of a single block through the `-k` option. | | `-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 5f1275408fe93f24c494d4240837c225ec48e6a2 Mon Sep 17 00:00:00 2001 From: tianci Date: Mon, 8 Jan 2024 18:01:35 +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 73ebba5761..0877cce562 100644 --- a/docs/books/admin_guide/03-commands.md +++ b/docs/books/admin_guide/03-commands.md @@ -491,7 +491,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. Needs to be used with -l option. | -| `-s` | Displays the allocated size of each file, in blocks. By default, a block equals 1024 Byte. You can specify the size of a single block through the `-k` option. | +| `-s` | Displays the allocated size of each file, in blocks. By default, a block equals 1024 Byte. | | `-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 e711c9da2397b3b808df69dce6a6d28fbe62fd4a Mon Sep 17 00:00:00 2001 From: tianci Date: Mon, 8 Jan 2024 18:36:49 +0800 Subject: [PATCH 3/4] Supplement the description of the -s 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 0877cce562..9a4e85cdb6 100644 --- a/docs/books/admin_guide/03-commands.md +++ b/docs/books/admin_guide/03-commands.md @@ -491,7 +491,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. Needs to be used with -l option. | -| `-s` | Displays the allocated size of each file, in blocks. By default, a block equals 1024 Byte. | +| `-s` | Displays the allocated size of each file, in blocks. In the `ls` command, the default size of a single block is 1024Byte. In the GNU/Linux operating system, "block" is the smallest unit of storage in the file system, and generally speaking, one block is equal to 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 22b9fab7492961e417ad2a3db93d3506f8aa3ff7 Mon Sep 17 00:00:00 2001 From: tianci Date: Mon, 8 Jan 2024 18:56:40 +0800 Subject: [PATCH 4/4] update 01 --- 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 9a4e85cdb6..5189e56842 100644 --- a/docs/books/admin_guide/03-commands.md +++ b/docs/books/admin_guide/03-commands.md @@ -491,7 +491,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. Needs to be used with -l option. | -| `-s` | Displays the allocated size of each file, in blocks. In the `ls` command, the default size of a single block is 1024Byte. In the GNU/Linux operating system, "block" is the smallest unit of storage in the file system, and generally speaking, one block is equal to 4096Byte. | +| `-s` | Displays the allocated size of each file, in blocks. In the `ls` command, the default size of a single block is 1024-Byte. In the GNU/Linux operating system, "block" is the smallest unit of storage in the file system, and generally speaking, one block is equal to 4096-Byte. In the Windows operating system, taking the NTFS file system as an example, its smallest storage unit is called a "Cluster". The definition of the minimum storage unit name may vary depending on different file systems. | | `-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. |