mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-13 13:48:12 +00:00
Update cheatsheets
This commit is contained in:
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# cat
|
||||
|
||||
> Print and concatenate files.
|
||||
> More information: <https://www.gnu.org/software/coreutils/cat>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/cat-invocation.html>.
|
||||
|
||||
- Print the contents of a file to `stdout`:
|
||||
|
||||
|
||||
@@ -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: <https://www.gnu.org/software/coreutils/chcon>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/chcon-invocation.html>.
|
||||
|
||||
- View security context of a file:
|
||||
|
||||
|
||||
@@ -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: <https://www.gnu.org/software/coreutils/csplit>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/csplit-invocation.html>.
|
||||
|
||||
- Split a file at lines 5 and 23:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# dd
|
||||
|
||||
> Convert and copy a file.
|
||||
> More information: <https://www.gnu.org/software/coreutils/dd>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/dd-invocation.html>.
|
||||
|
||||
- Make a bootable USB drive from an isohybrid file (such as `archlinux-xxx.iso`) and show the progress:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# df
|
||||
|
||||
> Display an overview of the filesystem disk space usage.
|
||||
> More information: <https://www.gnu.org/software/coreutils/df>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/df-invocation.html>.
|
||||
|
||||
- Display all filesystems and their disk usage:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# fold
|
||||
|
||||
> Folds long lines for fixed-width output devices.
|
||||
> More information: <https://www.gnu.org/software/coreutils/fold>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/fold-invocation.html>.
|
||||
|
||||
- Fold lines in a fixed width:
|
||||
|
||||
|
||||
29
tldr/linux/libinput
Normal file
29
tldr/linux/libinput
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# libinput
|
||||
|
||||
> Interface with libinput.
|
||||
> More information: <https://wayland.freedesktop.org/libinput/doc/latest/>.
|
||||
|
||||
- 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`
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# mknod
|
||||
|
||||
> Create block or character device special files.
|
||||
> More information: <https://www.gnu.org/software/coreutils/mknod>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/mknod-invocation.html>.
|
||||
|
||||
- Create a block device:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# mktemp
|
||||
|
||||
> Create a temporary file or directory.
|
||||
> More information: <https://www.gnu.org/software/coreutils/mktemp>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/mktemp-invocation.html>.
|
||||
|
||||
- Create an empty temporary file and print its absolute path:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# ptx
|
||||
|
||||
> Generate a permuted index of words from text files.
|
||||
> More information: <https://www.gnu.org/software/coreutils/ptx>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/ptx-invocation.html>.
|
||||
|
||||
- Generate a permuted index where the first field of each line is an index reference:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Remove files or directories.
|
||||
> See also: `rmdir`.
|
||||
> More information: <https://www.gnu.org/software/coreutils/rm>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/rm-invocation.html>.
|
||||
|
||||
- Remove specific files:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Remove directories without files.
|
||||
> See also: `rm`.
|
||||
> More information: <https://www.gnu.org/software/coreutils/rmdir>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/rmdir-invocation.html>.
|
||||
|
||||
- Remove specific directories:
|
||||
|
||||
|
||||
@@ -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: <https://www.gnu.org/software/coreutils/runcon>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/runcon-invocation.html>.
|
||||
|
||||
- Print the security context of the current execution context:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# sleep
|
||||
|
||||
> Delay for a specified amount of time.
|
||||
> More information: <https://www.gnu.org/software/coreutils/sleep>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/sleep-invocation.html>.
|
||||
|
||||
- Delay in seconds:
|
||||
|
||||
|
||||
@@ -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: <https://www.gnu.org/software/coreutils/tac>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/tac-invocation.html>.
|
||||
|
||||
- Concatenate specific files in reversed order:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user