From 49f405dce8caf4fcfd28f7b282d6368ef7bbd105 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sun, 19 Jan 2025 00:18:40 +0000 Subject: [PATCH] Update cheatsheets --- tldr/du | 2 +- tldr/expand | 2 +- tldr/expr | 2 +- tldr/factor | 2 +- tldr/fmt | 2 +- tldr/groups | 2 +- tldr/hostid | 2 +- tldr/id | 2 +- tldr/install | 2 +- tldr/join | 2 +- tldr/link | 2 +- tldr/linux/cat | 2 +- tldr/linux/chcon | 2 +- tldr/linux/csplit | 2 +- tldr/linux/dd | 2 +- tldr/linux/df | 2 +- tldr/linux/fold | 2 +- tldr/linux/libinput | 29 +++++++++++++++++++++++++++++ tldr/linux/mknod | 2 +- tldr/linux/mktemp | 2 +- tldr/linux/ptx | 2 +- tldr/linux/rm | 2 +- tldr/linux/rmdir | 2 +- tldr/linux/runcon | 2 +- tldr/linux/sleep | 2 +- tldr/linux/tac | 2 +- tldr/ln | 2 +- tldr/logname | 2 +- tldr/mkfifo | 2 +- tldr/mv | 2 +- tldr/nice | 2 +- tldr/nohup | 2 +- tldr/nproc | 2 +- tldr/numfmt | 2 +- tldr/od | 2 +- tldr/osx/readlink | 2 +- tldr/paste | 2 +- tldr/pathchk | 2 +- tldr/pr | 2 +- tldr/printf | 2 +- tldr/pwd | 2 +- tldr/readlink | 2 +- tldr/realpath | 2 +- tldr/rm | 2 +- tldr/rmdir | 2 +- tldr/seq | 2 +- tldr/sha1sum | 2 +- tldr/shred | 2 +- tldr/shuf | 2 +- tldr/sort | 2 +- tldr/split | 2 +- tldr/stdbuf | 2 +- tldr/stty | 2 +- tldr/sum | 2 +- tldr/sync | 2 +- tldr/tac | 2 +- tldr/tail | 2 +- tldr/tee | 2 +- tldr/test | 2 +- tldr/timeout | 2 +- tldr/tr | 2 +- tldr/true | 2 +- tldr/truncate | 2 +- tldr/tsort | 2 +- tldr/tty | 2 +- tldr/uname | 2 +- tldr/unexpand | 2 +- tldr/uniq | 2 +- tldr/unlink | 2 +- tldr/uptime | 2 +- tldr/users | 2 +- tldr/vdir | 2 +- tldr/wc | 2 +- tldr/who | 2 +- tldr/whoami | 2 +- tldr/yes | 2 +- 76 files changed, 104 insertions(+), 75 deletions(-) create mode 100644 tldr/linux/libinput diff --git a/tldr/du b/tldr/du index 82335508..2a93d35a 100644 --- a/tldr/du +++ b/tldr/du @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # du > Disk usage: estimate and summarize file and directory space usage. -> More information: . +> More information: . - List the sizes of a directory and any subdirectories, in the given unit (B/KiB/MiB): diff --git a/tldr/expand b/tldr/expand index 9d673743..99ee2b1c 100644 --- a/tldr/expand +++ b/tldr/expand @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # expand > Convert tabs to spaces. -> More information: . +> More information: . - Convert tabs in each file to spaces, writing to `stdout`: diff --git a/tldr/expr b/tldr/expr index f8c8bfd6..a1802f45 100644 --- a/tldr/expr +++ b/tldr/expr @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # expr > Evaluate expressions and manipulate strings. -> More information: . +> More information: . - Get the length of a specific string: diff --git a/tldr/factor b/tldr/factor index 9bbb1952..32472cb0 100644 --- a/tldr/factor +++ b/tldr/factor @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # factor > Print the prime factorization of a number. -> More information: . +> More information: . - Display the prime-factorization of a number: diff --git a/tldr/fmt b/tldr/fmt index fe94b67f..e136617a 100644 --- a/tldr/fmt +++ b/tldr/fmt @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # fmt > Reformat a text file by joining its paragraphs and limiting the line width to a number of characters (75 by default). -> More information: . +> More information: . - Reformat a file: diff --git a/tldr/groups b/tldr/groups index 42549808..e0746ec0 100644 --- a/tldr/groups +++ b/tldr/groups @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Print group memberships for a user. > See also: `groupadd`, `groupdel`, `groupmod`. -> More information: . +> More information: . - Print group memberships for the current user: diff --git a/tldr/hostid b/tldr/hostid index 8313064c..b5c1277e 100644 --- a/tldr/hostid +++ b/tldr/hostid @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # hostid > Print the numeric identifier for the current host (not necessarily the IP address). -> More information: . +> More information: . - Display the numeric identifier for the current host in hexadecimal: diff --git a/tldr/id b/tldr/id index 9fb8b686..ab76d9e3 100644 --- a/tldr/id +++ b/tldr/id @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # id > Display current user and group identity. -> More information: . +> More information: . - Display current user's ID (UID), group ID (GID) and groups to which they belong: diff --git a/tldr/install b/tldr/install index f5e9d00b..3b21e6ee 100644 --- a/tldr/install +++ b/tldr/install @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > 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: . +> More information: . - Copy files to the destination: diff --git a/tldr/join b/tldr/join index 6e31c942..ed55c796 100644 --- a/tldr/join +++ b/tldr/join @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # join > Join lines of two sorted files on a common field. -> More information: . +> More information: . - Join two files on the first (default) field: diff --git a/tldr/link b/tldr/link index b516474c..03594a8c 100644 --- a/tldr/link +++ b/tldr/link @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Create a hard link to an existing file. > For more options, see the `ln` command. -> More information: . +> More information: . - Create a hard link from a new file to an existing file: diff --git a/tldr/linux/cat b/tldr/linux/cat index ae3aecbd..f3d3c7dd 100644 --- a/tldr/linux/cat +++ b/tldr/linux/cat @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # cat > Print and concatenate files. -> More information: . +> More information: . - Print the contents of a file to `stdout`: diff --git a/tldr/linux/chcon b/tldr/linux/chcon index 81bb61e1..640a1eba 100644 --- a/tldr/linux/chcon +++ b/tldr/linux/chcon @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Change SELinux security context of a file or files/directories. > See also: `secon`, `restorecon`, `semanage-fcontext`. -> More information: . +> More information: . - View security context of a file: diff --git a/tldr/linux/csplit b/tldr/linux/csplit index 83e6e366..3d85b338 100644 --- a/tldr/linux/csplit +++ b/tldr/linux/csplit @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Split a file into pieces. > This generates files named "xx00", "xx01", and so on. -> More information: . +> More information: . - Split a file at lines 5 and 23: diff --git a/tldr/linux/dd b/tldr/linux/dd index e328a999..ac4162ad 100644 --- a/tldr/linux/dd +++ b/tldr/linux/dd @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # dd > Convert and copy a file. -> More information: . +> More information: . - Make a bootable USB drive from an isohybrid file (such as `archlinux-xxx.iso`) and show the progress: diff --git a/tldr/linux/df b/tldr/linux/df index 72bb1e1f..eb45631d 100644 --- a/tldr/linux/df +++ b/tldr/linux/df @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # df > Display an overview of the filesystem disk space usage. -> More information: . +> More information: . - Display all filesystems and their disk usage: diff --git a/tldr/linux/fold b/tldr/linux/fold index 96e457ae..b8f31bfd 100644 --- a/tldr/linux/fold +++ b/tldr/linux/fold @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # fold > Folds long lines for fixed-width output devices. -> More information: . +> More information: . - Fold lines in a fixed width: diff --git a/tldr/linux/libinput b/tldr/linux/libinput new file mode 100644 index 00000000..4b34a5f0 --- /dev/null +++ b/tldr/linux/libinput @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# libinput + +> Interface with libinput. +> More information: . + +- List all devices recognized by libinput: + +`sudo libinput list-devices` + +- Print all libinput events: + +`sudo libinput debug-events` + +- Show a GUI to visualize libinput's events: + +`sudo libinput debug-gui` + +- Debug tablet axis values: + +`sudo libinput debug-tablet` + +- Display help: + +`libinput -h` diff --git a/tldr/linux/mknod b/tldr/linux/mknod index 75ccd99a..1a33b213 100644 --- a/tldr/linux/mknod +++ b/tldr/linux/mknod @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # mknod > Create block or character device special files. -> More information: . +> More information: . - Create a block device: diff --git a/tldr/linux/mktemp b/tldr/linux/mktemp index 17ffc747..9dccaf93 100644 --- a/tldr/linux/mktemp +++ b/tldr/linux/mktemp @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # mktemp > Create a temporary file or directory. -> More information: . +> More information: . - Create an empty temporary file and print its absolute path: diff --git a/tldr/linux/ptx b/tldr/linux/ptx index 0120ca62..54c09a95 100644 --- a/tldr/linux/ptx +++ b/tldr/linux/ptx @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # ptx > Generate a permuted index of words from text files. -> More information: . +> More information: . - Generate a permuted index where the first field of each line is an index reference: diff --git a/tldr/linux/rm b/tldr/linux/rm index ae848ce8..f96295df 100644 --- a/tldr/linux/rm +++ b/tldr/linux/rm @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Remove files or directories. > See also: `rmdir`. -> More information: . +> More information: . - Remove specific files: diff --git a/tldr/linux/rmdir b/tldr/linux/rmdir index 18d40cf5..0af4d5b9 100644 --- a/tldr/linux/rmdir +++ b/tldr/linux/rmdir @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Remove directories without files. > See also: `rm`. -> More information: . +> More information: . - Remove specific directories: diff --git a/tldr/linux/runcon b/tldr/linux/runcon index 48944dee..e799fef5 100644 --- a/tldr/linux/runcon +++ b/tldr/linux/runcon @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Run a program in a different SELinux security context. > See also: `secon`. -> More information: . +> More information: . - Print the security context of the current execution context: diff --git a/tldr/linux/sleep b/tldr/linux/sleep index 08d46c2f..858f6105 100644 --- a/tldr/linux/sleep +++ b/tldr/linux/sleep @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # sleep > Delay for a specified amount of time. -> More information: . +> More information: . - Delay in seconds: diff --git a/tldr/linux/tac b/tldr/linux/tac index 1a3cf7d1..d9a755ad 100644 --- a/tldr/linux/tac +++ b/tldr/linux/tac @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Display and concatenate files with lines in reversed order. > See also: `cat`. -> More information: . +> More information: . - Concatenate specific files in reversed order: diff --git a/tldr/ln b/tldr/ln index 80fe116e..0455af3d 100644 --- a/tldr/ln +++ b/tldr/ln @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # ln > Create links to files and directories. -> More information: . +> More information: . - Create a symbolic link to a file or directory: diff --git a/tldr/logname b/tldr/logname index e566d6c1..bfc5fdbb 100644 --- a/tldr/logname +++ b/tldr/logname @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # logname > Shows the user's login name. -> More information: . +> More information: . - Display the currently logged in user's name: diff --git a/tldr/mkfifo b/tldr/mkfifo index d2b9ac5f..f74890cb 100644 --- a/tldr/mkfifo +++ b/tldr/mkfifo @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # mkfifo > Make FIFOs (named pipes). -> More information: . +> More information: . - Create a named pipe at a given path: diff --git a/tldr/mv b/tldr/mv index e3a494f5..a94806f0 100644 --- a/tldr/mv +++ b/tldr/mv @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # mv > Move or rename files and directories. -> More information: . +> More information: . - Rename a file or directory when the target is not an existing directory: diff --git a/tldr/nice b/tldr/nice index 1b42b534..0d69278a 100644 --- a/tldr/nice +++ b/tldr/nice @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Execute a program with a custom scheduling priority (niceness). > Niceness values range from -20 (the highest priority) to 19 (the lowest). -> More information: . +> More information: . - Launch a program with altered priority: diff --git a/tldr/nohup b/tldr/nohup index 048abd11..fee983cd 100644 --- a/tldr/nohup +++ b/tldr/nohup @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # nohup > Allows for a process to live when the terminal gets killed. -> More information: . +> More information: . - Run a process that can live beyond the terminal: diff --git a/tldr/nproc b/tldr/nproc index 76a951d7..52975670 100644 --- a/tldr/nproc +++ b/tldr/nproc @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # nproc > Print the number of processing units (normally CPUs) available. -> More information: . +> More information: . - Display the number of available processing units: diff --git a/tldr/numfmt b/tldr/numfmt index 00ea3e5b..fdcf26ae 100644 --- a/tldr/numfmt +++ b/tldr/numfmt @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # numfmt > Convert numbers to and from human-readable strings. -> More information: . +> More information: . - Convert 1.5K (SI Units) to 1500: diff --git a/tldr/od b/tldr/od index dc008e9e..77429ea9 100644 --- a/tldr/od +++ b/tldr/od @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Display file contents in octal, decimal or hexadecimal format. > Optionally display the byte offsets and/or printable representation for each line. -> More information: . +> More information: . - Display file using default settings: octal format, 8 bytes per line, byte offsets in octal, and duplicate lines replaced with `*`: diff --git a/tldr/osx/readlink b/tldr/osx/readlink index 683af363..767b82d1 100644 --- a/tldr/osx/readlink +++ b/tldr/osx/readlink @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # readlink > Follow symlinks and get symlink information. -> More information: . +> More information: . - Print the absolute path which the symlink points to: diff --git a/tldr/paste b/tldr/paste index e878029c..ed9e09a1 100644 --- a/tldr/paste +++ b/tldr/paste @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # paste > Merge lines of files. -> More information: . +> More information: . - Join all the lines into a single line, using TAB as delimiter: diff --git a/tldr/pathchk b/tldr/pathchk index 2c9c3ea2..e776d949 100644 --- a/tldr/pathchk +++ b/tldr/pathchk @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # pathchk > Check the validity and portability of pathnames. -> More information: . +> More information: . - Check pathnames for validity in the current system: diff --git a/tldr/pr b/tldr/pr index b89af1a3..8f4f94cd 100644 --- a/tldr/pr +++ b/tldr/pr @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # pr > Paginate or columnate files for printing. -> More information: . +> More information: . - Print multiple files with a default header and footer: diff --git a/tldr/printf b/tldr/printf index 980472cd..61c43aa8 100644 --- a/tldr/printf +++ b/tldr/printf @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # printf > Format and print text. -> More information: . +> More information: . - Print a text message: diff --git a/tldr/pwd b/tldr/pwd index 95747205..1cbfa526 100644 --- a/tldr/pwd +++ b/tldr/pwd @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # pwd > Print name of current/working directory. -> More information: . +> More information: . - Print the current directory: diff --git a/tldr/readlink b/tldr/readlink index 02d851c2..31f32c10 100644 --- a/tldr/readlink +++ b/tldr/readlink @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # readlink > Follow symlinks and get symlink information. -> More information: . +> More information: . - Get the actual file to which the symlink points: diff --git a/tldr/realpath b/tldr/realpath index b4d2559b..7cf4bbce 100644 --- a/tldr/realpath +++ b/tldr/realpath @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # realpath > Display the resolved absolute path for a file or directory. -> More information: . +> More information: . - Display the absolute path for a file or directory: diff --git a/tldr/rm b/tldr/rm index 23e6002c..8cb15c98 100644 --- a/tldr/rm +++ b/tldr/rm @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Remove files or directories. > See also: `rmdir`. -> More information: . +> More information: . - Remove specific files: diff --git a/tldr/rmdir b/tldr/rmdir index 3c793b1f..56124e4c 100644 --- a/tldr/rmdir +++ b/tldr/rmdir @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Remove directories without files. > See also: `rm`. -> More information: . +> More information: . - Remove specific directories: diff --git a/tldr/seq b/tldr/seq index e06dca34..802fb9ff 100644 --- a/tldr/seq +++ b/tldr/seq @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # seq > Output a sequence of numbers to `stdout`. -> More information: . +> More information: . - Sequence from 1 to 10: diff --git a/tldr/sha1sum b/tldr/sha1sum index 8c5830f8..0bc0ebd8 100644 --- a/tldr/sha1sum +++ b/tldr/sha1sum @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # sha1sum > Calculate SHA1 cryptographic checksums. -> More information: . +> More information: . - Calculate the SHA1 checksum for one or more files: diff --git a/tldr/shred b/tldr/shred index bac2ed16..f09c4dbc 100644 --- a/tldr/shred +++ b/tldr/shred @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # shred > Overwrite files to securely delete data. -> More information: . +> More information: . - Overwrite a file: diff --git a/tldr/shuf b/tldr/shuf index fd4bc263..9e89ff4a 100644 --- a/tldr/shuf +++ b/tldr/shuf @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # shuf > Generate random permutations. -> More information: . +> More information: . - Randomize the order of lines in a file and output the result: diff --git a/tldr/sort b/tldr/sort index 880f72bc..c0d52a62 100644 --- a/tldr/sort +++ b/tldr/sort @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # sort > Sort lines of text files. -> More information: . +> More information: . - Sort a file in ascending order: diff --git a/tldr/split b/tldr/split index c89197ce..2c1c0066 100644 --- a/tldr/split +++ b/tldr/split @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # split > Split a file into pieces. -> More information: . +> More information: . - Split a file, each split having 10 lines (except the last split): diff --git a/tldr/stdbuf b/tldr/stdbuf index e5ea57ae..3ff6b9a4 100644 --- a/tldr/stdbuf +++ b/tldr/stdbuf @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # stdbuf > Run a command with modified buffering operations for its standard streams. -> More information: . +> More information: . - Change `stdin` buffer size to 512 KiB: diff --git a/tldr/stty b/tldr/stty index 2e3c3bb1..220206b8 100644 --- a/tldr/stty +++ b/tldr/stty @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # stty > Set options for a terminal device interface. -> More information: . +> More information: . - Display all settings for the current terminal: diff --git a/tldr/sum b/tldr/sum index f2ae8851..e31d0094 100644 --- a/tldr/sum +++ b/tldr/sum @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Compute checksums and the number of blocks for a file. > A predecessor to the more modern `cksum`. -> More information: . +> More information: . - Compute a checksum with BSD-compatible algorithm and 1024-byte blocks: diff --git a/tldr/sync b/tldr/sync index 0c163d2b..58a9b89e 100644 --- a/tldr/sync +++ b/tldr/sync @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # sync > Flushes all pending write operations to the appropriate disks. -> More information: . +> More information: . - Flush all pending write operations on all disks: diff --git a/tldr/tac b/tldr/tac index 9f929865..66e969e8 100644 --- a/tldr/tac +++ b/tldr/tac @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Display and concatenate files with lines in reversed order. > See also: `cat`. -> More information: . +> More information: . - Concatenate specific files in reversed order: diff --git a/tldr/tail b/tldr/tail index d4f5e9f4..60c39842 100644 --- a/tldr/tail +++ b/tldr/tail @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Display the last part of a file. > See also: `head`. -> More information: . +> More information: . - Show last 'count' lines in file: diff --git a/tldr/tee b/tldr/tee index 2800032e..5931b955 100644 --- a/tldr/tee +++ b/tldr/tee @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # tee > Read from `stdin` and write to `stdout` and files (or commands). -> More information: . +> More information: . - Copy `stdin` to each file, and also to `stdout`: diff --git a/tldr/test b/tldr/test index 4940fb1b..e09c8512 100644 --- a/tldr/test +++ b/tldr/test @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Check file types and compare values. > Returns 0 if the condition evaluates to true, 1 if it evaluates to false. -> More information: . +> More information: . - Test if a given variable is equal to a given string: diff --git a/tldr/timeout b/tldr/timeout index c5376017..00050f5f 100644 --- a/tldr/timeout +++ b/tldr/timeout @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # timeout > Run a command with a time limit. -> More information: . +> More information: . - Run `sleep 10` and terminate it after 3 seconds: diff --git a/tldr/tr b/tldr/tr index 927eae17..6ffb5886 100644 --- a/tldr/tr +++ b/tldr/tr @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # tr > Translate characters: run replacements based on single characters and character sets. -> More information: . +> More information: . - Replace all occurrences of a character in a file, and print the result: diff --git a/tldr/true b/tldr/true index 5df74006..a9137b5f 100644 --- a/tldr/true +++ b/tldr/true @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Returns a successful exit status code of 0. > Use this with the || operator to make a command always exit with 0. -> More information: . +> More information: . - Return a successful exit code: diff --git a/tldr/truncate b/tldr/truncate index 2bb41756..4315fea2 100644 --- a/tldr/truncate +++ b/tldr/truncate @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # truncate > Shrink or extend the size of a file to the specified size. -> More information: . +> More information: . - Set a size of 10 GB to an existing file, or create a new file with the specified size: diff --git a/tldr/tsort b/tldr/tsort index d7797485..8bb2e79d 100644 --- a/tldr/tsort +++ b/tldr/tsort @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Perform a topological sort. > A common use is to show the dependency order of nodes in a directed acyclic graph. -> More information: . +> More information: . - Perform a topological sort consistent with a partial sort per line of input separated by blanks: diff --git a/tldr/tty b/tldr/tty index c68a41d1..d94efbbf 100644 --- a/tldr/tty +++ b/tldr/tty @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # tty > Returns terminal name. -> More information: . +> More information: . - Print the file name of this terminal: diff --git a/tldr/uname b/tldr/uname index d78ca0e2..5a58ea40 100644 --- a/tldr/uname +++ b/tldr/uname @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Print details about the current machine and the operating system running on it. > See also `lsb_release`. -> More information: . +> More information: . - Print kernel name: diff --git a/tldr/unexpand b/tldr/unexpand index 1bb318da..a32451e2 100644 --- a/tldr/unexpand +++ b/tldr/unexpand @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # unexpand > Convert spaces to tabs. -> More information: . +> More information: . - Convert blanks in each file to tabs, writing to `stdout`: diff --git a/tldr/uniq b/tldr/uniq index 02f1f4c2..0a0b570a 100644 --- a/tldr/uniq +++ b/tldr/uniq @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Output the unique lines from a input or file. > Since it does not detect repeated lines unless they are adjacent, we need to sort them first. -> More information: . +> More information: . - Display each line once: diff --git a/tldr/unlink b/tldr/unlink index f4791dc7..7a151c2b 100644 --- a/tldr/unlink +++ b/tldr/unlink @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > 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: . +> More information: . - Remove the specified file if it is the last link: diff --git a/tldr/uptime b/tldr/uptime index d48ea22c..1fe86ea9 100644 --- a/tldr/uptime +++ b/tldr/uptime @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # uptime > Tell how long the system has been running and other information. -> More information: . +> More information: . - Print current time, uptime, number of logged-in users and other information: diff --git a/tldr/users b/tldr/users index b263f6b7..be9914d8 100644 --- a/tldr/users +++ b/tldr/users @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Display a list of logged in users. > See also: `useradd`, `userdel`, `usermod`. -> More information: . +> More information: . - Print logged in usernames: diff --git a/tldr/vdir b/tldr/vdir index 4fcb552c..8c21a4db 100644 --- a/tldr/vdir +++ b/tldr/vdir @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > List directory contents. > Drop-in replacement for `ls -l`. -> More information: . +> More information: . - List files and directories in the current directory, one per line, with details: diff --git a/tldr/wc b/tldr/wc index 1f92248e..9bf54996 100644 --- a/tldr/wc +++ b/tldr/wc @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # wc > Count lines, words, and bytes. -> More information: . +> More information: . - Count all lines in a file: diff --git a/tldr/who b/tldr/who index 271421ef..e79394cc 100644 --- a/tldr/who +++ b/tldr/who @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Display who is logged in and related data (processes, boot time). > See also: `whoami`. -> More information: . +> More information: . - Display the username, line, and time of all currently logged-in sessions: diff --git a/tldr/whoami b/tldr/whoami index 96052b8e..db7fe50d 100644 --- a/tldr/whoami +++ b/tldr/whoami @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # whoami > Print the username associated with the current effective user ID. -> More information: . +> More information: . - Display currently logged username: diff --git a/tldr/yes b/tldr/yes index aaac098e..49853752 100644 --- a/tldr/yes +++ b/tldr/yes @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Output something repeatedly. > This command is commonly used to answer yes to every prompt by install commands (such as apt-get). -> More information: . +> More information: . - Repeatedly output "message":