Update cheatsheets

This commit is contained in:
ivuorinen
2025-01-19 00:18:40 +00:00
parent 6bd488b66f
commit 49f405dce8
76 changed files with 104 additions and 75 deletions

View File

@@ -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`:

View File

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

View 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:

View File

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

View File

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

View File

@@ -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
View 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`

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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