Update cheatsheets

This commit is contained in:
ivuorinen
2024-09-28 00:16:46 +00:00
parent 3d00577959
commit fe793953f8
19 changed files with 52 additions and 31 deletions

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# docker pull
> Download Docker images from a registry.
> More information: <https://docs.docker.com/engine/reference/commandline/pull/>.
> More information: <https://docs.docker.com/reference/cli/docker/image/pull/>.
- Download a specific Docker image:

13
tldr/dtc Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# dtc
> The Device Tree Compiler, a tool for recompiling device trees between formats.
> More information: <https://github.com/dgibson/dtc>.
- Decompile a `.dtb` file into a readable `.dts` file:
`dtc -I dtb -O dts -o {{path/to/output_file.dts}} {{path/to/input_file.dtb}}`

View File

@@ -7,6 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> VPN daemon.
> Works on Layer 2 or Layer 3, supports different encryption methods, used by Freifunk.
> See also: `ivpn`, `mozillavpn`, `mullvad`, `warp-cli`.
> More information: <https://fastd.readthedocs.io/en/stable/>.
- Start `fastd` with a specific configuration file:
@@ -21,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
`fastd --verify-config --config {{path/to/fastd.conf}}`
- Generate a new key:
- Generate a new keypair:
`fastd --generate-key`

View File

@@ -18,12 +18,12 @@ source: https://github.com/tldr-pages/tldr.git
- Upload a file with password:
`ffsend upload {{path/to/file}} -p {{password}}`
`ffsend upload {{path/to/file}} {{-p|--password}} {{password}}`
- Download a file protected by password:
`ffsend download {{path/to/file}} -p {{password}}`
`ffsend download {{url}} {{-p|--password}} {{password}}`
- Upload a file and allow 4 downloads:
`ffsend upload {{path/to/file}} -d {{4}}`
`ffsend upload {{path/to/file}} {{-d|--downloads}} {{4}}`

View File

@@ -10,12 +10,12 @@ source: https://github.com/tldr-pages/tldr.git
- List alive hosts within a subnet generated from a netmask:
`fping -a -g 192.168.1.0/24`
`fping {{-a|--alive}} {{-g|--generate}} 192.168.1.0/24`
- List alive hosts within a subnet generated from an IP range:
`fping -a -g 192.168.1.1 192.168.1.254`
`fping {{-a|--alive}} {{-g|--generate}} 192.168.1.1 192.168.1.254`
- List unreachable hosts within a subnet generated from a netmask:
`fping -u -g 192.168.1.0/24`
`fping {{-u|--unreach}} {{-g|--generate}} 192.168.1.0/24`

View File

@@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git
- Show only the 5 latest entries in the reflog:
`git reflog {{-n|--dry-run}} {{5}}`
`git reflog {{-n|--max-count}} 5`

View File

@@ -10,8 +10,8 @@ source: https://github.com/tldr-pages/tldr.git
- Generate statistics for a local repository:
`gitstats {{path/to/gitrepo/.git}} {{path/to/output_folder}}`
`gitstats {{path/to/git_repo/.git}} {{path/to/output_folder}}`
- View generated statistics in a web browser:
- View generated statistics in a web browser on Windows (PowerShell)/macOS/Linux:
`xdg-open {{path/to/output_folder/index.html}}`
`{{Invoke-Item|open|xdg-open}} {{path/to/output_folder/index.html}}`

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# ivpn
> Command-line interface for the IVPN client.
> See also: `fastd`, `mozillavpn`, `mullvad`, `warp-cli`.
> More information: <https://www.ivpn.net>.
- Print the current state of IVPN, including the connection and firewall status:

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Display all filesystems and their disk usage in human-readable form:
`df -h`
`df {{-h|--human-readable}}`
- Display the filesystem and its disk usage containing the given file or directory:
@@ -22,8 +22,12 @@ source: https://github.com/tldr-pages/tldr.git
- Include statistics on the number of free inodes:
`df -i`
`df {{-i|--inodes}}`
- Display filesystems but exclude the specified types:
`df -x {{squashfs}} -x {{tmpfs}}`
`df {{-x|--exclude-type}} {{squashfs}} {{-x|--exclude-type}} {{tmpfs}}`
- Display filesystem types:
`df {{-T|--print-type}}`

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> Package management utility for RHEL, Fedora, and CentOS (it replaces dnf, which in turn replaced yum).
> DNF5 is a C++ rewrite of the DNF package manager featuring improved performance and a smaller size.
> For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
> More information: <https://dnf5.readthedocs.io/>.
> More information: <https://dnf5.readthedocs.io>.
- Upgrade installed packages to the newest available versions:

View File

@@ -16,11 +16,11 @@ source: https://github.com/tldr-pages/tldr.git
- Create a copy with Unix-style line endings:
`dos2unix -n {{path/to/file}} {{path/to/new_file}}`
`dos2unix {{-n|--newfile}} {{path/to/file}} {{path/to/new_file}}`
- Display file information:
`dos2unix -i {{path/to/file}}`
`dos2unix {{-i|--info}} {{path/to/file}}`
- Keep/add/remove Byte Order Mark:

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> Change macOS-style line endings to Unix-style.
> Replaces CR with LF.
> See also `unix2dos`, `unix2mac`, and `dos2unix`.
> More information: <https://waterlan.home.xs4all.nl/dos2unix.html>.
> More information: <https://manned.org/mac2unix>.
- Change the line endings of a file:
@@ -16,11 +16,11 @@ source: https://github.com/tldr-pages/tldr.git
- Create a copy with Unix-style line endings:
`mac2unix -n {{path/to/file}} {{path/to/new_file}}`
`mac2unix {{-n|--newfile}} {{path/to/file}} {{path/to/new_file}}`
- Display file information:
`mac2unix -i {{path/to/file}}`
`mac2unix {{-i|--info}} {{path/to/file}}`
- Keep/add/remove Byte Order Mark:

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> Change Unix-style line endings to DOS-style.
> Replaces LF with CRLF.
> See also `unix2mac`, `dos2unix`, and `mac2unix`.
> More information: <https://waterlan.home.xs4all.nl/dos2unix.html>.
> More information: <https://manned.org/unix2dos>.
- Change the line endings of a file:
@@ -16,11 +16,11 @@ source: https://github.com/tldr-pages/tldr.git
- Create a copy with DOS-style line endings:
`unix2dos -n {{path/to/file}} {{path/to/new_file}}`
`unix2dos {{-n|--newfile}} {{path/to/file}} {{path/to/new_file}}`
- Display file information:
`unix2dos -i {{path/to/file}}`
`unix2dos {{-i|--info}} {{path/to/file}}`
- Keep/add/remove Byte Order Mark:

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> Change Unix-style line endings to macOS-style.
> Replaces LF with CR.
> See also `unix2dos`, `dos2unix`, and `mac2unix`.
> More information: <https://waterlan.home.xs4all.nl/dos2unix.html>.
> Informasi lebih lanjut: <https://manned.org/unix2mac>.
- Change the line endings of a file:
@@ -16,11 +16,11 @@ source: https://github.com/tldr-pages/tldr.git
- Create a copy with macOS-style line endings:
`unix2mac -n {{path/to/file}} {{path/to/new_file}}`
`unix2mac {{-n|--newfile}} {{path/to/file}} {{path/to/new_file}}`
- Display file information:
`unix2mac -i {{path/to/file}}`
`unix2mac {{-i|--info}} {{path/to/file}}`
- Keep/add/remove Byte Order Mark:

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# mozillavpn
> A Virtual Private Network from the makers of Firefox.
> See also: `fastd`, `ivpn`, `mullvad`, `warp-cli`.
> More information: <https://github.com/mozilla-mobile/mozilla-vpn-client/wiki/Command-line-interface>.
- Log in with an interactive prompt:

View File

@@ -6,9 +6,10 @@ source: https://github.com/tldr-pages/tldr.git
# mullvad
> CLI client for Mullvad VPN.
> See also: `fastd`, `ivpn`, `mozillavpn`, `warp-cli`.
> More information: <https://mullvad.net/>.
- Link your mullvad account with the specified account number:
- Link your Mullvad account with the specified account number:
`mullvad account set {{account_number}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# SafeEjectGPU
> Eject a GPU safely.
> More information: <https://keith.github.io/xcode-man-pages/safeejectgpu.8.html>.
> More information: <https://keith.github.io/xcode-man-pages/SafeEjectGPU.8.html>.
- Eject all GPUs:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Connect, disconnect and switch modes of a connection to Cloudflare's WARP service.
> WARP is a VPN that encrypts traffic for privacy, security, and speed.
> See also: `fastd`, `ivpn`, `mozzilavpn`, `mullvad`.
> See also: `fastd`, `ivpn`, `mozillavpn`, `mullvad`.
> More information: <https://developers.cloudflare.com/warp-client/>.
- Register the current device to WARP (must be run before first connection):

View File

@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
`exit`
- Quit the current batch script:
- Quit the current [b]atch script:
`exit /b`