mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-05 05:44:15 +00:00
Update cheatsheets
This commit is contained in:
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# aws-google-auth
|
||||
|
||||
> Command-line tool to acquire AWS temporary (STS) credentials using Google Apps as a federated (Single Sign-On) provider.
|
||||
> Acquire AWS temporary (STS) credentials using Google Apps as a federated (Single Sign-On) provider.
|
||||
> More information: <https://github.com/cevoaustralia/aws-google-auth>.
|
||||
|
||||
- Log in with Google SSO using the specified [u]sername [I]DP and [S]P identifiers and set the credentials [d]uration to one hour:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# blackfire
|
||||
|
||||
> A command-line profiling tool for PHP.
|
||||
> Monitor, profile and test a PHP application.
|
||||
> More information: <https://blackfire.io>.
|
||||
|
||||
- Initialize and configure the Blackfire client:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# convert
|
||||
|
||||
> Image conversion tool.
|
||||
> Convert between image formats, scale, join, and create images, and much more.
|
||||
> Part of ImageMagick.
|
||||
> More information: <https://imagemagick.org/script/convert.php>.
|
||||
|
||||
|
||||
@@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`docker rm`
|
||||
`docker rm --help`
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# git secret
|
||||
|
||||
> Bash tool which stores private data inside a Git repository.
|
||||
> Stores private data inside a Git repository. Written in Bash.
|
||||
> More information: <https://github.com/sobolevn/git-secret>.
|
||||
|
||||
- Initialize `git-secret` in a local repository:
|
||||
|
||||
2
tldr/gyb
2
tldr/gyb
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gyb
|
||||
|
||||
> Command line tool for locally backing up Gmail messages using Gmail's API over HTTPS.
|
||||
> Locally back up Gmail messages using Gmail's API over HTTPS.
|
||||
> More information: <https://github.com/GAM-team/got-your-back>.
|
||||
|
||||
- Estimate the number and the size of all emails on your Gmail account:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# jenv
|
||||
|
||||
> Command-line tool to manage the "JAVA_HOME" environment variable.
|
||||
> Manage the "JAVA_HOME" environment variable.
|
||||
> More information: <https://www.jenv.be/>.
|
||||
|
||||
- Add a Java version to jEnv:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# json5
|
||||
|
||||
> A command-line tool for converting JSON5 files to JSON.
|
||||
> Convert JSON5 files to JSON.
|
||||
> More information: <https://json5.org>.
|
||||
|
||||
- Convert JSON5 `stdin` to JSON `stdout`:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# k8s-unused-secret-detector
|
||||
|
||||
> Command-line interface tool for detecting unused Kubernetes secrets.
|
||||
> Detect unused Kubernetes secrets.
|
||||
> More information: <https://github.com/dtan4/k8s-unused-secret-detector>.
|
||||
|
||||
- Detect unused secrets:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# k8sec
|
||||
|
||||
> Command-line interface tool to manage Kubernetes secrets.
|
||||
> Manage Kubernetes secrets.
|
||||
> More information: <https://github.com/dtan4/k8sec>.
|
||||
|
||||
- List all secrets:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ausyscall
|
||||
|
||||
> Program that allows mapping syscall names and numbers.
|
||||
> Map syscall names and numbers.
|
||||
> More information: <https://manned.org/ausyscall>.
|
||||
|
||||
- Display syscall number of a specific system call:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# betterdiscordctl
|
||||
|
||||
> A program for managing BetterDiscord on Linux.
|
||||
> Manage BetterDiscord on Linux.
|
||||
> More information: <https://github.com/bb010g/betterdiscordctl#manual>.
|
||||
|
||||
- Install BetterDiscord on Discord Stable:
|
||||
|
||||
@@ -5,12 +5,13 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# bspc
|
||||
|
||||
> A tool to control `bspwm`.
|
||||
> Configure and control `bspwm`, managing nodes, desktops, monitors, and more.
|
||||
> See also: `bspwm`.
|
||||
> More information: <https://github.com/baskerville/bspwm>.
|
||||
|
||||
- Define two virtual desktop:
|
||||
- Define two virtual desktops:
|
||||
|
||||
`bspc monitor --reset-desktops {{1}} {{2}}`
|
||||
`bspc monitor --reset-desktops {{desktop_name1}} {{desktop_name2}}`
|
||||
|
||||
- Focus the given desktop:
|
||||
|
||||
@@ -27,3 +28,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Toggle full screen mode for the selected node:
|
||||
|
||||
`bspc node --state ~fullscreen`
|
||||
|
||||
- Set the value of a specific setting:
|
||||
|
||||
`bspc config {{setting_name}} {{value}}`
|
||||
|
||||
@@ -6,12 +6,9 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# bspwm
|
||||
|
||||
> A tiling window manager based on binary space partitioning.
|
||||
> See also: `bspc`, for controlling it.
|
||||
> More information: <https://github.com/baskerville/bspwm>.
|
||||
|
||||
- Start `bspwm` (note that a pre-existing window manager must not be open when this command is run):
|
||||
|
||||
`bspwm -c {{path/to/config}}`
|
||||
|
||||
- View documentation for `bspc`:
|
||||
|
||||
`tldr bspc`
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# btrbk
|
||||
|
||||
> A tool for creating snapshots and remote backups of btrfs subvolumes.
|
||||
> Create snapshots and remote backups of btrfs subvolumes.
|
||||
> More information: <https://digint.ch/btrbk/doc/readme.html>.
|
||||
|
||||
- Print statistics about configured subvolumes and snapshots:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# cfdisk
|
||||
|
||||
> A program for managing partition tables and partitions on a hard disk using a curses UI.
|
||||
> Manage partition tables and partitions on a hard disk using a curses UI.
|
||||
> More information: <https://manned.org/cfdisk>.
|
||||
|
||||
- Start the partition manipulator with a specific device:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# cpufreq-info
|
||||
|
||||
> A tool to show CPU frequency information.
|
||||
> Show CPU frequency information.
|
||||
> More information: <https://manned.org/cpufreq-info>.
|
||||
|
||||
- Show CPU frequency information for all CPUs:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# dpkg-query
|
||||
|
||||
> A tool that shows information about installed packages.
|
||||
> Display information about installed packages.
|
||||
> More information: <https://manpages.debian.org/latest/dpkg/dpkg-query.1.html>.
|
||||
|
||||
- List all installed packages:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# fdisk
|
||||
|
||||
> A program for managing partition tables and partitions on a hard disk.
|
||||
> Manage partition tables and partitions on a hard disk.
|
||||
> See also: `partprobe`.
|
||||
> More information: <https://manned.org/fdisk>.
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# fwupdmgr
|
||||
|
||||
> A tool for updating device firmware, including UEFI, using `fwupd`.
|
||||
> Update device firmware, including UEFI, using `fwupd`.
|
||||
> More information: <https://fwupd.org/>.
|
||||
|
||||
- Display all devices detected by fwupd:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gdebi
|
||||
|
||||
> Simple tool to install `.deb` files.
|
||||
> Easily install `.deb` files.
|
||||
> More information: <https://www.commandlinux.com/man-page/man1/gdebi.1.html>.
|
||||
|
||||
- Install local `.deb` packages resolving and installing its dependencies:
|
||||
|
||||
21
tldr/linux/grubby
Normal file
21
tldr/linux/grubby
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# grubby
|
||||
|
||||
> Tool for configuring `grub` and `zipl` bootloaders.
|
||||
> More information: <https://manned.org/man/grubby.8>.
|
||||
|
||||
- Add kernel boot arguments to all kernel menu entries:
|
||||
|
||||
`sudo grubby --update-kernel=ALL --args '{{quiet console=ttyS0}}'`
|
||||
|
||||
- Remove existing arguments from the entry for the default kernel:
|
||||
|
||||
`sudo grubby --update-kernel=DEFAULT --remove-args {{quiet}}`
|
||||
|
||||
- List all kernel menu entries:
|
||||
|
||||
`sudo grubby --info=ALL`
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ipset
|
||||
|
||||
> A tool to create IP sets for firewall rules.
|
||||
> Create IP sets for firewall rules.
|
||||
> More information: <https://manned.org/ipset>.
|
||||
|
||||
- Create an empty IP set which will contain IP addresses:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# minicom
|
||||
|
||||
> A program to communicate with the serial interface of a device.
|
||||
> Communicate with the serial interface of a device.
|
||||
> More information: <https://manned.org/minicom>.
|
||||
|
||||
- Open a given serial port:
|
||||
|
||||
29
tldr/linux/navi
Normal file
29
tldr/linux/navi
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# navi
|
||||
|
||||
> An interactive cheatsheet tool for the command line and application launchers.
|
||||
> More information: <https://github.com/denisidoro/navi>.
|
||||
|
||||
- Browse through all available cheatsheets:
|
||||
|
||||
`navi`
|
||||
|
||||
- Browse the cheatsheet for `navi` itself:
|
||||
|
||||
`navi fn welcome`
|
||||
|
||||
- Print a command from the cheatsheet without executing it:
|
||||
|
||||
`navi --print`
|
||||
|
||||
- Output shell widget source code (It automatically detects your shell if possible, but can also be specified manually):
|
||||
|
||||
`navi widget {{shell}}`
|
||||
|
||||
- Autoselect and execute the snippet that best matches a query:
|
||||
|
||||
`navi --query '{{query}}' --best-match`
|
||||
@@ -12,9 +12,13 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`select {{word}} in {{apple}} {{orange}} {{pear}} {{banana}}; do echo ${{word}}; done`
|
||||
|
||||
- Create a menu for picking a file or folder from the current directory:
|
||||
- Create a menu from the output of another command:
|
||||
|
||||
`select {{file}} in *; do echo ${{file}}; done`
|
||||
`select {{line}} in $({{command}}); do echo ${{line}}; done`
|
||||
|
||||
- Specify the prompt string for `select` and create a menu for picking a file or folder from the current directory:
|
||||
|
||||
`PS3="{{Select a file: }}"; select {{file}} in *; do echo ${{file}}; done`
|
||||
|
||||
- Create a menu from a Bash array:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# update-alternatives
|
||||
|
||||
> A convenient tool for maintaining symbolic links to determine default commands.
|
||||
> Convenientily maintain symbolic links to determine default commands.
|
||||
> More information: <https://manned.org/update-alternatives>.
|
||||
|
||||
- Add a symbolic link:
|
||||
|
||||
2
tldr/lpr
2
tldr/lpr
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# lpr
|
||||
|
||||
> CUPS tool for printing files.
|
||||
> Print files.
|
||||
> See also: `lpstat` and `lpadmin`.
|
||||
> More information: <https://openprinting.github.io/cups/doc/man-lpr.html>.
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# minifab
|
||||
|
||||
> Utility tool that automates the setup and deployment of Hyperledger Fabric networks.
|
||||
> Automate the setup and deployment of Hyperledger Fabric networks.
|
||||
> More information: <https://github.com/hyperledger-labs/minifabric>.
|
||||
|
||||
- Bring up the default Hyperledger Fabric network:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# nativefier
|
||||
|
||||
> Command-line tool to create a desktop app for any web site with minimal configuration.
|
||||
> Create a desktop app for any web site with minimal configuration.
|
||||
> More information: <https://github.com/jiahaog/nativefier>.
|
||||
|
||||
- Make a desktop app for a website:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# nest
|
||||
|
||||
> Command-line tool to initialize, develop, and maintain Nest applications.
|
||||
> Initialize, develop, and maintain Nest applications.
|
||||
> More information: <https://docs.nestjs.com/cli/overview>.
|
||||
|
||||
- Display information about installed nest version:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# archey
|
||||
|
||||
> Simple tool for stylishly displaying system information.
|
||||
> Stylishly display system information.
|
||||
> More information: <https://github.com/joshfinnie/archey-osx>.
|
||||
|
||||
- Show system information:
|
||||
|
||||
@@ -20,6 +20,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`shuf {{filename}} --output={{output_filename}}`
|
||||
|
||||
- Generate random numbers in range 1-10:
|
||||
- Generate random numbers in the range 1 to 10:
|
||||
|
||||
`shuf --input-range={{1-10}}`
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# wacaw
|
||||
|
||||
> Command-line tool for macOS to capture both still pictures and video from an attached camera.
|
||||
> Capture both still pictures and video from an attached camera.
|
||||
> More information: <http://webcam-tools.sourceforge.net>.
|
||||
|
||||
- Take a picture from webcam:
|
||||
|
||||
10
tldr/tokei
10
tldr/tokei
@@ -5,21 +5,21 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# tokei
|
||||
|
||||
> A program that prints out statistics about code.
|
||||
> Display statistics about code.
|
||||
> More information: <https://github.com/XAMPPRocky/tokei>.
|
||||
|
||||
- Get a report on the code in a directory and all subdirectories:
|
||||
- Display a report for the code in a directory and all subdirectories:
|
||||
|
||||
`tokei {{path/to/directory}}`
|
||||
|
||||
- Get a report for a directory excluding `.min.js` files:
|
||||
- Display a report for a directory excluding `.min.js` files:
|
||||
|
||||
`tokei {{path/to/directory}} -e {{*.min.js}}`
|
||||
|
||||
- Print out statistics for individual files in a directory:
|
||||
- Display statistics for individual files in a directory:
|
||||
|
||||
`tokei {{path/to/directory}} --files`
|
||||
|
||||
- Get a report for all files of type Rust and Markdown:
|
||||
- Display a report for all files of type Rust and Markdown:
|
||||
|
||||
`tokei {{path/to/directory}} -t={{Rust}},{{Markdown}}`
|
||||
|
||||
41
tldr/trufflehog
Normal file
41
tldr/trufflehog
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# trufflehog
|
||||
|
||||
> Find and verify credentials in files, Git repositories, S3 buckets, and Docker images.
|
||||
> More information: <https://github.com/trufflesecurity/trufflehog>.
|
||||
|
||||
- Scan a Git repository for verified secrets:
|
||||
|
||||
`trufflehog git {{https://github.com/trufflesecurity/test_keys}} --only-verified`
|
||||
|
||||
- Scan a GitHub organization for verified secrets:
|
||||
|
||||
`trufflehog github --org={{trufflesecurity}} --only-verified`
|
||||
|
||||
- Scan a GitHub repository for verified keys and get JSON output:
|
||||
|
||||
`trufflehog git {{https://github.com/trufflesecurity/test_keys}} --only-verified --json`
|
||||
|
||||
- Scan a GitHub repository along with its Issues and Pull Requests:
|
||||
|
||||
`trufflehog github --repo={{https://github.com/trufflesecurity/test_keys}} --issue-comments --pr-comments`
|
||||
|
||||
- Scan an S3 bucket for verified keys:
|
||||
|
||||
`trufflehog s3 --bucket={{bucket name}} --only-verified`
|
||||
|
||||
- Scan S3 buckets using IAM Roles:
|
||||
|
||||
`trufflehog s3 --role-arn={{iam-role-arn}}`
|
||||
|
||||
- Scan individual files or directories:
|
||||
|
||||
`trufflehog filesystem {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`
|
||||
|
||||
- Scan a Docker image for verified secrets:
|
||||
|
||||
`trufflehog docker --image {{trufflesecurity/secrets}} --only-verified`
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gpupdate
|
||||
|
||||
> A tool to check and apply Windows Group Policy settings.
|
||||
> Check and apply Windows Group Policy settings.
|
||||
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/gpupdate>.
|
||||
|
||||
- Check and apply updated Group Policy settings:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# zip2john
|
||||
|
||||
> A tool to extract password hashes from `zip` archives for use with John the Ripper password cracker.
|
||||
> Extract password hashes from `zip` archives for use with John the Ripper password cracker.
|
||||
> This is a utility tool usually installed as part of the John the Ripper installation.
|
||||
> More information: <https://www.openwall.com/john/>.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user