coreutils*: use short more info links (#5658)
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
> Evaluate condition.
|
||||
> Returns 0 if the condition evaluates to true, 1 if it evaluates to false.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/test-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/test>.
|
||||
|
||||
- Test if a given variable is equal to a given string:
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
> Display the name of the system architecture.
|
||||
> See also `uname`.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/arch-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/arch>.
|
||||
|
||||
- Display the system's architecture:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# b2sum
|
||||
|
||||
> Calculate BLAKE2 cryptographic checksums.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/b2sum-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/b2sum>.
|
||||
|
||||
- Calculate the BLAKE2 checksum for a file:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# base32
|
||||
|
||||
> Encode or decode file or standard input to/from Base32, to standard output.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/base32-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/base32>.
|
||||
|
||||
- Encode a file:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# base64
|
||||
|
||||
> Encode or decode file or standard input to/from Base64, to standard output.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/base64-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/base64>.
|
||||
|
||||
- Encode a file:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# basename
|
||||
|
||||
> Remove leading directory portions from a path.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/basename-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/basename>.
|
||||
|
||||
- Show only the file name from a path:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# cat
|
||||
|
||||
> Print and concatenate files.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/cat-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/cat>.
|
||||
|
||||
- Print the contents of a file to the standard output:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# chcon
|
||||
|
||||
> Change SELinux security context of a file or files/directories.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/chcon-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/chcon>.
|
||||
|
||||
- View security context of a file:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# chgrp
|
||||
|
||||
> Change group ownership of files and directories.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/chgrp-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/chgrp>.
|
||||
|
||||
- Change the owner group of a file/directory:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# chmod
|
||||
|
||||
> Change the access permissions of a file or directory.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/chmod-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/chmod>.
|
||||
|
||||
- Give the [u]ser who owns a file the right to e[x]ecute it:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# chown
|
||||
|
||||
> Change user and group ownership of files and directories.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/chown-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/chown>.
|
||||
|
||||
- Change the owner user of a file/directory:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# chroot
|
||||
|
||||
> Run command or interactive shell with special root directory.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/chroot-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/chroot>.
|
||||
|
||||
- Run command as new root directory:
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
> Calculates CRC checksums and byte counts of a file.
|
||||
> Note, on old UNIX systems the CRC implementation may differ.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/cksum-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/cksum>.
|
||||
|
||||
- Display a 32 bit checksum, size in bytes and filename:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# comm
|
||||
|
||||
> Select or reject lines common to two files. Both files must be sorted.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/comm-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/comm>.
|
||||
|
||||
- Produce three tab-separated columns: lines only in first file, lines only in second file and common lines:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# cp
|
||||
|
||||
> Copy files and directories.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/cp-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/cp>.
|
||||
|
||||
- Copy a file to another location:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# cut
|
||||
|
||||
> Cut out fields from stdin or files.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/cut-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/cut>.
|
||||
|
||||
- Cut out the first sixteen characters of each line of stdin:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# date
|
||||
|
||||
> Set or display the system date.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/date-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/date>.
|
||||
|
||||
- Display the current date using the default locale's format:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# dd
|
||||
|
||||
> Convert and copy a file.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/dd-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/dd>.
|
||||
|
||||
- Make a bootable usb drive from an isohybrid file (such like `archlinux-xxx.iso`) and show the progress:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# df
|
||||
|
||||
> Gives an overview of the filesystem disk space usage.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/df-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/df>.
|
||||
|
||||
- Display all filesystems and their disk usage:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# dircolors
|
||||
|
||||
> Output commands to set the LS_COLOR environment variable and style `ls`, `dir`, etc.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/dircolors-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/dircolors>.
|
||||
|
||||
- Output commands to set LS_COLOR using default colors:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# dirname
|
||||
|
||||
> Calculates the parent directory of a given file or directory path.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/dirname-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/dirname>.
|
||||
|
||||
- Calculate the parent directory of a given path:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# du
|
||||
|
||||
> Disk usage: estimate and summarize file and directory space usage.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/du-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/du>.
|
||||
|
||||
- List the sizes of a directory and any subdirectories, in the given unit (B/KB/MB):
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# echo
|
||||
|
||||
> Print given arguments.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/echo-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/echo>.
|
||||
|
||||
- Print a text message. Note: quotes are optional:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# env
|
||||
|
||||
> Show the environment or run a program in a modified environment.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/env-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/env>.
|
||||
|
||||
- Show the environment:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# expand
|
||||
|
||||
> Convert tabs to spaces.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/expand-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/expand>.
|
||||
|
||||
- Convert tabs in each file to spaces, writing to standard output:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# expr
|
||||
|
||||
> Evaluate expressions and manipulate strings.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/expr-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/expr>.
|
||||
|
||||
- Get string length:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# factor
|
||||
|
||||
> Prints the prime factorization of a number.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/factor-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/factor>.
|
||||
|
||||
- Display the prime-factorization of a number:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# false
|
||||
|
||||
> Returns an exit code of 1.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/false-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/false>.
|
||||
|
||||
- Return an exit code of 1:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# fmt
|
||||
|
||||
> Reformat a text file by joining its paragraphs and limiting the line width to given number of characters (75 by default).
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/fmt-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/fmt>.
|
||||
|
||||
- Reformat a file:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# fold
|
||||
|
||||
> Wraps each line in an input file to fit a specified width and prints it to the standard output.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/fold-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/fold>.
|
||||
|
||||
- Wrap each line to default width (80 characters):
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# groups
|
||||
|
||||
> Print group memberships for a user.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/groups-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/groups>.
|
||||
|
||||
- Print group memberships for the current user:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# head
|
||||
|
||||
> Output the first part of files.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/head-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/head>.
|
||||
|
||||
- Output the first few lines of a file:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# hostid
|
||||
|
||||
> Prints the numeric identifier for the current host (not necessarily the IP address).
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/hostid-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/hostid>.
|
||||
|
||||
- Display the numeric identifier for the current host in hexadecimal:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# id
|
||||
|
||||
> Display current user and group identity.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/id-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/id>.
|
||||
|
||||
- Display current user's id (UID), group id (GID) and groups to which they belong:
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
> Copy files and set attributes.
|
||||
> Copy files (often executable) to a system location like `/usr/local/bin`, give them the appropriate permissions/ownership.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/install-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/install>.
|
||||
|
||||
- Copy files to destination:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# join
|
||||
|
||||
> Join lines of two sorted files on a common field.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/join-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/join>.
|
||||
|
||||
- Join two files on the first (default) field:
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
> Create a hard link to an existing file.
|
||||
> For more options, see the `ln` command.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/link-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/link>.
|
||||
|
||||
- Create a hard link from a new file to an existing file:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# ln
|
||||
|
||||
> Creates links to files and directories.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/ln-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/ln>.
|
||||
|
||||
- Create a symbolic link to a file or directory:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# logname
|
||||
|
||||
> Shows the user's login name.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/logname-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/logname>.
|
||||
|
||||
- Display the currently logged in user's name:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# ls
|
||||
|
||||
> List directory contents.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/ls-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/ls>.
|
||||
|
||||
- List files one per line:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# md5sum
|
||||
|
||||
> Calculate MD5 cryptographic checksums.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/md5sum-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/md5sum>.
|
||||
|
||||
- Calculate the MD5 checksum for a file:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# mkdir
|
||||
|
||||
> Creates a directory.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/mkdir-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/mkdir>.
|
||||
|
||||
- Create a directory in current directory or given path:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# mkfifo
|
||||
|
||||
> Makes FIFOs (named pipes).
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/mkfifo-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/mkfifo>.
|
||||
|
||||
- Create a named pipe at a given path:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# mv
|
||||
|
||||
> Move or rename files and directories.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/mv-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/mv>.
|
||||
|
||||
- Move files in arbitrary locations:
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
> Execute a program with a custom scheduling priority (niceness).
|
||||
> Niceness values range from -20 (the highest priority) to 19 (the lowest).
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/nice-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/nice>.
|
||||
|
||||
- Launch a program with altered priority:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# nl
|
||||
|
||||
> A utility for numbering lines, either from a file, or from standard input.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/nl-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/nl>.
|
||||
|
||||
- Number non-blank lines in a file:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# nohup
|
||||
|
||||
> Allows for a process to live when the terminal gets killed.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/nohup-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/nohup>.
|
||||
|
||||
- Run process that can live beyond the terminal:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# nproc
|
||||
|
||||
> Print the number of processing units (normally CPUs) available.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/nproc-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/nproc>.
|
||||
|
||||
- Display the number of available processing units:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# numfmt
|
||||
|
||||
> Convert numbers to and from human-readable strings.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/numfmt-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/numfmt>.
|
||||
|
||||
- Convert 1.5K (SI Units) to 1500:
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
> Display file contents in octal, decimal or hexadecimal format.
|
||||
> Optionally display the byte offsets and/or printable representation for each line.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/od-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/od>.
|
||||
|
||||
- Display file using default settings: octal format, 8 bytes per line, byte offsets in octal, and duplicate lines replaced with `*`:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# paste
|
||||
|
||||
> Merge lines of files.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/paste-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/paste>.
|
||||
|
||||
- Join all the lines into a single line, using TAB as delimiter:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# pathchk
|
||||
|
||||
> Check the validity and portability of one or more pathnames.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/pathchk-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/pathchk>.
|
||||
|
||||
- Check pathames for validity in the current system:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# pr
|
||||
|
||||
> Paginate or columnate files for printing.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/pr-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/pr>.
|
||||
|
||||
- Print multiple files with a default header and footer:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# printenv
|
||||
|
||||
> Print values of all or specific environment variables.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/printenv-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/printenv>.
|
||||
|
||||
- Display key-value pairs of all environment variables:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# printf
|
||||
|
||||
> Format and print text.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/printf-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/printf>.
|
||||
|
||||
- Print a text message:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# pwd
|
||||
|
||||
> Print name of current/working directory.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/pwd-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/pwd>.
|
||||
|
||||
- Print the current directory:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# readlink
|
||||
|
||||
> Follow symlinks and get symlink information.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/readlink-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/readlink>.
|
||||
|
||||
- Get the actual file to which the symlink points:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# realpath
|
||||
|
||||
> Display the resolved absolute path for a file or directory.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/realpath-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/realpath>.
|
||||
|
||||
- Display the absolute path for a file or directory:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# rm
|
||||
|
||||
> Remove files or directories.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/rm-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/rm>.
|
||||
|
||||
- Remove files from arbitrary locations:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# rmdir
|
||||
|
||||
> Removes a directory.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/rmdir-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/rmdir>.
|
||||
|
||||
- Remove directory, provided it is empty. Use `rm -r` to remove non-empty directories:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# seq
|
||||
|
||||
> Output a sequence of numbers to stdout.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/seq-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/seq>.
|
||||
|
||||
- Sequence from 1 to 10:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# sha1sum
|
||||
|
||||
> Calculate SHA1 cryptographic checksums.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/sha1sum-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/sha1sum>.
|
||||
|
||||
- Calculate the SHA1 checksum for a file:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# shred
|
||||
|
||||
> Overwrite files to securely delete data.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/shred-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/shred>.
|
||||
|
||||
- Overwrite a file:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# shuf
|
||||
|
||||
> Generate random permutations.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/shuf-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/shuf>.
|
||||
|
||||
- Randomize the order of lines in a file and output the result:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# sleep
|
||||
|
||||
> Delay for a specified amount of time.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/sleep-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/sleep>.
|
||||
|
||||
- Delay in seconds:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# sort
|
||||
|
||||
> Sort lines of text files.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/sort-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/sort>.
|
||||
|
||||
- Sort a file in ascending order:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# split
|
||||
|
||||
> Split a file into pieces.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/split-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/split>.
|
||||
|
||||
- Split a file, each split having 10 lines (except the last split):
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# stdbuf
|
||||
|
||||
> Run a command with modified buffering operations for its standard streams.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/stdbuf-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/stdbuf>.
|
||||
|
||||
- Change the standard input buffer size to 512 KiB:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# stty
|
||||
|
||||
> Set options for a terminal device interface.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/stty-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/stty>.
|
||||
|
||||
- Display all settings for the current terminal:
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
> Compute checksums and the number of blocks for a file.
|
||||
> A predecessor to the more modern `cksum`.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/sum-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/sum>.
|
||||
|
||||
- Compute a checksum with BSD-compatible algorithm and 1024-byte blocks:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# sync
|
||||
|
||||
> Flushes all pending write operations to the appropriate disks.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/sync-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/sync>.
|
||||
|
||||
- Flush all pending write operations on all disks:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# tac
|
||||
|
||||
> Print and concatenate files in reverse (last line first).
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/tac-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/tac>.
|
||||
|
||||
- Print the contents of *file1* reversed to the standard output:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# tail
|
||||
|
||||
> Display the last part of a file.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/tail-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/tail>.
|
||||
|
||||
- Show last 'num' lines in file:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# tee
|
||||
|
||||
> Read from standard input and write to standard output and files (or commands).
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/tee-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/tee>.
|
||||
|
||||
- Copy standard input to each FILE, and also to standard output:
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
> Evaluate condition.
|
||||
> Returns 0 if the condition evaluates to true, 1 if it evaluates to false.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/test-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/test>.
|
||||
|
||||
- Test if a given variable is equal to a given string:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# timeout
|
||||
|
||||
> Run a command with a time limit.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/timeout-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/timeout>.
|
||||
|
||||
- Run `sleep 10` and terminate it, if it runs for more than 3 seconds:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# touch
|
||||
|
||||
> Change a file access and modification times (atime, mtime).
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/touch-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/touch>.
|
||||
|
||||
- Create a new empty file(s) or change the times for existing file(s) to current time:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# tr
|
||||
|
||||
> Translate characters: run replacements based on single characters and character sets.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/tr-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/tr>.
|
||||
|
||||
- Replace all occurrences of a character in a file, and print the result:
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
> Returns a successful exit status code of 0.
|
||||
> Use this with the || operator to make a command always exit with 0.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/true-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/true>.
|
||||
|
||||
- Return a successful exit code:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# truncate
|
||||
|
||||
> Shrink or extend the size of a file to the specified size.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/truncate-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/truncate>.
|
||||
|
||||
- Set a size of 10 GB to an exsting file, or create a new file with the specified size:
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
> Perform a topological sort.
|
||||
> A common use is to show the dependency order of nodes in a directed acyclic graph.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/tsort-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/tsort>.
|
||||
|
||||
- Perform a topological sort consistent with a partial sort per line of input separated by blanks:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# tty
|
||||
|
||||
> Returns terminal name.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/tty-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/tty>.
|
||||
|
||||
- Print the file name of this terminal:
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
> Print details about the current machine and the operating system running on it.
|
||||
> Note: for additional information about the operating system, try the `lsb_release` command.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/uname-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/uname>.
|
||||
|
||||
- Print hardware-related information: machine and processor:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# unexpand
|
||||
|
||||
> Convert spaces to tabs.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/unexpand-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/unexpand>.
|
||||
|
||||
- Convert blanks in each file to tabs, writing to standard output:
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
> Output the unique lines from the given input or file.
|
||||
> Since it does not detect repeated lines unless they are adjacent, we need to sort them first.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/uniq-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/uniq>.
|
||||
|
||||
- Display each line once:
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
> Remove a link to a file from the filesystem.
|
||||
> The file contents is lost if the link is the last one to the file.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/unlink-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/unlink>.
|
||||
|
||||
- Remove the specified file if it is the last link:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# uptime
|
||||
|
||||
> Tell how long the system has been running and other information.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/uptime-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/uptime>.
|
||||
|
||||
- Print current time, uptime, number of logged-in users and other information:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# users
|
||||
|
||||
> Display a list of logged in users.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/users-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/users>.
|
||||
|
||||
- Display a list of logged in users:
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
> List directory contents.
|
||||
> Drop-in replacement for `ls -l`.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/vdir-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/vdir>.
|
||||
|
||||
- List files and directories in the current directory, one per line, with details:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# wc
|
||||
|
||||
> Count lines, words, or bytes.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/wc-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/wc>.
|
||||
|
||||
- Count lines in file:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# who
|
||||
|
||||
> Display who is logged in and related data (processes, boot time).
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/who-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/who>.
|
||||
|
||||
- Display the username, line, and time of all currently logged-in sessions:
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# whoami
|
||||
|
||||
> Print the username associated with the current effective user ID.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/whoami-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/whoami>.
|
||||
|
||||
- Display currently logged username:
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
> Output something repeatedly.
|
||||
> This command is commonly used to answer yes to every prompt by install commands (such as apt-get).
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/yes-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/yes>.
|
||||
|
||||
- Repeatedly output "message":
|
||||
|
||||
|
Reference in New Issue
Block a user