Update cheatsheets

This commit is contained in:
ivuorinen
2024-10-13 00:18:36 +00:00
parent 9e6dfc9983
commit 5f589d2ead
96 changed files with 227 additions and 103 deletions

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# betterlockscreen
> Simple, minimal lock screen.
> More information: <https://github.com/pavanjadhaw/betterlockscreen>.
> More information: <https://github.com/betterlockscreen/betterlockscreen>.
- Lock the screen:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# checkinstall
> Track the local installation of a software package, and produce a binary package which can be used with a system's native package manager.
> More information: <http://checkinstall.izto.org>.
> More information: <https://checkinstall.izto.org>.
- Create and install a package with default settings:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# cpuid
> Display detailed information about all CPUs.
> More information: <http://etallen.com/cpuid.html>.
> More information: <https://etallen.com/cpuid.html>.
- Display information for all CPUs:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# cpulimit
> A tool to throttle the CPU usage of other processes.
> More information: <http://cpulimit.sourceforge.net/>.
> More information: <https://cpulimit.sourceforge.net/>.
- Limit an existing process with PID 1234 to only use 25% of the CPU:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# cryptcat
> Cryptcat is netcat with encryption capabilities.
> More information: <http://cryptcat.sourceforge.net>.
> More information: <https://cryptcat.sourceforge.net>.
- [l]isten on a specified [p]ort and print any data received:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# daemonize
> Run a command (that does not daemonize itself) as a Unix daemon.
> More information: <http://software.clapper.org/daemonize/>.
> More information: <https://software.clapper.org/daemonize/>.
- Run a command as a daemon:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# datamash
> Perform basic numeric, textual and statistical operations on input textual data files.
> More information: <http://www.gnu.org/software/datamash/>.
> More information: <https://www.gnu.org/software/datamash/>.
- Get max, min, mean and median of a single column of numbers:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# dirb
> Scan HTTP-based webservers for directories and files.
> More information: <http://dirb.sourceforge.net>.
> More information: <https://dirb.sourceforge.net>.
- Scan a webserver using the default wordlist:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# esa snap
> Sentinel Application Platform (SNAP) for processing satellite data from the European Space Agency (ESA).
> More information: <http://step.esa.int/main/download/snap-download/>.
> More information: <https://step.esa.int/main/download/snap-download/>.
- Display all updates:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# etckeeper
> Track system configuration files in Git.
> More information: <http://etckeeper.branchable.com/>.
> More information: <https://etckeeper.branchable.com/>.
- Set up a Git repo and perform various setup tasks (run from `/etc`):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# ethtool
> Display and modify Network Interface Controller (NIC) parameters.
> More information: <http://manned.org/ethtool>.
> More information: <https://manned.org/ethtool>.
- Display the current settings for an interface:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Recover deleted files from ext3 or ext4 partitions by parsing the journal.
> See also `date` for Unix time information and `umount` for unmounting partitions.
> More information: <http://extundelete.sourceforge.net>.
> More information: <https://extundelete.sourceforge.net>.
- Restore all deleted files inside partition N on device X:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# gbp
> A system to integrate the Debian package build system with Git.
> More information: <http://honk.sigxcpu.org/projects/git-buildpackage/manual-html/gbp.html>.
> More information: <https://honk.sigxcpu.org/projects/git-buildpackage/manual-html/gbp.html>.
- Convert an existing Debian package to gbp:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# hlint
> Suggest improvements to Haskell code.
> More information: <http://hackage.haskell.org/package/hlint>.
> More information: <https://hackage.haskell.org/package/hlint>.
- Display suggestions for a given file:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# htpdate
> Synchronize local date and time via HTTP headers from web servers.
> More information: <http://www.vervest.org/htp/>.
> More information: <https://www.vervest.org/htp/>.
- Synchronize date and time:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> An HTTP benchmarking tool.
> Runs multiple HTTP fetches in parallel to test the throughput of a web server.
> More information: <http://www.acme.com/software/http_load/>.
> More information: <https://www.acme.com/software/http_load/>.
- Emulate 20 requests based on a given URL list file per second for 60 seconds:

View File

@@ -6,7 +6,8 @@ source: https://github.com/tldr-pages/tldr.git
# iw
> Show and manipulate wireless devices.
> More information: <https://manned.org/iw>.
> See also: `iw dev`.
> More information: <https://wireless.docs.kernel.org/en/latest/en/users/documentation/iw.html>.
- Scan for available wireless networks:
@@ -23,3 +24,19 @@ source: https://github.com/tldr-pages/tldr.git
- Show information about the current connection:
`iw dev {{wlp}} link`
- List all physical and logical wireless network interfaces:
`iw dev`
- List all wireless capabilities for all physical hardware interfaces:
`iw phy`
- List the kernel's current wireless regulatory domain information:
`iw reg get`
- Display help for all commands:
`iw help`

38
tldr/linux/iw-dev Normal file
View File

@@ -0,0 +1,38 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# iw dev
> Show and manipulate wireless devices.
> For a list of channels, frequencies and reg information: <https://wireless.docs.kernel.org/en/latest/en/developers/documentation/channellist.html>.
> More information: <https://wireless.docs.kernel.org/en/latest/en/users/documentation/iw.html>.
- Set device to monitor mode (interface must be down first. See also `ip link`):
`sudo iw dev {{wlp}} set type monitor`
- Set device to managed mode (interface must be down first):
`sudo iw dev {{wlp}} set type managed`
- Set device WiFi channel (device must first be in monitor mode with the interface up):
`sudo iw dev {{wlp}} set channel {{channel_number}}`
- Set device WiFi frequency in Mhz (device must first be in monitor mode with the interface up):
`sudo iw dev {{wlp}} set freq {{freq_in_mhz}}`
- Show all known station info:
`iw dev {{wlp}} station dump`
- Create a virtual interface in monitor mode with a specific MAC address:
`sudo iw dev {{wlp}} interface add "{{vif_name}}" type monitor addr {{12:34:56:aa:bb:cc}}`
- Delete virtual interface:
`sudo iw dev "{{vif_name}}" del`

13
tldr/linux/lndir Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# lndir
> Create a shadow directory of symbolic links to another directory tree.
> More information: <https://manned.org/lndir>.
- Create a shadow directory in the current directory:
`lndir {{path/to/directory}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# numlockx
> Control the number lock key status in X11 sessions.
> More information: <http://www.mike-devlin.com/linux/README-numlockx.htm>.
> More information: <https://www.mike-devlin.com/linux/README-numlockx.htm>.
- Show the current number lock status:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# physlock
> Lock all consoles and virtual terminals.
> More information: <http://github.com/muennich/physlock>.
> More information: <https://github.com/muennich/physlock>.
- Lock every console (require current user or root to unlock):

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Easy security-hardened OpenVPN setup and manager.
> Originally designed for the Raspberry Pi, but works on other Linux devices too.
> More information: <http://www.pivpn.io/>.
> More information: <https://www.pivpn.io/>.
- Add a new client device:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Postfix mail transfer agent (MTA) control program.
> See also `dovecot`, a mail delivery agent (MDA) that integrates with Postfix.
> More information: <http://www.postfix.org>.
> More information: <https://www.postfix.org>.
- Check the configuration:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# qjoypad
> Translate input from gamepads or joysticks into keyboard strokes or mouse actions.
> More information: <http://qjoypad.sourceforge.net/>.
> More information: <https://qjoypad.sourceforge.net/>.
- Start QJoyPad:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# runlim
> Sample and limit time and memory usage of a program and its child processes using the proc file system on Linux.
> More information: <http://fmv.jku.at/runlim>.
> More information: <https://fmv.jku.at/runlim>.
- Print the time and memory usage of a command:

View File

@@ -22,4 +22,8 @@ source: https://github.com/tldr-pages/tldr.git
- Record timing information (data is outputted to `stderr`):
`script -t 2> {{path/to/timingfile}}`
`script -t 2> {{path/to/timing_file}}`
- Write out data as soon as it happens:
`script -f {{path/to/file}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# speedometer
> Python script that shows a network traffic graph in the terminal.
> More information: <http://excess.org/speedometer>.
> More information: <https://excess.org/speedometer>.
- Show graph for a specific interface:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# udisksctl
> Interact with `udisksd` to query and manipulate storage devices.
> More information: <http://storaged.org/doc/udisks2-api/latest/udisksctl.1.html>.
> More information: <https://storaged.org/doc/udisks2-api/latest/udisksctl.1.html>.
- Show high-level information about disk drives and block devices: