update coreutils

This commit is contained in:
JMARyA 2024-08-26 14:07:01 +02:00
parent 93045830d9
commit 75d48bf744
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -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.
@ -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
@ -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
@ -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
@ -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
@ -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
@ -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