From 75d48bf744052e5a8e7e85a94b24021efd1577cd Mon Sep 17 00:00:00 2001 From: JMARyA Date: Mon, 26 Aug 2024 14:07:01 +0200 Subject: [PATCH] update coreutils --- .../applications/cli/system/Core Utils.md | 64 ++++++++++--------- 1 file changed, 34 insertions(+), 30 deletions(-) diff --git a/technology/applications/cli/system/Core Utils.md b/technology/applications/cli/system/Core Utils.md index 8f1b56f..30c485c 100644 --- a/technology/applications/cli/system/Core Utils.md +++ b/technology/applications/cli/system/Core Utils.md @@ -3,7 +3,9 @@ obj: application website: https://www.gnu.org/software/coreutils/ repo: https://git.savannah.gnu.org/git/coreutils.git wiki: https://en.wikipedia.org/wiki/GNU_Core_Utilities +rev: 2024-08-26 --- + # GNU Core Utils The GNU Core Utilities or coreutils is a package of GNU software containing implementations for many of the basic tools, such as cat, ls, and rm, which are used on Unix-like operating systems. @@ -15,7 +17,7 @@ Usage: `base64 [OPTION]... [FILE]` | Flag | Description | | ---------------------- | --------------------------------------------- | | `-d, --decode` | Decode Input | -| `-i, --ignore-garbage` | when decoding, ignore non-alphabet characters | +| `-i, --ignore-garbage` | when decoding, ignore non-alphabet characters | ## basename strip directory and suffix from filenames @@ -49,7 +51,7 @@ Usage: `chmod [OPTION]... OCTAL-MODE FILE...` | `-f, --silent, --quiet` | suppress most error messages | | `-v, --verbose` | output a diagnostic for every file processed | | `--reference=RFILE` | use RFILE's mode instead of specifying MODE values. RFILE is always dereferenced if a symbolic link. | -| `-R, --recursive` | change files and directories recursively | | +| `-R, --recursive` | change files and directories recursively | ## chown change file owner and group @@ -62,7 +64,7 @@ Usage: `chown [OPTION]... [OWNER][:[GROUP]] FILE...` | `-f, --silent, --quiet` | suppress most error messages | | `-v, --verbose` | output a diagnostic for every file processed | | `--reference=RFILE` | use RFILE's owner and group rather than specifying OWNER:GROUP values. RFILE is always dereferenced. | -| `-R, --recursive` | operate on files and directories recursively | +| `-R, --recursive` | operate on files and directories recursively | ## chroot run command or interactive shell with special root directory @@ -75,7 +77,7 @@ Usage: `cksum [OPTION]... [FILE]...` ### Options | Option | Description | | ---------------------- | ----------------------------- | -| `-a, --algorithm=TYPE` | select the digest type to use | +| `-a, --algorithm=TYPE` | select the digest type to use | ### Digests - crc @@ -103,7 +105,7 @@ Usage: `cp [OPTION]... SOURCE DEST` | `-u` | equivalent to `--update[=older]` | | `-v, --verbose` | explain what is being done | | `-x, --one-file-system` | stay on this file system | -| `-b` | Create a backup file if destination already exists | +| `-b` | Create a backup file if destination already exists | ## cut remove sections from each line of files @@ -115,18 +117,20 @@ Usage: `cut OPTION... [FILE]...` | `-d, --delimiter=DELIM` | use DELIM instead of TAB for field delimiter | | `-f, --fields=LIST` | select only these fields; also print any line that contains no delimiter character, unless the `-s` option is specified | | `-s, --only-delimited` | do not print lines not containing delimiters | -| `--output-delimiter=STRING` | use STRING as the output delimiter the default is to use the input delimiter | +| `--output-delimiter=STRING` | use STRING as the output delimiter the default is to use the input delimiter | ## date print or set the system date and time Usage: `date [OPTION]... [+FORMAT]` ### Options -| Option | Description | -| ---------------------- | ------------------------------------------ | -| `-d, --date=STRING` | display time described by STRING | -| `-r, --reference=FILE` | display the last modification time of FILE | -| `-s, --set=STRING` | set time described by STRING | +| Option | Description | +| ------------------------ | --------------------------------------------- | +| `-d, --date=STRING` | display time described by STRING | +| `-r, --reference=FILE` | display the last modification time of FILE | +| `-s, --set=STRING` | set time described by STRING | +| `-u, --utc, --universal` | print or set Coordinated Universal Time (UTC) | +| `--iso` | print ISO date (`YYYY-MM-DD`) | ## dd convert and copy a file @@ -139,7 +143,7 @@ Usage: `dd [OPERAND]...` | `count=N` | copy only N input blocks | | `if=FILE` | read from FILE instead of stdin | | `of=FILE` | write to FILE instead of stdout | -| `status=LEVEL` | The LEVEL of information to print to stderr; 'none' suppresses everything but error messages, 'noxfer' suppresses the final transfer statistics, 'progress' shows periodic transfer statistics | +| `status=LEVEL` | The LEVEL of information to print to stderr; 'none' suppresses everything but error messages, 'noxfer' suppresses the final transfer statistics, 'progress' shows periodic transfer statistics | ## df report file system space usage @@ -165,7 +169,7 @@ Usage: `du [OPTION]... [FILE]...` | Option | Description | | ---------------------- | -------------------------------------- | | `-h, --human-readable` | print sizes in human readable format | -| `-s, --summarize` | display only a total for each argument | +| `-s, --summarize` | display only a total for each argument | ## echo display a line of text @@ -192,7 +196,7 @@ Usage: `echo [OPTION]... [STRING]...` | \t | horizontal tab | | \v | vertical tab | | \0NNN | byte with octal value NNN (1 to 3 digits) | -| \xHH | byte with hexadecimal value HH (1 to 2) | +| \xHH | byte with hexadecimal value HH (1 to 2) | ## env run a program in a modified environment @@ -282,14 +286,14 @@ list directory contents Usage: `ls [OPTION]... [FILE]...` ### Options -| Option | Description | -| ---------------------- | --------------------------------------------------- | -| `-a, --all` | do not ignore entries starting with . | -| `-h, --human-readable` | with `-l` print sizes like 1K 234M 2G etc | -| `-I, --ignore=PATTERN` | do not list implied entries matching shell PATTERN | -| `-l` | use a long listing format | -| `-r, --reverse` | reverse order while sorting | -| `-R, --recursive` | list subdirectories recursively | +| Option | Description | +| ---------------------- | -------------------------------------------------- | +| `-a, --all` | do not ignore entries starting with . | +| `-h, --human-readable` | with `-l` print sizes like 1K 234M 2G etc | +| `-I, --ignore=PATTERN` | do not list implied entries matching shell PATTERN | +| `-l` | use a long listing format | +| `-r, --reverse` | reverse order while sorting | +| `-R, --recursive` | list subdirectories recursively | ## mkdir make directories @@ -314,7 +318,7 @@ Usage: `mv [OPTION]... SOURCE... DIRECTORY` | Option | Description | | ---------------------------------- | ------------------------------------------------ | | `-b` | make a backup of each existing destination file | -| `-S, --suffix=SUFFIX` | override the usual backup suffix | +| `-S, --suffix=SUFFIX` | override the usual backup suffix | | `-t, --target-directory=DIRECTORY` | copy all SOURCE arguments into DIRECTORY | | `-v, --verbose` | print the name of each created file or directory | @@ -372,7 +376,7 @@ Usage: `rm [OPTION]... [FILE]...` | `--one-file-system` | when removing a hierarchy recursively, skip any directory that is on a file system different from that of the corresponding command line argument | | `-r, -R, --recursive` | remove directories and their contents recursively | | `-d, --dir` | remove empty directories | -| `-v, --verbose` | explain what is being done | +| `-v, --verbose` | explain what is being done | ## rmdir remove empty directories @@ -396,7 +400,7 @@ Usage: | ------------------------ | --------------------------------------------- | | `-f, --format=FORMAT` | use printf style floating-point FORMAT | | `-s, --separator=STRING` | use STRING to separate numbers (default: \n) | -| `-w, --equal-width` | equalize width by padding with leading zeroes | +| `-w, --equal-width` | equalize width by padding with leading zeroes | ## shred overwrite a file to hide its contents, and optionally delete it @@ -420,7 +424,7 @@ Usage: `shuf [OPTION]... [FILE]` | `-n, --head-count=COUNT` | output at most COUNT lines | | `-o, --output=FILE` | write result to FILE instead of standard output | | `--random-source=FILE` | get random bytes from FILE | -| `-r, --repeat` | output lines can be repeated | +| `-r, --repeat` | output lines can be repeated | ## sleep delay for a specified amount of time @@ -441,7 +445,7 @@ Usage: `sort [OPTION]... [FILE]...` | `-M, --month-sort` | compare (unknown) < 'JAN' < ... < 'DEC' | | `-h, --human-numeric-sort` | compare human readable numbers (e.g., 2K 1G) | | `-n, --numeric-sort` | compare according to string numerical value | -| `-r, --reverse` | reverse the result of comparisons | +| `-r, --reverse` | reverse the result of comparisons | ## split split a file into pieces @@ -499,7 +503,7 @@ Usage: `stat [OPTION]... FILE...` | %r | device type in decimal (st_rdev) | | %R | device type in hex (st_rdev) | | %Hr | major device type in decimal, for character/block device special files | -| %Lr | minor device type in decimal, for character/block device special files | +| %Lr | minor device type in decimal, for character/block device special files | | %t | major device type in hex, for character/block device special files | | %T | minor device type in hex, for character/block device special files | | %u | user ID of owner | @@ -539,7 +543,7 @@ Usage: `tail [OPTION]... [FILE]...` | `-c, --bytes=[+]NUM` | output the last NUM bytes; or use `-c` +NUM to output starting with byte NUM of each file | | `-f` | output appended data as the file grows; | | `-n, --lines=[+]NUM` | output the last NUM lines, instead of the last 10; or use `-n` +NUM to skip NUM-1 lines at the start | -| `--pid=PID` | with `-f`, terminate after process ID, PID dies | +| `--pid=PID` | with `-f`, terminate after process ID, PID dies | ## tee read from standard input and write to standard output and files @@ -633,7 +637,7 @@ Usage: `wc [OPTION]... [FILE]...` | `-c, --bytes` | print the byte counts | | `-m, --chars` | print the character counts | | `-l, --lines` | print the newline counts | -| `-w, --words` | print the word counts | +| `-w, --words` | print the word counts | ## whoami print effective user name