# CommandSection

title: TLDR
content:
<b>List the available jobs</b>`act [[-l|--list]]`<br><b>Run the default event</b>`act`<br><b>Run a specific event</b>`act [event_type]`<br><b>Run a specific job</b>`act [[-j|--job]] [job_id]`<br><b>Do [n]ot actually run the actions (i.e. a dry run)</b>`act [[-n|--dryrun]]`<br><b>Show verbose logs</b>`act [[-v|--verbose]]`<br><b>Run a specific workflow with the push event</b>`act push [[-W|--workflows]] [path/to/workflow]`


title: TLDR
content:
<b>Find files containing string, and print the line matches in context</b>`ag string`<br><b>Find files containing string in a specific directory</b>`ag string [path/to/directory]`<br><b>Find files containing string, but only list the filenames</b>`ag [[-l|--files-with-matches]] string`<br><b>Find files containing STRING case-insensitively, and print only the match, rather than the whole line</b>`ag [[-i|--ignore-case]] [[-o|--only-matching]] STRING`<br><b>Find string in files with a name matching file_name</b>`ag string [[-G|--file-search-regex]] file_name`<br><b>Find files whose contents match a regex</b>`ag '[^ca(t|r)$]'`<br><b>Find files with a name matching string</b>`ag [[-g|--filename-pattern]] string`


title: TLDR
content:
<b>Wait for a message and display it when received</b>`airpaste`<br><b>Send text</b>`echo [text] | airpaste`<br><b>Send a file</b>`airpaste < [path/to/file]`<br><b>Receive a file</b>`airpaste > [path/to/file]`<br><b>Create or join a channel</b>`airpaste [channel_name]`


title: TLDR
content:
<b>Analyze text from stdin</b>`echo [His network looks good] | alex --stdin`<br><b>Analyze all files in the current directory</b>`alex`<br><b>Analyze a specific file</b>`alex [path/to/file.md]`<br><b>Analyze all Markdown files except example.md</b>`alex *.md ![example.md]`


title: TLDR
content:
<b>List installed roles or collections</b>`ansible-galaxy [role|collection] list`<br><b>Search for a role with various levels of verbosely (-v should be specified at the end)</b>`ansible-galaxy role search [keyword] -v[vvvvv]`<br><b>Install or remove role(s)</b>`ansible-galaxy role [install|remove] [role_name1 role_name2 ...]`<br><b>Create a new role</b>`ansible-galaxy role init [role_name]`<br><b>Get information about a role</b>`ansible-galaxy role info [role_name]`<br><b>Install or remove collection(s)</b>`ansible-galaxy collection [install|remove] [collection_name1 collection_name2 ...]`<br><b>Display help about roles or collections</b>`ansible-galaxy [role|collection] [[-h|--help]]`


title: TLDR
content:
<b>Run tasks in playbook</b>`ansible-playbook [playbook]`<br><b>Run tasks in playbook with custom host inventory</b>`ansible-playbook [playbook] [[-i|--inventory]] [inventory_file]`<br><b>Run tasks in playbook with extra variables defined via the command-line</b>`ansible-playbook [playbook] [[-e|--extra-vars]] "[variable1]=[value1] [variable2]=[value2]"`<br><b>Run tasks in playbook with extra variables defined in a JSON file</b>`ansible-playbook [playbook] [[-e|--extra-vars]] "@[variables.json]"`<br><b>Run tasks in playbook for the given tags</b>`ansible-playbook [playbook] [[-t|--tags]] [tag1,tag2]`<br><b>Run tasks in a playbook starting at a specific task</b>`ansible-playbook [playbook] --start-at [task_name]`<br><b>Run tasks in a playbook without making any changes (dry-run)</b>`ansible-playbook [playbook] [[-C|--check]] [[-D|--diff]]`


title: TLDR
content:
<b>Display a [f]orecast for the next seven days using metric [u]nits for a specific [l]ocation</b>`ansiweather -u metric -f 7 -l [Rzeszow,PL]`<br><b>Display a [F]orecast for the next five days showing [s]ymbols and [d]aylight data for your current location</b>`ansiweather -F -s true -d true`<br><b>Display today's [w]ind and [h]umidity data for your current location</b>`ansiweather -w true -h true`


title: TLDR
content:
<b>Update repository indexes and upgrade all packages</b>`apk upgrade [[-U|--update-cache]]`<br><b>Only update repository indexes</b>`apk update`<br><b>Install a new package</b>`apk add [package]`<br><b>Remove a package</b>`apk del [package]`<br><b>Repair/Reinstall a package without modifying main dependencies</b>`apk fix [package]`<br><b>Search for packages with a keyword in their name and list results with descriptions</b>`apk search [[-v|--verbose]] [keyword]`<br><b>Search for packages with a keyword in their description</b>`apk search [[-d|--description]] [keyword]`<br><b>Display information about a specific package</b>`apk info [package]`


title: TLDR
content:
<b>Install a package from <http://atom.io/packages> or a theme from <http://atom.io/themes></b>`apm install [package]`<br><b>Remove a package/theme</b>`apm remove [package]`<br><b>Upgrade a package/theme</b>`apm upgrade [package]`


title: TLDR
content:
<b>Update the metadata database</b>`sudo apt update`<br><b>Search for packages that contain the specified file or path</b>`apt-file [search|find] [path/to/file]`<br><b>List the contents of a specific package</b>`apt-file [show|list] [package]`<br><b>Search for packages that match the regex</b>`apt-file [search|find] [[-x|--regexp]] [regex]`


title: TLDR
content:
<b>Download a specific URI to a file</b>`aria2c "[url]"`<br><b>Download a file from a URI with a specific output name</b>`aria2c --out [path/to/file] "[url]"`<br><b>Download multiple different files in parallel</b>`aria2c --force-sequential [false] "[url1 url2 ...]"`<br><b>Download the same file from different mirrors and verify the checksum of the downloaded file</b>`aria2c --checksum [sha-256]=[hash] ["url1" "url2" ...]`<br><b>Download the URIs listed in a file with a specific number of parallel downloads</b>`aria2c --input-file [path/to/file] --max-concurrent-downloads [number_of_downloads]`<br><b>Download with multiple connections</b>`aria2c --split [number_of_connections] "[url]"`<br><b>FTP download with username and password</b>`aria2c --ftp-user [username] --ftp-passwd [password] "[url]"`<br><b>Limit download speed in bytes/s</b>`aria2c --max-download-limit [speed] "[url]"`


title: TLDR
content:
<b>Archive a file or directory</b>`asar pack [path/to/input_file_or_directory] [path/to/output_archive.asar]`<br><b>Extract an archive</b>`asar extract [path/to/archive.asar]`<br><b>Extract a specific file from an archive</b>`asar extract-file [path/to/archive.asar] [file]`<br><b>List the contents of an archive file</b>`asar list [path/to/archive.asar]`


title: TLDR
content:
<b>Associate the local install of asciinema with an asciinema.org account</b>`asciinema [[a|auth]]`<br><b>Make a new recording and save it to a local file (finish it with <Ctrl d> or type exit)</b>`asciinema [[r|record]] [path/to/recording.cast]`<br><b>Replay a terminal recording from a local file</b>`asciinema [[p|play]] [path/to/recording.cast]`<br><b>Replay a terminal recording hosted on <https://asciinema.org></b>`asciinema [[p|play]] https://asciinema.org/a/[cast_id]`<br><b>Make a new recording, limiting any idle time to at most 2.5 seconds</b>`asciinema [[r|record]] [[-i|--idle-time-limit]] 2.5`<br><b>Print the full output of a locally saved recording</b>`asciinema [[ca|cat]] [path/to/recording.cast]`<br><b>Upload a locally saved terminal session to asciinema.org</b>`asciinema [[u|upload]] [path/to/recording.cast]`<br><b>Stream the current terminal on a local webpage</b>`asciinema [[st|stream]] --local`


title: TLDR
content:
<b>List all available plugins</b>`asdf plugin list all`<br><b>Install a plugin</b>`asdf plugin add [name]`<br><b>List all available versions for a package</b>`asdf list all [name]`<br><b>Install a specific version of a package</b>`asdf install [name] [version]`<br><b>Set global version for a package</b>`asdf set -u [name] [version]`<br><b>Set local version for a package</b>`asdf set [name] [version]`<br><b>See the current version used for a package</b>`asdf current [name]`


title: TLDR
content:
<b>List all supported import formats</b>`assimp listext`<br><b>List all supported export formats</b>`assimp listexport`<br><b>Convert a file to one of the supported output formats, using the default parameters</b>`assimp export [input_file.stl] [output_file.obj]`<br><b>Convert a file using custom parameters (the dox_cmd.h file in assimp's source code lists available parameters)</b>`assimp export [input_file.stl] [output_file.obj] [parameters]`<br><b>Display a summary of a 3D file's contents</b>`assimp info [path/to/file]`<br><b>Display help</b>`assimp help`<br><b>Display help for a specific subcommand</b>`assimp [subcommand] --help`


title: TLDR
content:
<b>Scan a repository</b>`astronomer [tldr-pages/tldr-node-client]`<br><b>Scan the maximum amount of stars in the repository</b>`astronomer [tldr-pages/tldr-node-client] --stars [50]`<br><b>Scan a repository including comparative reports</b>`astronomer [tldr-pages/tldr-node-client] --verbose`


title: TLDR
content:
<b>Apply the default style of 4 spaces per indent and no formatting changes</b>`astyle [source_file]`<br><b>Apply the Java style with attached braces</b>`astyle --style=java [path/to/file]`<br><b>Apply the allman style with broken braces</b>`astyle --style=allman [path/to/file]`<br><b>Apply a custom indent using spaces. Choose between 2 and 20 spaces</b>`astyle --indent=spaces=[number_of_spaces] [path/to/file]`<br><b>Apply a custom indent using tabs. Choose between 2 and 20 tabs</b>`astyle --indent=tab=[number_of_tabs] [path/to/file]`


title: TLDR
content:
<b>Compile source file(s) and create an executable</b>`c99 [file.c]`<br><b>Compile source file(s) and specify the executable [o]utput filename</b>`c99 -o [executable_name] [file.c]`<br><b>Compile source file(s) and create object file(s)</b>`c99 -c [file.c]`<br><b>Compile source file(s), link with object file(s), and create an executable</b>`c99 [file.c] [file.o]`


title: TLDR
content:
<b>Open a file or directory</b>`atom [path/to/file_or_directory]`<br><b>Open a file or directory in a [n]ew window</b>`atom -n [path/to/file_or_directory]`<br><b>Open a file or directory in an existing window</b>`atom --add [path/to/file_or_directory]`<br><b>Open Atom in safe mode (does not load any additional packages)</b>`atom --safe`<br><b>Prevent Atom from forking into the background, keeping Atom attached to the terminal</b>`atom --foreground`<br><b>Wait for Atom window to close before returning (useful for Git commit editor)</b>`atom --wait`


title: TLDR
content:
<b>Initialize a configuration file</b>`atoum --init`<br><b>Run all tests</b>`atoum`<br><b>Run tests using the specified configuration file</b>`atoum [[-c|--configuration]] [path/to/file]`<br><b>Run a specific test file</b>`atoum [[-f|--files]] [path/to/file]`<br><b>Run a specific directory of tests</b>`atoum [[-d|--directories]] [path/to/directory]`<br><b>Run all tests under a specific namespace</b>`atoum [[-ns|--namespaces]] [namespace]`<br><b>Run all tests with a specific tag</b>`atoum [[-t|--tags]] [tag]`<br><b>Load a custom bootstrap file before running tests</b>`atoum [[-bf|--bootstrap-file]] [path/to/file]`


title: TLDR
content:
<b>Show the current user's scheduled jobs</b>`atq`<br><b>Show jobs from the a [q]ueue (queues have single-character names)</b>`atq -q [a]`<br><b>Show jobs of all users (run as superuser)</b>`sudo atq`


title: TLDR
content:
<b>Remove job number 10</b>`atrm [10]`<br><b>Remove many jobs, separated by spaces</b>`atrm [15] [17] [22]`


title: TLDR
content:
<b>Display the current configuration (or dry run)</b>`authconfig --test`<br><b>Configure the server to use a different password hashing algorithm</b>`authconfig --update --passalgo=[algorithm]`<br><b>Enable LDAP authentication</b>`authconfig --update --enableldapauth`<br><b>Disable LDAP authentication</b>`authconfig --update --disableldapauth`<br><b>Enable Network Information Service (NIS)</b>`authconfig --update --enablenis`<br><b>Enable Kerberos</b>`authconfig --update --enablekrb5`<br><b>Enable Winbind (Active Directory) authentication</b>`authconfig --update --enablewinbindauth`<br><b>Enable local authorization</b>`authconfig --update --enablelocauthorize`


title: TLDR
content:
<b>Remove unused variables from a single file and display the diff</b>`autoflake --remove-unused-variables [path/to/file.py]`<br><b>Remove unused imports from multiple files and display the diffs</b>`autoflake --remove-all-unused-imports [path/to/file1.py path/to/file2.py ...]`<br><b>Remove unused variables from a file, overwriting the file</b>`autoflake --remove-unused-variables --in-place [path/to/file.py]`<br><b>Remove unused variables recursively from all files in a directory, overwriting each file</b>`autoflake --remove-unused-variables --in-place --recursive [path/to/directory]`


title: TLDR
content:
<b>Add the autojump aliases to your shell</b>`source /usr/share/autojump/autojump.[bash|fish|zsh]`<br><b>Jump to a directory that contains the given pattern</b>`j [pattern]`<br><b>Jump to a sub-directory (child) of the current directory that contains the given pattern</b>`jc [pattern]`<br><b>Open a directory that contains the given pattern in the operating system file manager</b>`jo [pattern]`<br><b>Remove non-existing directories from the autojump database</b>`j --purge`<br><b>Show the entries in the autojump database</b>`j [[-s|--stat]]`


title: TLDR
content:
<b>Save the current screen layout</b>`autorandr [[-s|--save]] [profile_name]`<br><b>Show the saved profiles</b>`autorandr`<br><b>Load the first detected profile</b>`autorandr [[-c|--change]]`<br><b>Load a specific profile</b>`autorandr [[-l|--load]] [profile_name]`<br><b>Set the default profile</b>`autorandr [[-d|--default]] [profile_name]`


title: TLDR
content:
<b>[r]ead the flash ROM of a AVR microcontroller with a specific [p]art ID</b>`avrdude -p [part_no] -c [programmer_id] -U flash:r:[file.hex]:i`<br><b>[w]rite to the flash ROM AVR microcontroller</b>`avrdude -p [part_no] -c [programmer] -U flash:w:[file.hex]`<br><b>List available AVR devices</b>`avrdude -p \?`<br><b>List available AVR programmers</b>`avrdude -c \?`


title: TLDR
content:
<b>Show files in a bucket</b>`aws s3 ls [bucket_name]`<br><b>Sync files in a directory from local to bucket</b>`aws s3 sync [path/to/directory] s3://[bucket_name]`<br><b>Sync files and directories from bucket to local</b>`aws s3 sync s3://[bucket_name] [path/to/target]`<br><b>Sync files in a directory with exclusions</b>`aws s3 sync [path/to/directory] s3://[bucket_name] --exclude [path/to/file] --exclude [path/to/directory]/*`<br><b>Remove file from bucket</b>`aws s3 rm s3://[bucket]/[path/to/file]`<br><b>Preview changes only</b>`aws s3 [any_command] --dryrun`


title: TLDR
content:
<b>Configure the AWS Command-line</b>`aws configure wizard`<br><b>Configure the AWS Command-line using SSO</b>`aws configure sso`<br><b>Get the caller identity (used to troubleshoot permissions)</b>`aws sts get-caller-identity`<br><b>List AWS resources in a region and output in YAML</b>`aws dynamodb list-tables --region [us-east-1] --output yaml`<br><b>Use auto prompt to help with a command</b>`aws iam create-user --cli-auto-prompt`<br><b>Get an interactive wizard for an AWS resource</b>`aws dynamodb wizard [new_table]`<br><b>Generate a JSON CLI Skeleton (useful for infrastructure as code)</b>`aws dynamodb update-table --generate-cli-skeleton`<br><b>Display help for a specific command</b>`aws [command] help`


title: TLDR
content:
<b>Log in to Azure</b>`az login`<br><b>Manage azure subscription information</b>`az account`<br><b>List all Azure Managed Disks</b>`az disk list`<br><b>List all Azure virtual machines</b>`az vm list`<br><b>Manage Azure Kubernetes Services</b>`az aks`<br><b>Manage Azure Network resources</b>`az network`<br><b>Start in interactive mode</b>`az interactive`<br><b>Display help</b>`az --help`


title: TLDR
content:
<b>Print the text message as a large banner (quotes are optional)</b>`banner "[Hello World]"`<br><b>Use a banner width of 50 characters</b>`banner [[-w|--width]] 50 "[Hello World]"`<br><b>Read text from stdin</b>`banner`


title: TLDR
content:
<b>Add the bashmark aliases to your shell</b>`source /usr/share/bashmarks/bashmarks.sh`<br><b>List available bookmarks</b>`l`<br><b>Save the current directory as "bookmark_name"</b>`s [bookmark_name]`<br><b>Go to a bookmarked directory</b>`g [bookmark_name]`<br><b>Print a bookmarked directory's contents</b>`p [bookmark_name]`<br><b>Delete a bookmark</b>`d [bookmark_name]`


title: TLDR
content:
<b>Pretty print the contents of one or more files to stdout</b>`bat [path/to/file1 path/to/file2 ...]`<br><b>Concatenate several files into the target file</b>`bat [path/to/file1 path/to/file2 ...] > [path/to/target_file]`<br><b>Remove decorations and disable paging (--style plain can be replaced with -p, or both options with -pp)</b>`bat --style plain --pager never [path/to/file]`<br><b>Highlight a specific line or a range of lines with a different background color</b>`bat [[-H|--highlight-line]] [10|5:10|:10|10:|10:+5] [path/to/file]`<br><b>Show non-printable characters like space, tab or newline</b>`bat [[-A|--show-all]] [path/to/file]`<br><b>Remove all decorations except line numbers in the output</b>`bat [[-n|--number]] [path/to/file]`<br><b>Syntax highlight a JSON file by explicitly setting the language</b>`bat [[-l|--language]] json [path/to/file.json]`<br><b>Display all supported languages</b>`bat [[-L|--list-languages]]`


title: TLDR
content:
<b>Start the server, listening on port 11300</b>`beanstalkd`<br><b>[l]isten on a specific [p]ort and address</b>`beanstalkd -l [ip_address] -p [port_number]`<br><b>Persist work queues by saving them to disk</b>`beanstalkd -b [path/to/persistence_directory]`<br><b>Sync to the persistence directory every 500 milliseconds</b>`beanstalkd -b [path/to/persistence_directory] -f [500]`


title: TLDR
content:
<b>Intersect file [a] and file(s) [b] regarding the sequences' [s]trand and save the result to a specific file</b>`bedtools intersect -a [path/to/file_A] -b [path/to/file_B1 path/to/file_B2 ...] -s > [path/to/output_file]`<br><b>Intersect two files with a [l]eft [o]uter [j]oin, i.e. report each feature from file1 and NULL if no overlap with file2</b>`bedtools intersect -a [path/to/file1] -b [path/to/file2] -loj > [path/to/output_file]`<br><b>Using more efficient algorithm to intersect two pre-sorted files</b>`bedtools intersect -a [path/to/file1] -b [path/to/file2] -sorted > [path/to/output_file]`<br><b>[g]roup a file based on the first three and the fifth [c]olumn and apply the sum [o]peration on the sixth column</b>`bedtools groupby -i [path/to/file] -c 1-3,5 -g 6 -o sum`<br><b>Convert bam-formatted [i]nput file to a bed-formatted one</b>`bedtools bamtobed -i [path/to/file.bam] > [path/to/file.bed]`<br><b>Find for all features in file1.bed the closest one in file2.bed and write their [d]istance in an extra column (input files must be sorted)</b>`bedtools closest -a [path/to/file1.bed] -b [path/to/file2.bed] -d`


title: TLDR
content:
<b>Initialize a new Behat project</b>`behat --init`<br><b>Run all tests</b>`behat`<br><b>Run all tests from the specified suite</b>`behat --suite [suite_name]`<br><b>Run tests with a specific output formatter</b>`behat --format [pretty|progress]`<br><b>Run tests and output results to a file</b>`behat --out [path/to/file]`<br><b>List the definitions in your test suites</b>`behat --definitions`


title: TLDR
content:
<b>Install cookbook dependencies into a local repo</b>`berks install`<br><b>Update a specific cookbook and its dependencies</b>`berks update [cookbook]`<br><b>Upload a cookbook to the Chef server</b>`berks upload [cookbook]`<br><b>View the dependencies of a cookbook</b>`berks contingent [cookbook]`


title: TLDR
content:
<b>Send a transaction to a given address</b>`bitcoin-cli sendtoaddress "[address]" [amount]`<br><b>Generate one or more blocks</b>`bitcoin-cli generate [num_blocks]`<br><b>Print high-level information about the wallet</b>`bitcoin-cli getwalletinfo`<br><b>List all outputs from previous transactions available to fund outgoing transactions</b>`bitcoin-cli listunspent`<br><b>Export the wallet information to a text file</b>`bitcoin-cli dumpwallet "[path/to/file]"`<br><b>Get blockchain information</b>`bitcoin-cli getblockchaininfo`<br><b>Get network information</b>`bitcoin-cli getnetworkinfo`<br><b>Stop the Bitcoin Core daemon</b>`bitcoin-cli stop`


title: TLDR
content:
<b>Initialize and configure the Blackfire client</b>`blackfire config`<br><b>Launch the Blackfire agent</b>`blackfire agent`<br><b>Launch the Blackfire agent on a specific socket</b>`blackfire agent --socket="[tcp://127.0.0.1:8307]"`<br><b>Run the profiler on a specific program</b>`blackfire run [php path/to/file.php]`<br><b>Run the profiler and collect 10 samples</b>`blackfire --samples 10 run [php path/to/file.php]`<br><b>Run the profiler and output results as JSON</b>`blackfire --json run [php path/to/file.php]`<br><b>Upload a profiler file to the Blackfire web service</b>`blackfire upload [path/to/file]`<br><b>View the status of profiles on the Blackfire web service</b>`blackfire status`


title: TLDR
content:
<b>Render all frames of an animation in the background, without loading the UI (output is saved to /tmp)</b>`blender [[-b|--background]] [path/to/file.blend] [[-a|--render-anim]]`<br><b>Render an animation using a specific image naming pattern, in a path relative (//) to the .blend file</b>`blender [[-b|--background]] [path/to/file.blend] [[-o|--render-output]] //[render/frame_###.png] [[-a|--render-anim]]`<br><b>Render the 10th frame of an animation as a single image, saved to an existing directory (absolute path)</b>`blender [[-b|--background]] [path/to/file.blend] [[-o|--render-output]] /[path/to/output_directory] [[-f|--render-frame]] [10]`<br><b>Render the second last frame in an animation as a JPEG image, saved to an existing directory (relative path)</b>`blender [[-b|--background]] [path/to/file.blend] [[-o|--render-output]] //[output_directory] [[-f|--render-frame]] [JPEG] [[-f|--render-frame]] [-2]`<br><b>Render the animation of a specific scene, starting at frame 10 and ending at frame 500</b>`blender [[-b|--background]] [path/to/file.blend] [[-S|--scene]] [scene_name] [[-s|--frame-start]] [10] [[-e|--frame-end]] [500] [[-a|--render-anim]]`<br><b>Render an animation at a specific resolution, by passing a Python expression</b>`blender [[-b|--background]] [path/to/file.blend] --python-expr '[import bpy; bpy.data.scenes[0].render.resolution_percentage = 25]' [[-a|--render-anim]]`<br><b>Start an interactive Blender session in the terminal with a Python console (do import bpy after starting)</b>`blender [[-b|--background]] --python-console`


title: TLDR
content:
<b>Output a blockmap file from image file</b>`bmaptool create [[-o|--output]] [blockmap.bmap] [source.img]`<br><b>Copy an image file into sdb</b>`bmaptool copy --bmap [blockmap.bmap] [source.img] [/dev/sdb]`<br><b>Copy a compressed image file into sdb</b>`bmaptool copy --bmap [blockmap.bmap] [source.img.gz] [/dev/sdb]`<br><b>Copy an image file into sdb without using a blockmap</b>`bmaptool copy --nobmap [source.img] [/dev/sdb]`


title: TLDR
content:
<b>Display the list of all the interfaces</b>`bmon [[-a|--show-all]]`<br><b>Display data transfer rates in bits per second</b>`bmon [[-b|--use-bit]]`<br><b>Specify the policy to define which network interface(s) is/are displayed</b>`bmon [[-p|--policy]] [interface_1,interface_2,interface_3]`<br><b>Specify the interval (in seconds) in which rate per counter is calculated</b>`bmon [[-R|--rate-interval]] [2.0]`


title: TLDR
content:
<b>Show the current ARP table</b>`arp`<br><b>Show [a]lternative BSD style output format with on fixed columns</b>`arp -a`<br><b>[d]elete a specific entry</b>`sudo arp -d [address]`<br><b>[s]et up a new entry in the ARP table</b>`sudo arp -s [address] [mac_address]`


title: TLDR
content:
<b>Initialize a (local) repository</b>`borg init [path/to/repo_directory]`<br><b>Backup a directory into the repository, creating an archive called "Monday"</b>`borg create --progress [path/to/repo_directory]::[Monday] [path/to/source_directory]`<br><b>List all archives in a repository</b>`borg list [path/to/repo_directory]`<br><b>Extract a specific directory from the "Monday" archive in a remote repository, excluding all *.ext files</b>`borg extract [user]@[host]:[path/to/repo_directory]::[Monday] [path/to/target_directory] --exclude '[*.ext]'`<br><b>Prune a repository by deleting all archives older than 7 days, listing changes</b>`borg prune --keep-within [7d] --list [path/to/repo_directory]`<br><b>Mount a repository as a FUSE filesystem</b>`borg mount [path/to/repo_directory]::[Monday] [path/to/mountpoint]`<br><b>Display help on creating archives</b>`borg create --help`


title: TLDR
content:
<b>Create local alias for director in a specific environment</b>`bosh alias-env [environment_name] [[-e|--environment]] [ip_address|URL] --ca-cert [ca_certificate]`<br><b>List environments</b>`bosh environments`<br><b>Log in to the director</b>`bosh login [[-e|--environment]] [environment]`<br><b>List deployments</b>`bosh [[-e|--environment]] [environment] deployments`<br><b>List environment virtual machines in a deployment</b>`bosh [[-e|--environment]] [environment] vms [[-d|--deployment]] [deployment]`<br><b>SSH into virtual machine</b>`bosh [[-e|--environment]] [environment] ssh [virtual_machine] [[-d|--deployment]] [deployment]`<br><b>Upload stemcell</b>`bosh [[-e|--environment]] [environment] upload-stemcell [stemcell_file|url]`<br><b>Show current cloud config</b>`bosh [[-e|--environment]] [environment] cloud-config`


title: TLDR
content:
<b>Install a project's dependencies, listed in its bower.json</b>`bower install`<br><b>Install one or more packages to the bower_components directory</b>`bower install [package] [package]`<br><b>Uninstall packages locally from the bower_components directory</b>`bower uninstall [package] [package]`<br><b>List local packages and possible updates</b>`bower list`<br><b>Create a bower.json file for your package</b>`bower init`<br><b>Install a specific dependency version, and add it to bower.json</b>`bower install [local_name]=[package]#[version] --save`<br><b>Display help for a specific command</b>`bower help [command]`


title: TLDR
content:
<b>Compile a new Phar file</b>`box compile`<br><b>Compile a new Phar file using a specific configuration file</b>`box compile [[-c|--config]] [path/to/config]`<br><b>Display information about the PHAR PHP extension</b>`box info`<br><b>Display information about a specific Phar file</b>`box info [path/to/phar_file]`<br><b>Validate the first found configuration file in the working directory</b>`box validate`<br><b>Verify the signature of a specific Phar file</b>`box verify [path/to/phar_file]`<br><b>Display help</b>`box help`


title: TLDR
content:
<b>Show a list with information about currently existing Ethernet bridges</b>`sudo brctl show`<br><b>Create a new Ethernet bridge interface</b>`sudo brctl add [bridge_name]`<br><b>Delete an existing Ethernet bridge interface</b>`sudo brctl del [bridge_name]`<br><b>Add an interface to an existing bridge</b>`sudo brctl addif [bridge_name] [interface_name]`<br><b>Remove an interface from an existing bridge</b>`sudo brctl delif [bridge_name] [interface_name]`


title: TLDR
content:
<b>Start a server from a specific directory</b>`browser-sync start --server [path/to/directory] --files [path/to/directory]`<br><b>Start a server from local directory, watching all CSS files in a directory</b>`browser-sync start --server --files '[path/to/directory/*.css]'`<br><b>Create configuration file</b>`browser-sync init`<br><b>Start Browsersync from configuration file</b>`browser-sync start --config [config_file]`


title: TLDR
content:
<b>Initialize a backup repository in a given local directory</b>`bup [[-d|--bup-dir]] [path/to/repository] init`<br><b>Prepare a given directory before taking a backup</b>`bup [[-d|--bup-dir]] [path/to/repository] index [path/to/directory]`<br><b>Backup a directory to the repository specifying its name</b>`bup [[-d|--bup-dir]] [path/to/repository] save [[-n|--name]] [backup_name] [path/to/directory]`<br><b>Show the backup snapshots currently stored in the repository</b>`bup [[-d|--bup-dir]] [path/to/repository] ls`<br><b>Restore a specific backup snapshot to a target directory</b>`bup [[-d|--bup-dir]] [path/to/repository] restore [[-C|--outdir]] [path/to/target_directory] [backup_name]`


title: TLDR
content:
<b>Log in to a Bitwarden user account</b>`bw login`<br><b>Log out of a Bitwarden user account</b>`bw logout`<br><b>Search and display items from Bitwarden vault</b>`bw list items --search [github]`<br><b>Display a particular item from Bitwarden vault</b>`bw get item [github]`<br><b>Create a folder in Bitwarden vault</b>`[echo -n '{"name":"My Folder1"}' | base64] | bw create folder`


title: TLDR
content:
<b>Search and list packages from Hackage</b>`cabal list [search_string]`<br><b>Show information about a package</b>`cabal info [package]`<br><b>Download and install a package</b>`cabal install [package]`<br><b>Create a new Haskell project in the current directory</b>`cabal init`<br><b>Build the project in the current directory</b>`cabal build`<br><b>Run tests of the project in the current directory</b>`cabal test`


title: TLDR
content:
<b>Display basic information about the current app and available commands</b>`cake`<br><b>List available routes</b>`cake routes`<br><b>Clear configuration caches</b>`cake cache clear_all`<br><b>Build the metadata cache</b>`cake schema_cache build --connection [connection]`<br><b>Clear the metadata cache</b>`cake schema_cache clear`<br><b>Clear a single cache table</b>`cake schema_cache clear [table_name]`<br><b>Start a development web server (defaults to port 8765)</b>`cake server`<br><b>Start a REPL (interactive shell)</b>`cake console`


title: TLDR
content:
<b>Start calc in interactive mode</b>`calc`<br><b>Perform a calculation in non-interactive mode</b>`calc '[85 * (36 / 4)]'`<br><b>Don't format the output (for use with [p]ipes)</b>`calc -p '[4/3 * pi() * 5^3]'`<br><b>Perform a calculation and then switch to [i]nteractive mode</b>`calc -i '[sqrt(2)]'`<br><b>Start calc in a specific permission [m]ode (0 to 7, defaults to 7)</b>`calc -m [mode]`<br><b>View an introduction to calc</b>`calc help intro`<br><b>View an overview of calc</b>`calc help overview`<br><b>Open the calc manual</b>`calc help`


title: TLDR
content:
<b>Start calcurse on interactive mode</b>`calcurse`<br><b>Print the appointments and events for the current day and exit</b>`calcurse [[-a|--appointment]]`<br><b>Remove all local calcurse items and import remote objects</b>`calcurse-caldav --init=keep-remote`<br><b>Remove all remote objects and push local calcurse items</b>`calcurse-caldav --init=keep-local`<br><b>Copy local objects to the CalDAV server and vice versa</b>`calcurse-caldav --init=two-way`


title: TLDR
content:
<b>Start a server to distribute e-books. Access at <http://localhost:8080></b>`calibre-server`<br><b>Start server on different port. Access at <http://localhost:port></b>`calibre-server --port [port]`<br><b>Password protect the server</b>`calibre-server --username [username] --password [password]`


title: TLDR
content:
<b>List e-books in the library with additional information</b>`calibredb list`<br><b>Search for e-books displaying additional information</b>`calibredb list --search [search_term]`<br><b>Search for just ids of e-books</b>`calibredb search [search_term]`<br><b>Add one or more e-books to the library</b>`calibredb add [path/to/file1 path/to/file2 ...]`<br><b>Recursively add all e-books under a directory to the library</b>`calibredb add [[-r|--recurse]] [path/to/directory]`<br><b>Remove one or more e-books from the library. You need the e-book IDs (see above)</b>`calibredb remove [id1 id2 ...]`


title: TLDR
content:
<b>Search for crates</b>`cargo search [search_string]`<br><b>Install a binary crate</b>`cargo install [crate_name]`<br><b>List installed binary crates</b>`cargo install --list`<br><b>Create a new binary or library Rust project in the specified directory (or the current working directory by default)</b>`cargo init --[bin|lib] [path/to/directory]`<br><b>Add a dependency to Cargo.toml in the current directory</b>`cargo add [dependency]`<br><b>Build the Rust project in the current directory using the release profile</b>`cargo [[b|build]] [[-r|--release]]`<br><b>Build the Rust project in the current directory using the nightly compiler (requires rustup)</b>`cargo +nightly [[b|build]]`<br><b>Build using a specific number of threads (default is the number of logical CPUs)</b>`cargo [[b|build]] --jobs [number_of_threads]`


title: TLDR
content:
<b>Match a variable against string literals to decide which command to run</b>`case [$COUNTRULE] in [words]) [wc --words README] ;; [lines]) [wc --lines README] ;; esac`<br><b>Combine patterns with |, use * as a fallback pattern</b>`case [$COUNTRULE] in [[wW]|words]) [wc --words README] ;; [[lL]|lines]) [wc --lines README] ;; *) [echo "what?"] ;; esac`<br><b>Allow matching multiple patterns</b>`case [$ANIMAL] in [cat]) [echo "It's a cat"] ;;& [cat|dog]) [echo "It's a cat or a dog"] ;;& *) [echo "Fallback"] ;; esac`<br><b>Continue to the next pattern's commands without checking the pattern</b>`case [$ANIMAL] in [cat]) [echo "It's a cat"] ;& [dog]) [echo "It's either a dog or cat fell through"] ;& *) [echo "Fallback"] ;; esac`<br><b>Display help</b>`help case`


title: TLDR
content:
<b>Obtain a new certificate via webroot authorization, but do not install it automatically</b>`sudo certbot certonly --webroot [[-w|--webroot-path]] [path/to/webroot] [[-d|--domain]] [subdomain.example.com]`<br><b>Obtain a new certificate via nginx authorization, installing the new certificate automatically</b>`sudo certbot --nginx [[-d|--domain]] [subdomain.example.com]`<br><b>Obtain a new certificate via apache authorization, installing the new certificate automatically</b>`sudo certbot --apache [[-d|--domain]] [subdomain.example.com]`<br><b>Renew all Let's Encrypt certificates that expire in 30 days or less (don't forget to restart any servers that use them afterwards)</b>`sudo certbot renew`<br><b>Simulate the obtaining of a new certificate, but don't actually save any new certificates to disk</b>`sudo certbot --webroot [[-w|--webroot-path]] [path/to/webroot] [[-d|--domain]] [subdomain.example.com] --dry-run`<br><b>Obtain an untrusted test certificate instead</b>`sudo certbot --webroot [[-w|--webroot-path]] [path/to/webroot] [[-d|--domain]] [subdomain.example.com] --test-cert`


title: TLDR
content:
<b>Print the contents of a file to stdout</b>`cat [path/to/file]`<br><b>Concatenate several files into an output file</b>`cat [path/to/file1 path/to/file2 ...] > [path/to/output_file]`<br><b>Append several files to an output file</b>`cat [path/to/file1 path/to/file2 ...] >> [path/to/output_file]`<br><b>Copy the contents of a file into an output file without buffering</b>`cat -u [/dev/tty12] > [/dev/tty13]`<br><b>Write stdin to a file</b>`cat - > [path/to/file]`


title: TLDR
content:
<b>Scan a file for vulnerabilities</b>`clamscan [path/to/file]`<br><b>Scan all files recursively in a specific directory</b>`clamscan [[-r|--recursive]] [path/to/directory]`<br><b>Scan data from stdin</b>`[command] | clamscan -`<br><b>Specify a virus database file or directory of files</b>`clamscan [[-d|--database]] [path/to/database_file_or_directory]`<br><b>Scan the current directory and output only infected files</b>`clamscan [[-i|--infected]]`<br><b>Print the scan report to a log file</b>`clamscan [[-l|--log]] [path/to/log_file]`<br><b>Move infected files to a specific directory</b>`clamscan --move [path/to/quarantine_directory]`<br><b>Remove infected files</b>`clamscan --remove yes`


title: TLDR
content:
<b>Start the GUI or bring it to front</b>`clementine`<br><b>Start playing music</b>`clementine [URL|path/to/music.ext]`<br><b>Toggle between pausing and playing</b>`clementine [[-t|--play-pause]]`<br><b>Stop playback</b>`clementine [[-s|--stop]]`<br><b>Skip to the next or previous track</b>`clementine --[next|previous]`<br><b>Create a new playlist with one or more music files or URLs</b>`clementine [[-c|--create]] [URL1|path/to/music1.ext URL2|path/to/music2.ext ...]`<br><b>Load a playlist file</b>`clementine [[-l|--load]] [path/to/playlist.ext]`<br><b>Play a specific track in the currently loaded playlist</b>`clementine [[-k|--play-track]] [5]`


title: TLDR
content:
<b>Count all the lines of code in a directory</b>`cloc [path/to/directory]`<br><b>Compare 2 directory structures and count the differences between them</b>`cloc --diff [path/to/directory1] [path/to/directory2]`<br><b>Ignore files that are ignored by VCS, such as files specified in .gitignore</b>`cloc --vcs git [path/to/directory]`<br><b>Display the results for each file instead of each language</b>`cloc --by-file [path/to/directory]`


title: TLDR
content:
<b>Monitor Clockwork logs for the current project</b>`clockwork-cli`<br><b>Monitor Clockwork logs for a specific project</b>`clockwork-cli [path/to/directory]`<br><b>Monitor Clockwork logs for multiple projects</b>`clockwork-cli [path/to/directory1 path/to/directory2 ...]`


title: TLDR
content:
<b>Generate a build recipe in the current directory with CMakeLists.txt from a project directory</b>`cmake [path/to/project_directory]`<br><b>Use a generated recipe in a given directory to build artifacts</b>`cmake --build [path/to/build_directory]`<br><b>Install the build artifacts into /usr/local/ and strip debugging symbols</b>`cmake --install [path/to/build_directory] --strip`<br><b>Generate a build recipe, with build type set to Release with CMake variable</b>`cmake [path/to/project_directory] -D CMAKE_BUILD_TYPE=Release`<br><b>Generate a build recipe using generator_name as the underlying build system</b>`cmake -G [generator_name] [path/to/project_directory]`<br><b>Install the build artifacts using a custom prefix for paths</b>`cmake --install [path/to/build_directory] --strip --prefix [path/to/directory]`<br><b>Run a custom build target</b>`cmake --build [path/to/build_directory] [[-t|--target]] [target_name]`<br><b>Display help</b>`cmake [[-h|--help]]`


title: TLDR
content:
<b>Render a CommonMark Markdown file to HTML</b>`cmark --to html [filename.md]`<br><b>Convert data from stdin to LaTeX</b>`cmark --to latex`<br><b>Convert straight quotes to smart quotes</b>`cmark --smart --to html [filename.md]`<br><b>Validate UTF-8 characters</b>`cmark --validate-utf8 [filename.md]`


title: TLDR
content:
<b>Open cmus into the specified directory (this will become your new working directory)</b>`cmus [path/to/directory]`<br><b>Add file/directory to library</b>`<:>add [path/to/file_or_directory]`<br><b>Refresh the metadata of songs in the library</b>`<:>update-cache`<br><b>Search for songs, albums, or artists</b>`</>[something]`<br><b>Pause/unpause current song</b>`<c>`<br><b>Toggle shuffle mode on/off</b>`<s>`<br><b>Quit cmus</b>`<q>`


title: TLDR
content:
<b>Start Visual Studio Code</b>`code`<br><b>Open specific files/directories</b>`code [path/to/file_or_directory1 path/to/file_or_directory2 ...]`<br><b>Compare two specific files</b>`code [[-d|--diff]] [path/to/file1] [path/to/file2]`<br><b>Open specific files/directories in a new window</b>`code [[-n|--new-window]] [path/to/file_or_directory1 path/to/file_or_directory2 ...]`<br><b>Install/uninstall a specific extension</b>`code --[install|uninstall]-extension [publisher.extension]`<br><b>Display diagnostic and process information about the running code window</b>`code [[-s|--status]]`<br><b>Print installed extensions with their versions</b>`code --list-extensions --show-versions`<br><b>Start the editor as a superuser (root) while storing user data in a specific directory</b>`sudo code --user-data-dir [path/to/directory]`


title: TLDR
content:
<b>Run a script</b>`coffee [path/to/file.coffee]`<br><b>Compile to JavaScript and save to a file with the same name</b>`coffee --compile [path/to/file.coffee]`<br><b>Compile to JavaScript and save to a given output file</b>`coffee --compile [path/to/file.coffee] --output [path/to/file.js]`<br><b>Start a REPL (interactive shell)</b>`coffee --interactive`<br><b>Watch script for changes and re-run script</b>`coffee --watch [path/to/file.coffee]`


title: TLDR
content:
<b>Test the configuration file and then exit</b>`collectd -t`<br><b>Test plugin data collection functionality and then exit</b>`collectd -T`<br><b>Start collectd</b>`collectd`<br><b>Specify a custom configuration file location</b>`collectd -C [path/to/file]`<br><b>Specify a custom PID file location</b>`collectd -P [path/to/file]`<br><b>Don't fork into the background</b>`collectd -f`<br><b>Display help and version</b>`collectd -h`


title: TLDR
content:
<b>Format the output of a command for a 30 characters wide display</b>`printf "header1 header2\nbar foo\n" | column [[-c|--output-width]] [30]`<br><b>Split columns automatically and auto-align them in a tabular format</b>`printf "header1 header2\nbar foo\n" | column [[-t|--table]]`<br><b>Specify the column delimiter character for the --table option (e.g. "," for CSV) (defaults to whitespace)</b>`printf "header1,header2\nbar,foo\n" | column [[-t|--table]] [[-s|--separator]] [,]`<br><b>Fill rows before filling columns</b>`printf "header1\nbar\nfoobar\n" | column [[-c|--output-width]] [30] [[-x|--fillrows]]`


title: TLDR
content:
<b>Set arguments of a command to autocomplete through a function (completion response is sent in COMPREPLY variable)</b>`complete -F [function] [command]`<br><b>Set arguments of a command to autocomplete through another command ($1 is the command, $2 is the argument the cursor is on, and $3 is the argument preceding the cursor)</b>`complete -C [autocomplete_command] [command]`<br><b>Set arguments of a command to autocomplete to shell builtins</b>`complete -b [command]`<br><b>Apply autocompletion without appending a space to the completed word</b>`complete -o nospace -F [function] [command]`<br><b>List all loaded complete specifications</b>`complete -p`<br><b>List loaded complete specifications for a command</b>`complete -p [command]`


title: TLDR
content:
<b>Interactively create a composer.json file</b>`composer init`<br><b>Add a package as a dependency for this project, adding an entry to composer.json</b>`composer require [user/package]`<br><b>Install all the dependencies in this project's composer.json and create composer.lock</b>`composer install`<br><b>Uninstall a package from this project, removing it as a dependency from composer.json and composer.lock</b>`composer remove [user/package]`<br><b>Update all the dependencies in this project's composer.json and note new versions in composer.lock file</b>`composer update`<br><b>Update only composer.lock after updating composer.json manually</b>`composer update --lock`<br><b>Learn more about why a dependency can't be installed</b>`composer why-not [user/package]`<br><b>Update composer to its latest version</b>`composer self-update`


title: TLDR
content:
<b>Create a new environment, installing named packages into it</b>`conda create [[-n|--name]] [environment_name] [python=3.9 matplotlib]`<br><b>List all environments</b>`conda info [[-e|--envs]]`<br><b>Activate an environment</b>`conda activate [environment_name]`<br><b>Deactivate an environment</b>`conda deactivate`<br><b>Delete an environment (remove all packages)</b>`conda remove [[-n|--name]] [environment_name] --all`<br><b>Install packages into the current environment</b>`conda install [python=3.4 numpy]`<br><b>List currently installed packages in current environment</b>`conda list`<br><b>Delete unused packages and caches</b>`conda clean [[-a|--all]]`


title: TLDR
content:
<b>Read a value from the key-value store</b>`consul kv get [key]`<br><b>Store a new key-value pair</b>`consul kv put [key] [value]`<br><b>Delete a key-value pair</b>`consul kv delete [key]`


title: TLDR
content:
<b>Display help</b>`consul --help`<br><b>Display help for a subcommand</b>`consul [subcommand] --help`<br><b>Display version</b>`consul --version`


title: TLDR
content:
<b>Test filename encoding conversion (don't actually change the filename)</b>`convmv -f [from_encoding] -t [to_encoding] [input_file]`<br><b>Convert filename encoding and rename the file to the new encoding</b>`convmv -f [from_encoding] -t [to_encoding] --notest [input_file]`


title: TLDR
content:
<b>Create a Cordova project</b>`cordova create [path/to/directory] [package] [project_name]`<br><b>Display the current workspace status</b>`cordova info`<br><b>Add a Cordova platform</b>`cordova platform add [platform]`<br><b>Remove a Cordova platform</b>`cordova platform remove [platform]`<br><b>Add a Cordova plugin</b>`cordova plugin add [pluginid]`<br><b>Remove a Cordova plugin</b>`cordova plugin remove [pluginid]`


title: TLDR
content:
<b>Start CouchDB</b>`couchdb`<br><b>Start CouchDB interactive shell</b>`couchdb -i`<br><b>Start CouchDB as a background process</b>`couchdb -b`<br><b>Kill the background process (Note: It will respawn if needed)</b>`couchdb -k`<br><b>Shutdown the background process</b>`couchdb -d`


title: TLDR
content:
<b>Recursively check the current directory, showing progress on the screen and logging error messages to a file</b>`cppcheck . 2> cppcheck.log`<br><b>Recursively check a given directory, and don't print progress messages</b>`cppcheck [[-q|--quiet]] [path/to/directory]`<br><b>Check a given file, specifying which tests to perform (by default only errors are shown)</b>`cppcheck --enable [error|warning|style|performance|portability|information|all] [path/to/file.cpp]`<br><b>List available tests</b>`cppcheck --errorlist`<br><b>Check a given file, ignoring specific tests</b>`cppcheck --suppress [test_id1] --suppress [test_id2] [path/to/file.cpp]`<br><b>Check the current directory, providing paths for include files located outside it (e.g. external libraries)</b>`cppcheck -I [include/directory_1] -I [include/directory_2] .`<br><b>Check a Microsoft Visual Studio project (*.vcxproj) or solution (*.sln)</b>`cppcheck --project [path/to/project.sln]`


title: TLDR
content:
<b>Run in a project's directory</b>`cppclean [path/to/project]`<br><b>Run on a project where the headers are in the inc1/ and inc2/ directories</b>`cppclean [path/to/project] --include-path [inc1] --include-path [inc2]`<br><b>Run on a specific file main.cpp</b>`cppclean [main.cpp]`<br><b>Run on the current directory, excluding the "build" directory</b>`cppclean [.] --exclude [build]`


title: TLDR
content:
<b>Display currently logged username</b>`whoami`<br><b>Display the username after a change in the user ID</b>`sudo whoami`


title: TLDR
content:
<b>Limit an existing process with PID 1234 to only use 25% of the CPU</b>`cpulimit [[-p|--pid]] [1234] [[-l|--limit]] [25%]`<br><b>Limit an existing program by its executable name</b>`cpulimit [[-e|--exe]] [program] [[-l|--limit]] [25]`<br><b>Launch a given program and limit it to only use 50% of the CPU</b>`cpulimit [[-l|--limit]] [50] -- [program argument1 argument2 ...]`<br><b>Launch a program, limit its CPU usage to 50% and run cpulimit in the background</b>`cpulimit [[-l|--limit]] [50] [[-b|--background]] -- [program]`<br><b>Kill its process if the program's CPU usage goes over 50%</b>`cpulimit [[-l|--limit]] 50 [[-k|--kill]] -- [program]`<br><b>Throttle both it and its child processes so that none go about 25% CPU</b>`cpulimit [[-l|--limit]] [25] [[-m|--monitor-forks]] -- [program]`


title: TLDR
content:
<b>Deploy Cradle to a server</b>`cradle deploy production`<br><b>Deploy static assets to Amazon S3</b>`cradle deploy s3`<br><b>Deploy static assets including the Yarn "components" directory</b>`cradle deploy s3 --include-yarn`<br><b>Deploy static assets including the "upload" directory</b>`cradle deploy s3 --include-upload`


title: TLDR
content:
<b>Truncate the Elasticsearch index</b>`cradle elastic flush`<br><b>Truncate the Elasticsearch index for a specific package</b>`cradle elastic flush [package]`<br><b>Submit the Elasticsearch schema</b>`cradle elastic map`<br><b>Submit the Elasticsearch schema for a specific package</b>`cradle elastic map [package]`<br><b>Populate the Elasticsearch indices for all packages</b>`cradle elastic populate`<br><b>Populate the Elasticsearch indices for a specific package</b>`cradle elastic populate [package]`


title: TLDR
content:
<b>Install Cradle's components (User will be prompted for further details)</b>`cradle install`<br><b>Forcefully overwrite files</b>`cradle install [[-f|--force]]`<br><b>Skip running SQL migrations</b>`cradle install --skip-sql`<br><b>Skip running package updates</b>`cradle install --skip-versioning`<br><b>Use specific database details</b>`cradle install -h [hostname] -u [username] -p [password]`


title: TLDR
content:
<b>Display a list of available packages</b>`cradle package list`<br><b>Search for a package</b>`cradle package search [package]`<br><b>Install a package from Packagist</b>`cradle package install [package]`<br><b>Install a specific version of a package</b>`cradle package install [package] [version]`<br><b>Update a package</b>`cradle package update [package]`<br><b>Update a package to a specific version</b>`cradle package update [package] [version]`<br><b>Remove a specific package</b>`cradle package remove [package]`


title: TLDR
content:
<b>Rebuild the database schema</b>`cradle sql build`<br><b>Rebuild the database schema for a specific package</b>`cradle sql build [package]`<br><b>Empty the entire database</b>`cradle sql flush`<br><b>Empty the database tables for a specific package</b>`cradle sql flush [package]`<br><b>Populate the tables for all packages</b>`cradle sql populate`<br><b>Populate the tables for a specific package</b>`cradle sql populate [package]`


title: TLDR
content:
<b>Install Cradle components (prompts for additional info)</b>`cradle install`<br><b>Force install and overwrite files</b>`cradle install [[-f|--force]]`<br><b>Connect to a remote server (see config/deploy.php)</b>`cradle connect [server_name]`<br><b>Display the current Cradle configuration</b>`cradle config show`<br><b>Install a package into the current Cradle instance</b>`cradle package install [package_name]`<br><b>List installed packages</b>`cradle package list`<br><b>Display help</b>`cradle help`<br><b>Display version</b>`cradle --version`


title: TLDR
content:
<b>Create an open network with no passphrase</b>`create_ap [wlan0] [eth0] [access_point_ssid]`<br><b>Use a WPA + WPA2 passphrase</b>`create_ap [wlan0] [eth0] [access_point_ssid] [passphrase]`<br><b>Create an access point without Internet sharing</b>`create_ap -n [wlan0] [access_point_ssid] [passphrase]`<br><b>Create a bridged network with Internet sharing</b>`create_ap -m bridge [wlan0] [eth0] [access_point_ssid] [passphrase]`<br><b>Create a bridged network with Internet sharing and a pre-configured bridge interface</b>`create_ap -m bridge [wlan0] [br0] [access_point_ssid] [passphrase]`<br><b>Create an access port for Internet sharing from the same Wi-Fi interface</b>`create_ap [wlan0] [wlan0] [access_point_ssid] [passphrase]`<br><b>Choose a different Wi-Fi adapter driver</b>`create_ap --driver [wifi_adapter] [wlan0] [eth0] [access_point_ssid] [passphrase]`


title: TLDR
content:
<b>Run a Crystal file</b>`crystal [path/to/file.cr]`<br><b>Compile a file and all dependencies to a single executable</b>`crystal build [path/to/file.cr]`<br><b>Read Crystal source code from the command-line or stdin, and execute it</b>`crystal eval '[code]'`<br><b>Generate API documentation from inline docstrings in Crystal files</b>`crystal docs`<br><b>Compile and run a Crystal specification suite</b>`crystal spec`<br><b>Start a local interactive server for testing the language</b>`crystal play`<br><b>Create a project directory for a Crystal application</b>`crystal init app [application_name]`<br><b>Display help</b>`crystal help`


title: TLDR
content:
<b>Compile one or more C# files to a CIL executable</b>`csc [path/to/input_file1.cs path/to/input_file2.cs ...]`<br><b>Specify the output filename</b>`csc /out:[path/to/file] [path/to/input_file.cs]`<br><b>Compile into a .dll library instead of an executable</b>`csc /target:library [path/to/input_file.cs]`<br><b>Reference another assembly</b>`csc /reference:[path/to/library.dll] [path/to/input_file.cs]`<br><b>Embed a resource</b>`csc /resource:[path/to/resource_file] [path/to/input_file.cs]`<br><b>Automatically generate XML documentation</b>`csc /doc:[path/to/output.xml] [path/to/input_file.cs]`<br><b>Specify an icon</b>`csc /win32icon:[path/to/icon.ico] [path/to/input_file.cs]`<br><b>Strongly-name the resulting assembly with a keyfile</b>`csc /keyfile:[path/to/keyfile] [path/to/input_file.cs]`


title: TLDR
content:
<b>Lint a single CSS file</b>`csslint [file.css]`<br><b>Lint multiple CSS files</b>`csslint [file1.css file2.css ...]`<br><b>List all possible style rules</b>`csslint --list-rules`<br><b>Treat certain rules as errors (which results in a non-zero exit code)</b>`csslint --errors=[errors,universal-selector,imports] [file.css]`<br><b>Treat certain rules as warnings</b>`csslint --warnings=[box-sizing,selector-max,floats] [file.css]`<br><b>Ignore specific rules</b>`csslint --ignore=[ids,rules-count,shorthand] [file.css]`


title: TLDR
content:
<b>Clean a CSV file</b>`csvclean [bad.csv]`<br><b>List locations of syntax errors in a CSV file</b>`csvclean -n [bad.csv]`


title: TLDR
content:
<b>Print indices and names of all columns</b>`csvcut [[-n|--names]] [data.csv]`<br><b>Extract the first and third columns</b>`csvcut [[-c|--columns]] [1,3] [data.csv]`<br><b>Extract all columns except the fourth one</b>`csvcut [[-C|--not-columns]] [4] [data.csv]`<br><b>Extract the columns named "id" and "first name" (in that order)</b>`csvcut [[-c|--columns]] [id,"first name"] [data.csv]`


title: TLDR
content:
<b>Convert to a tab-delimited file (TSV)</b>`csvformat [[-T|--out-tabs]] [data.csv]`<br><b>Convert delimiters to a custom character</b>`csvformat [[-D|--out-delimiter]] "[custom_character]" [data.csv]`<br><b>Convert line endings to carriage return (^M) + line feed</b>`csvformat [[-M|--out-lineterminator]] "[\r\n]" [data.csv]`<br><b>Minimize use of quote characters</b>`csvformat [[-U|--out-quoting]] 0 [data.csv]`<br><b>Maximize use of quote characters</b>`csvformat [[-U|--out-quoting]] 1 [data.csv]`


title: TLDR
content:
<b>Find rows that have a certain string in column 1</b>`csvgrep [[-c|--columns]] [1] [[-m|--match]] [string_to_match] [data.csv]`<br><b>Find rows in which columns 3 or 4 match a certain regex</b>`csvgrep [[-c|--columns]] [3,4] [[-r|--regex]] [regex] [data.csv]`<br><b>Find rows in which the "name" column does NOT include the string "John Doe"</b>`csvgrep [[-i|--invert-match]] [[-c|--columns]] [name] [[-m|--match]] "[John Doe]" [data.csv]`


title: TLDR
content:
<b>Load a CSV file into a CSVKitReader object</b>`csvpy [data.csv]`<br><b>Load a CSV file into a CSVKitDictReader object</b>`csvpy --dict [data.csv]`


title: TLDR
content:
<b>Sort a CSV file by column 9</b>`csvsort [[-c|--columns]] [9] [data.csv]`<br><b>Sort a CSV file by the "name" column in descending order</b>`csvsort [[-r|--reverse]] [[-c|--columns]] [name] [data.csv]`<br><b>Sort a CSV file by column 2, then by column 4</b>`csvsort [[-c|--columns]] [2,4] [data.csv]`<br><b>Sort a CSV file without inferring data types</b>`csvsort [[-I|--no-inference]] [[-c|--columns]] [columns] [data.csv]`


title: TLDR
content:
<b>Show all stats for all columns</b>`csvstat [data.csv]`<br><b>Show all stats for columns 2 and 4</b>`csvstat [[-c|--columns]] [2,4] [data.csv]`<br><b>Show sums for all columns</b>`csvstat --sum [data.csv]`<br><b>Show the max value length for column 3</b>`csvstat [[-c|--columns]] [3] --len [data.csv]`<br><b>Show the number of unique values in the "name" column</b>`csvstat [[-c|--columns]] [name] --unique [data.csv]`


title: TLDR
content:
<b>Run all tests defined in the CMake project, executing 4 [j]obs at a time in parallel</b>`ctest [[-j|--parallel]] [4] --output-on-failure`<br><b>List available tests</b>`ctest [[-N|--show-only]]`<br><b>Run a single test based on its name, or filter on a regex</b>`ctest --output-on-failure [[-R|--tests-regex]] '^[test_name]$'`


title: TLDR
content:
<b>Run a command as a daemon</b>`daemonize [command] [command_arguments]`<br><b>Write the PID to the specified file</b>`daemonize -p [path/to/pidfile] [command] [command_arguments]`<br><b>Use a lock file to ensure that only one instance runs at a time</b>`daemonize -l [path/to/lockfile] [command] [command_arguments]`<br><b>Use the specified user account</b>`sudo daemonize -u [user] [command] [command_arguments]`


title: TLDR
content:
<b>Start server serving the specified document root</b>`darkhttpd [path/to/docroot]`<br><b>Start server on specified port (port 8080 by default if running as non-root user)</b>`darkhttpd [path/to/docroot] --port [port]`<br><b>Listen only on specified IP address (by default, the server listens on all interfaces)</b>`darkhttpd [path/to/docroot] --addr [ip_address]`


title: TLDR
content:
<b>Get max, min, mean and median of a single column of numbers</b>`seq 3 | datamash max 1 min 1 mean 1 median 1`<br><b>Get the mean of a single column of float numbers (floats must use "," and not ".")</b>`echo -e '1.0\n2.5\n3.1\n4.3\n5.6\n5.7' | tr '.' ',' | datamash mean 1`<br><b>Get the mean of a single column of numbers with a given decimal precision</b>`echo -e '1\n2\n3\n4\n5\n5' | datamash [[-R|--round]] [number_of_decimals_wanted] mean 1`<br><b>Get the mean of a single column of numbers ignoring "Na" and "NaN" (literal) strings</b>`echo -e '1\n2\nNa\n3\nNaN' | datamash --narm mean 1`


title: TLDR
content:
<b>Convert a CoffeeScript file to JavaScript</b>`decaffeinate [path/to/file.coffee]`<br><b>Convert a CoffeeScript v2 file to JavaScript</b>`decaffeinate --use-cs2 [path/to/file.coffee]`<br><b>Convert require and module.exports to import and export</b>`decaffeinate --use-js-modules [path/to/file.coffee]`<br><b>Convert a CoffeeScript, allowing named exports</b>`decaffeinate --loose-js-modules [path/to/file.coffee]`


title: TLDR
content:
<b>Start the interactive console interface</b>`deluge-console`<br><b>Connect to a Deluge daemon instance</b>`connect [hostname]:[port]`<br><b>Add a torrent to the daemon</b>`add [url|magnet|path/to/file]`<br><b>Display information about all torrents</b>`info`<br><b>Display information about a specific torrent</b>`info [torrent_id]`<br><b>Pause a torrent</b>`pause [torrent_id]`<br><b>Resume a torrent</b>`resume [torrent_id]`<br><b>Remove a torrent from the daemon</b>`rm [torrent_id]`


title: TLDR
content:
<b>Download a torrent</b>`deluge [url|magnet|path/to/file]`<br><b>Download a torrent using a specific configuration file</b>`deluge [[-c|--config]] [path/to/configuration_file] [url|magnet|path/to/file]`<br><b>Download a torrent and launch the specified user interface</b>`deluge -u [gtk|web|console] [url|magnet|path/to/file]`<br><b>Download a torrent and output the log to a file</b>`deluge [[-l|--logfile]] [path/to/log_file] [url|magnet|path/to/file]`


title: TLDR
content:
<b>Start the Deluge daemon</b>`deluged`<br><b>Start the Deluge daemon on a specific port</b>`deluged [[-p|--port]] [port]`<br><b>Start the Deluge daemon using a specific configuration file</b>`deluged [[-c|--config]] [path/to/configuration_file]`<br><b>Start the Deluge daemon and output the log to a file</b>`deluged [[-l|--logfile]] [path/to/log_file]`


title: TLDR
content:
<b>Interactively initialize deployer in the local path (use a framework template with --template=template)</b>`dep init`<br><b>Deploy an application to a remote host</b>`dep deploy [hostname]`<br><b>Rollback to the previous working release</b>`dep rollback`<br><b>Connect to a remote host via SSH</b>`dep ssh [hostname]`<br><b>List commands</b>`dep list`<br><b>Run any arbitrary command on the remote hosts</b>`dep run "[command]"`<br><b>Display help for a command</b>`dep help [command]`


title: TLDR
content:
<b>Remove spaces and other undesirable characters from a file's name</b>`detox [path/to/file]`<br><b>Show how detox would rename all the files in a directory tree</b>`detox [[-n|--dry-run]] -r [path/to/directory]`<br><b>Remove spaces and other undesirable characters from all files in a directory tree</b>`detox -r [path/to/directory]`


title: TLDR
content:
<b>Create and authenticate a user with Google OIDC</b>`dexter auth [[-i|--client-id]] [client_id] [[-s|--client-secret]] [client_secret]`<br><b>Override the default kube configuration file location</b>`dexter auth [[-i|--client-id]] [client_id] [[-s|--client-secret]] [client_secret] [[-k|--kube-config]] [sample/config]`


title: TLDR
content:
<b>Flood the network with IP requests</b>`dhcpwn [[-i|--interface]] [network_interface] flood [[-c|--count]] [number_of_requests]`<br><b>Sniff local DHCP traffic</b>`dhcpwn [[-i|--interface]] [network_interface] sniff`


title: TLDR
content:
<b>Display the directory stack with a space between each entry</b>`dirs`<br><b>Display the directory stack with one entry per line</b>`dirs -p`<br><b>Display a numbered list of entries in the directory stack</b>`dirs -v`<br><b>Display the directory stack without the tilde-prefix (~)</b>`dirs -l`<br><b>Display only the nth entry in the directory stack, starting at 0 (Bash only)</b>`dirs +[n]`<br><b>Display only the nth entry in the directory stack from the last, starting at 0 (Bash only)</b>`dirs -[n]`<br><b>Clear the directory stack</b>`dirs -c`


title: TLDR
content:
<b>Disown the current job</b>`disown`<br><b>Disown a specific job (run jobs to find the job number)</b>`disown %[job_number]`<br><b>Disown all jobs (Bash only)</b>`disown -a`<br><b>Keep job (do not disown it), but mark it so that no future SIGHUP is received on shell exit (Bash only)</b>`disown -h %[job_number]`


title: TLDR
content:
<b>Analyze a Docker image</b>`dive [your_image_tag]`<br><b>Build an image and start analyzing it</b>`dive build -t [some_tag]`


title: TLDR
content:
<b>Upgrade to the latest release</b>`sudo do-release-upgrade`<br><b>Upgrade to the latest development release</b>`sudo do-release-upgrade [[-d|--devel-release]]`<br><b>Upgrade to the latest proposed release</b>`sudo do-release-upgrade [[-p|--proposed]]`


title: TLDR
content:
<b>List all running containers</b>`docker compose ps`<br><b>Create and start all containers in the background using a docker-compose.yml file from the current directory</b>`docker compose up [[-d|--detach]]`<br><b>Start all containers, rebuild if necessary</b>`docker compose up --build`<br><b>Start all containers by specifying a project name and using an alternate compose file</b>`docker compose [[-p|--project-name]] [project_name] [[-f|--file]] [path/to/file] up`<br><b>Stop all running containers</b>`docker compose stop`<br><b>Stop and remove all containers, networks, images, and volumes</b>`docker compose down --rmi all [[-v|--volumes]]`<br><b>Follow logs for all containers</b>`docker compose logs [[-f|--follow]]`<br><b>Follow logs for a specific container</b>`docker compose logs [[-f|--follow]] [container_name]`


title: TLDR
content:
<h2>List currently running Docker containers</h2>`docker container ls`<br><h2>Start one or more stopped containers</h2>`docker container start [container1_name] [container2_name]`<br><h2>Kill one or more running containers</h2>`docker container kill [container_name]`<br><h2>Stop one or more running containers</h2>`docker container stop [container_name]`<br><h2>Pause all processes within one or more containers</h2>`docker container pause [container_name]`<br><h2>Display detailed information on one or more containers</h2>`docker container inspect [container_name]`<br><h2>Export a container's filesystem as a tar archive</h2>`docker container export [container_name]`<br><h2>Create a new image from a container's changes</h2>`docker container commit [container_name]`


title: TLDR
content:
<b>List all Docker images</b>`docker images`<br><b>List all Docker images including intermediates</b>`docker images [[-a|--all]]`<br><b>List the output in quiet mode (only numeric IDs)</b>`docker images [[-q|--quiet]]`<br><b>List all Docker images not used by any container</b>`docker images [[-f|--filter]] dangling=true`<br><b>List images that contain a substring in their name</b>`docker images "[*name*]"`<br><b>Sort images by size</b>`docker images --format "\{\{.ID\}\}\t\{\{.Size\}\}\t\{\{.Repository\}\}:\{\{.Tag\}\}" | sort [[-k|--key]] 2 [[-h|--human-numeric-sort]]`


title: TLDR
content:
<b>List currently running Docker machines</b>`docker-machine ls`<br><b>Create a new Docker machine with specific name</b>`docker-machine create [name]`<br><b>Get the status of a machine</b>`docker-machine status [name]`<br><b>Start a machine</b>`docker-machine start [name]`<br><b>Stop a machine</b>`docker-machine stop [name]`<br><b>Inspect information about a machine</b>`docker-machine inspect [name]`


title: TLDR
content:
<b>List running apps</b>`dokku apps`<br><b>Create an app</b>`dokku apps:create [app_name]`<br><b>Remove an app</b>`dokku apps:destroy [app_name]`<br><b>Install plugin</b>`dokku plugin:install [full_repo_url]`<br><b>Link database to an app</b>`dokku [db]:link [db_name] [app_name]`


title: TLDR
content:
<b>Initialize a new .NET project</b>`dotnet new [template_short_name]`<br><b>Restore NuGet packages</b>`dotnet restore`<br><b>Build and execute the .NET project in the current directory</b>`dotnet run`<br><b>Run a packaged dotnet application (only needs the runtime, the rest of the commands require the .NET Core SDK installed)</b>`dotnet [path/to/application.dll]`


title: TLDR
content:
<b>Generate documentation, using Doxyfile as configuration file if it exists</b>`doxygen`<br><b>Generate a default template configuration file Doxyfile</b>`doxygen -g`<br><b>Generate a template configuration file</b>`doxygen -g [path/to/config_file]`<br><b>Generate documentation using an existing configuration file</b>`doxygen [path/to/config_file]`


title: TLDR
content:
<b>Enable module "foo"</b>`drush en [foo]`<br><b>Uninstall module "foo"</b>`drush pmu [foo]`<br><b>Clear all caches</b>`drush cr`<br><b>Clear CSS and JavaScript caches</b>`drush cc css-js`


title: TLDR
content:
<b>Convert an e-book into another format</b>`ebook-convert [path/to/input_file] [output_file]`<br><b>Convert Markdown or HTML to e-book with TOC, title and author</b>`ebook-convert [path/to/input_file] [output_file] --level1-toc="//h:h1" --level2-toc="//h:h2" --level3-toc="//h:h3" --title=[title] --authors=[author]`


title: TLDR
content:
<b>Create or update the package manifest</b>`ebuild [path/to/file.ebuild] manifest`<br><b>Clean the temporary build directories for the build file</b>`ebuild [path/to/file.ebuild] clean`<br><b>Fetch sources if they do not exist</b>`ebuild [path/to/file.ebuild] fetch`<br><b>Extract the sources to a temporary build directory</b>`ebuild [path/to/file.ebuild] unpack`<br><b>Compile the extracted sources</b>`ebuild [path/to/file.ebuild] compile`<br><b>Install the package to a temporary install directory</b>`ebuild [path/to/file.ebuild] install`<br><b>Install the temporary files to the live filesystem</b>`ebuild [path/to/file.ebuild] qmerge`<br><b>Fetch, unpack, compile, install and qmerge the specified ebuild file</b>`ebuild [path/to/file.ebuild] merge`


title: TLDR
content:
<b>Compress a file</b>`ect [path/to/file.png]`<br><b>Compress a file with specified compression level and multithreading (1=Fastest (Worst), 9=Slowest (Best), default is 3)</b>`ect -[9] --mt-deflate [path/to/file.zip]`<br><b>Compress all files in a directory recursively</b>`ect -recurse [path/to/directory]`<br><b>Compress a file, keeping the original modification time</b>`ect -keep [path/to/file.png]`<br><b>Compress a file, stripping metadata</b>`ect -strip [path/to/file.png]`


title: TLDR
content:
<b>Edit quota of the current user</b>`edquota [[-u|--user]] $(whoami)`<br><b>Edit quota of a specific user</b>`sudo edquota [[-u|--user]] [username]`<br><b>Edit quota for a group</b>`sudo edquota [[-g|--group]] [group]`<br><b>Restrict operations to a given filesystem (by default edquota operates on all filesystems with quotas)</b>`sudo edquota [[-f|--file-system]] [filesystem]`<br><b>Edit the default grace period</b>`sudo edquota [[-t|--edit-period]]`<br><b>Duplicate a quota to other users</b>`sudo edquota [[-p|--prototype]] [reference_user] [destination_user1 destination_user2 ...]`


title: TLDR
content:
<b>Create a new wallet</b>`electrum [[-w|--wallet]] [path/to/new_wallet.dat] create`<br><b>Restore an existing wallet from seed offline</b>`electrum [[-w|--wallet]] [path/to/recovery_wallet.dat] restore [[-o|--offline]]`<br><b>Create a signed transaction offline</b>`electrum mktx [recipient] [amount] [[-f|--fee]] 0.0000001 [[-F|--from-addr]] [from] [[-o|--offline]]`<br><b>Display all wallet receiving addresses</b>`electrum listaddresses -a`<br><b>Sign a message</b>`electrum signmessage [address] [message]`<br><b>Verify a message</b>`electrum verifymessage [address] [signature] [message]`<br><b>Connect only to a specific electrum-server instance</b>`electrum [[-p|--proxy]] socks5:[127.0.0.1]:9050 [[-s|--server]] [56ckl5obj37gypcu.onion]:50001:t [[-1|--oneserver]]`


title: TLDR
content:
<b>Initialize an Elm project, generates an elm.json file</b>`elm init`<br><b>Start interactive Elm shell</b>`elm repl`<br><b>Compile an Elm file, output the result to an index.html file</b>`elm make [source]`<br><b>Compile an Elm file, output the result to a JavaScript file</b>`elm make [source] --output=[destination].js`<br><b>Start local web server that compiles Elm files on page load</b>`elm reactor`<br><b>Install Elm package from <https://package.elm-lang.org></b>`elm install [author]/[package]`


title: TLDR
content:
<b>Open a file in an existing Emacs server (using GUI if available)</b>`emacsclient [path/to/file]`<br><b>Open a file in console mode (without an X window)</b>`emacsclient [[-nw|--no-window-system]] [path/to/file]`<br><b>Open a file in a new Emacs window</b>`emacsclient [[-c|--create-frame]] [path/to/file]`<br><b>Evaluate a command, printing the output to stdout, and then quit</b>`emacsclient [[-e|--eval]] '([command])'`<br><b>Specify an alternative editor in case no Emacs server is running</b>`emacsclient [[-a|--alternate-editor]] [editor] [path/to/file]`<br><b>Stop a running Emacs server and all its instances, asking for confirmation on unsaved files</b>`emacsclient [[-e|--eval]] '(save-buffers-kill-emacs)'`


title: TLDR
content:
<b>Create a new Ember application</b>`ember new [my_new_app]`<br><b>Create a new Ember addon</b>`ember addon [my_new_addon]`<br><b>Build the project</b>`ember build`<br><b>Build the project in production mode</b>`ember build -prod`<br><b>Run the development server</b>`ember serve`<br><b>Run the test suite</b>`ember test`<br><b>Run a blueprint to generate something like a route or component</b>`ember generate [type] [name]`<br><b>Install an ember-cli addon</b>`ember install [name_of_addon]`


title: TLDR
content:
<b>Synchronize all packages</b>`sudo emerge --sync`<br><b>Update all packages, including dependencies</b>`sudo emerge [[-avuDN|--ask --verbose --update --deep --newuse]] @world`<br><b>Resume a failed update, skipping the failing package</b>`sudo emerge --resume --skipfirst`<br><b>Install a new package, with confirmation</b>`sudo emerge [[-av|--ask --verbose]] [package]`<br><b>Remove a package and its dependencies with confirmation</b>`sudo emerge [[-avc|--ask --verbose --depclean]] [package]`<br><b>Remove orphaned packages (installed as dependencies but no longer required by any package)</b>`sudo emerge [[-avc|--ask --verbose --depclean]]`<br><b>Search the package database for a keyword</b>`emerge [[-S|--searchdesc]] [keyword]`


title: TLDR
content:
<b>Detect file(s) encoding according to the system's locale</b>`enca [path/to/file1 path/to/file2 ...]`<br><b>Detect file(s) encoding specifying a language in the POSIX/C locale format (e.g. zh_CN, en_US)</b>`enca [[-L|--language]] [language] [path/to/file1 path/to/file2 ...]`<br><b>Convert file(s) to a specific encoding</b>`enca [[-L|--language]] [language] [[-x|--convert-to]] [to_encoding] [path/to/file1 path/to/file2 ...]`<br><b>Create a copy of an existing file using a different encoding</b>`enca < [original_file] [[-L|--language]] [language] [[-x|--convert-to]] [to_encoding] > [new_file]`


title: TLDR
content:
<b>Generate a PostScript file from a text file</b>`enscript [path/to/input_file] [[-o|--output]] [path/to/output_file]`<br><b>Generate a file in a different language than PostScript</b>`enscript [path/to/input_file] [[-w|--language]] [html|rtf|...] [[-o|--output]] [path/to/output_file]`<br><b>Generate a PostScript file with a landscape layout, splitting the page into columns (maximum 9)</b>`enscript [path/to/input_file] --columns [num] [[-r|--landscape]] [[-o|--output]] [path/to/output_file]`<br><b>Display available syntax highlighting languages and file formats</b>`enscript --help-highlight`<br><b>Generate a PostScript file with syntax highlighting and color for a specified language</b>`enscript [path/to/input_file] --color 1 [[-E|--highlight]] [language] [[-o|--output]] [path/to/output_file]`


title: TLDR
content:
<b>Rebuild with make if any file in any subdirectory changes</b>`[ag --files-with-matches] | entr [make]`<br><b>Rebuild and test with make if any .c source files in the current directory change</b>`[ls *.c] | entr '[make && make test]'`<br><b>Send a SIGTERM to any previously spawned ruby subprocesses before executing ruby main.rb</b>`[ls *.rb] | entr -r [ruby main.rb]`<br><b>Run a command with the changed file (/_) as an argument</b>`[ls *.sql] | entr [psql -f] /_`<br><b>[c]lear the screen and run a query after the SQL script is updated</b>`[echo my.sql] | entr -cp [psql -f] /_`<br><b>Rebuild the project if source files change, limiting output to the first few lines</b>`[find src/] | entr -s '[make | sed 10q]'`<br><b>Launch and auto-[r]eload a Node.js server</b>`[ls *.js] | entr -r [node app.js]`


title: TLDR
content:
<b>Initialize a configuration file</b>`envoy init [host_name]`<br><b>Run a task</b>`envoy run [task_name]`<br><b>Run a task from a specific project</b>`envoy run --path [path/to/directory] [task_name]`<br><b>Run a task and continue on failure</b>`envoy run --continue [task_name]`<br><b>Dump a task as a Bash script for inspection</b>`envoy run --pretend [task_name]`<br><b>Connect to the specified server via SSH</b>`envoy ssh [server_name]`


title: TLDR
content:
<b>List all installed packages</b>`equery list '*'`<br><b>Search for installed packages in the Portage tree and in overlays</b>`equery list -po [package1 package2 ...]`<br><b>List all packages that depend on a given package</b>`equery depends [package]`<br><b>List all packages that a given package depends on</b>`equery depgraph [package]`<br><b>List all files installed by a package</b>`equery files --tree [package]`


title: TLDR
content:
<b>Compile and run sequential Erlang program as a common script and then exit</b>`erlc [path/to/file1 path/to/file2 ...] && erl -noshell '[mymodule:myfunction(arguments)], init:stop().'`<br><b>Connect to a running Erlang node</b>`erl -remsh [nodename]@[hostname] -sname [custom_shortname] -hidden -setcookie [cookie_of_remote_node]`<br><b>Tell the Erlang shell to load modules from a directory</b>`erl -pa [path/to/directory_with_beam_files]`


title: TLDR
content:
<b>Create the ESLint configuration file</b>`eslint --init`<br><b>Lint one or more files</b>`eslint [path/to/file1.js path/to/file2.js ...]`<br><b>Fix lint issues</b>`eslint --fix`<br><b>Lint using the specified configuration file</b>`eslint [[-c|--config]] [path/to/config_file] [path/to/file1.js path/to/file2.js ...]`


title: TLDR
content:
<b>Set up a Git repo and perform various setup tasks (run from /etc)</b>`sudo etckeeper init`<br><b>Commit all changes in /etc</b>`sudo etckeeper commit [message]`<br><b>Run arbitrary Git commands</b>`sudo etckeeper vcs [status]`<br><b>Check if there are uncommitted changes (only returns an exit code)</b>`sudo etckeeper unclean`<br><b>Destroy existing repo and stop tracking changes</b>`sudo etckeeper uninit`


title: TLDR
content:
<b>Send a message to a given user on a given terminal ID</b>`write [username] [terminal_id]`<br><b>Send message to "testuser" on terminal /dev/tty/5</b>`write [testuser] [tty/5]`<br><b>Send message to "johndoe" on pseudo terminal /dev/pts/5</b>`write [johndoe] [pts/5]`


title: TLDR
content:
<h2>View information about an MP3 file</h2>`eyeD3 [filename.mp3]`<br><h2>Set the title of an MP3 file</h2>`eyeD3 --title "[A Title]" [filename.mp3]`<br><h2>Set the album of all the MP3 files in a directory</h2>`eyeD3 --album "[Album Name]" [*.mp3]`<br><h2>Set the front cover art for an MP3 file</h2>`eyeD3 --add-image [front_cover.jpeg]:FRONT_COVER: [filename.mp3]`


title: TLDR
content:
<b>Probe a block device</b>`sudo f3probe [path/to/block_device]`<br><b>Use the minimum about of RAM possible</b>`sudo f3probe --min-memory [path/to/block_device]`<br><b>Time disk operations</b>`sudo f3probe --time-ops [path/to/block_device]`


title: TLDR
content:
<b>Open a new VPN connection</b>`sudo f5fpc --start`<br><b>Open a new VPN connection to a specific host</b>`sudo f5fpc --start --host [host.example.com]`<br><b>Specify a username (user will be prompted for a password)</b>`sudo f5fpc --start --host [host.example.com] --username [user]`<br><b>Show the current VPN status</b>`sudo f5fpc --info`<br><b>Shutdown the VPN connection</b>`sudo f5fpc --stop`


title: TLDR
content:
<b>Fake the time to this evening, before printing the result of date</b>`faketime '[today 23:30]' [date]`<br><b>Open a new Bash shell, which uses yesterday as the current date</b>`faketime '[yesterday]' [bash]`<br><b>Simulate how a program would act next Friday night</b>`faketime '[next Friday 1 am]' [path/to/program]`


title: TLDR
content:
<b>Unlock the bootloader</b>`fastboot oem unlock`<br><b>Relock the bootloader</b>`fastboot oem lock`<br><b>Reboot the device from fastboot mode into fastboot mode again</b>`fastboot reboot bootloader`<br><b>Flash a given image</b>`fastboot flash [path/to/file.img]`<br><b>Flash a custom recovery image</b>`fastboot flash recovery [path/to/file.img]`<br><b>List connected devices</b>`fastboot devices`<br><b>Display all information of a device</b>`fastboot getvar all`


title: TLDR
content:
<b>Display information for all CPUs</b>`cpuid`<br><b>Display information only for the current CPU</b>`cpuid [[-1|--one-cpu]]`<br><b>Display raw hex information with no decoding</b>`cpuid [[-r|--raw]]`


title: TLDR
content:
<b>Print the count of unread articles</b>`feedreader --unreadCount`<br><b>Add a URL for a feed to follow</b>`feedreader --addFeed=[feed_url]`<br><b>Grab a specific article using its URL</b>`feedreader --grabArticle=[article_url]`<br><b>Download all images from a specific article</b>`feedreader --url=[feed_url] --grabImages=[article_path]`<br><b>Play media from a URL</b>`feedreader --playMedia=[article_url]`


title: TLDR
content:
<b>View images locally or using a URL</b>`feh [path/to/images]`<br><b>View images recursively</b>`feh [[-r|--recursive]] [path/to/images]`<br><b>View images and display the file name at the top-left of the images</b>`feh [[-d|--draw-filename]] [path/to/images]`<br><b>View images without window borders</b>`feh [[-x|--borderless]] [path/to/images]`<br><b>Set the behavior when reaching the beginning or end of the image list</b>`feh --on-last-slide [hold|quit|resume] [path/to/images]`<br><b>Use a specific slideshow cycle delay</b>`feh [[-D|--slideshow-delay]] [seconds] [path/to/images]`<br><b>Use a specific wallpaper mode (centered, filled, maximized, scaled or tiled)</b>`feh --bg-[center|fill|max|scale|tile] [path/to/image]`<br><b>Create a montage of all images within a directory, outputting as a new image</b>`feh [[-m|--montage]] [[-E|--thumb-height]] [150] [[-y|--thumb-width]] [150] --index-info "[%nn%wx%h]" [[-o|--output]] [path/to/montage_image.png]`


title: TLDR
content:
<b>Upload a file</b>`ffsend upload [path/to/file]`<br><b>Download a file</b>`ffsend download [url]`<br><b>Upload a file with password</b>`ffsend upload [path/to/file] [[-p|--password]] [password]`<br><b>Download a file protected by password</b>`ffsend download [url] [[-p|--password]] [password]`<br><b>Upload a file and allow 4 downloads</b>`ffsend upload [path/to/file] [[-d|--downloads]] [4]`


title: TLDR
content:
<b>Integrate firejail with your desktop environment</b>`sudo firecfg`<br><b>Open a restricted Mozilla Firefox</b>`firejail [firefox]`<br><b>Start a restricted Apache server on a known interface and address</b>`firejail --net=[eth0] --ip=[192.168.1.244] [/etc/init.d/apache2] [start]`<br><b>List running sandboxes</b>`firejail --list`<br><b>List network activity from running sandboxes</b>`firejail --netstats`<br><b>Shutdown a running sandbox</b>`firejail --shutdown=[7777]`<br><b>Run a restricted Firefox session to browse the internet</b>`firejail --seccomp --private --private-dev --private-tmp --protocol=inet firefox --new-instance --no-remote --safe-mode --private-window`<br><b>Use custom hosts file (overriding /etc/hosts file)</b>`firejail --hosts-file=[~/myhosts] [curl http://mysite.arpa]`


title: TLDR
content:
<b>Start an interactive shell session</b>`fish`<br><b>Start an interactive shell session without loading startup configs</b>`fish [[-N|--no-config]]`<br><b>Execute specific commands</b>`fish [[-c|--command]] "[echo 'fish is executed']"`<br><b>Execute a specific script</b>`fish [path/to/script.fish]`<br><b>Check a specific script for syntax errors</b>`fish [[-N|--no-execute]] [path/to/script.fish]`<br><b>Execute specific commands from stdin</b>`[echo "echo 'fish is executed'"] | fish`<br><b>Start an interactive shell session in private mode, where the shell does not access old history or save new history</b>`fish [[-P|--private]]`<br><b>Define and export an environmental variable that persists across shell restarts (builtin)</b>`set [[-U|--universal]] [[-x|--export]] [variable_name] [variable_value]`


title: TLDR
content:
<b>Install one or more plugins</b>`fisher [plugin1] [plugin2]`<br><b>Install a plugin from a GitHub gist</b>`fisher [gist_url]`<br><b>Edit fishfile manually with your favorite editor and install multiple plugins</b>`[editor] ~/.config/fish/fishfile; fisher`<br><b>List installed plugins</b>`fisher ls`<br><b>Update plugins</b>`fisher update`<br><b>Remove one or more plugins</b>`fisher remove [plugin1] [plugin2]`


title: TLDR
content:
<b>Run without arguments to use the interactive interface</b>`fkill`<br><b>Kill the process by PID, name or port</b>`fkill [pid|name|:port]`


title: TLDR
content:
<b>Find files by extension</b>`find [root_path] -name '[*.ext]'`<br><b>Find files matching multiple path/name patterns</b>`find [root_path] -path '[*/path/*/*.ext]' -or -name '[*pattern*]'`<br><b>Find directories matching a given name, in case-insensitive mode</b>`find [root_path] -type d -iname '[*lib*]'`<br><b>Find files matching a given pattern, excluding specific paths</b>`find [root_path] -name '[*.py]' -not -path '[*/site-packages/*]'`<br><b>Find files matching a given size range, limiting the recursive depth to "1"</b>`find [root_path] -maxdepth 1 -size [+500k] -size [-10M]`<br><b>Run a command for each file (use {} within the command to access the filename)</b>`find [root_path] -name '[*.ext]' -exec [wc -l] {} \;`<br><b>Find all files modified today and pass the results to a single command as arguments</b>`find [root_path] -daystart -mtime [-1] -exec [tar -cvf archive.tar] {} \+`<br><b>Search for either empty files or directories and delete them verbosely</b>`find [root_path] -type [f|d] -empty -delete -print`


title: TLDR
content:
<b>Display information about currently logged in users</b>`finger`<br><b>Display information about a specific user</b>`finger [username]`<br><b>Display the user's login name, real name, terminal name, and other information</b>`finger -s`<br><b>Produce multiline output format displaying same information as -s as well as user's home directory, home phone number, login shell, mail status, etc.</b>`finger -l`<br><b>Prevent matching against user's names and only use login names</b>`finger -m`


title: TLDR
content:
<b>Initialize a new Flutter project in a directory of the same name</b>`flutter create [project_name]`<br><b>Check if all external tools are correctly installed</b>`flutter doctor`<br><b>List or change Flutter channel</b>`flutter channel [stable|beta|dev|master]`<br><b>Run Flutter on all started emulators and connected devices</b>`flutter run -d all`<br><b>Run tests in a terminal from the root of the project</b>`flutter test [test/example_test.dart]`<br><b>Build a release APK targeting most modern smartphones</b>`flutter build apk --target-platform [android-arm],[android-arm64]`<br><b>Delete the build and .dart_tool directories</b>`flutter clean`<br><b>Display help about a specific command</b>`flutter help [command]`


title: TLDR
content:
<b>Authenticate with and save concourse target</b>`fly [[-t|--target]] [target_name] login [[-n|--team-name]] [team_name] [[-c|--concourse-url]] [https://ci.example.com]`<br><b>List targets</b>`fly targets`<br><b>List pipelines</b>`fly [[-t|--target]] [target_name] pipelines`<br><b>Upload or update a pipeline</b>`fly [[-t|--target]] [target_name] set-pipeline [[-c|--config]] [pipeline.yml] [[-p|--pipeline]] [pipeline_name]`<br><b>Unpause pipeline</b>`fly [[-t|--target]] [target_name] unpause-pipeline [[-p|--pipeline]] [pipeline_name]`<br><b>Show pipeline configuration</b>`fly [[-t|--target]] [target_name] get-pipeline [[-p|--pipeline]] [pipeline_name]`<br><b>Update local copy of fly</b>`fly [[-t|--target]] [target_name] sync`<br><b>Destroy pipeline</b>`fly [[-t|--target]] [target_name] destroy-pipeline [[-p|--pipeline]] [pipeline_name]`


title: TLDR
content:
<b>Iterate through command line arguments</b>`for [variable]; do [echo $variable]; done`<br><b>Execute the given commands for each of the specified items</b>`for [variable] in [item1 item2 ...]; do [echo "Loop is executed"]; done`<br><b>Iterate over a given range of numbers</b>`for [variable] in [{from..to..step]}; do [echo "Loop is executed"]; done`<br><b>Iterate over a given list of files</b>`for [variable] in [path/to/file1 path/to/file2 ...]; do [echo "Loop is executed"]; done`<br><b>Iterate over a given list of directories</b>`for [variable] in [path/to/directory1/ path/to/directory2/ ...]; do [echo "Loop is executed"]; done`<br><b>Perform a given command in every directory</b>`for [variable] in */; do (cd "$[variable]" || continue; [echo "Loop is executed"]) done`


title: TLDR
content:
<b>Start an application with the Procfile in the current directory</b>`foreman start`<br><b>Start an application with a specified Procfile</b>`foreman start [[-f|--procfile]] [Procfile]`<br><b>Start a specific application</b>`foreman start [process]`<br><b>Validate Procfile format</b>`foreman check`<br><b>Run one-off commands with the process's environment</b>`foreman run [command]`<br><b>Start all processes except the one named "worker"</b>`foreman start [[-m|--formation]] all=1,[worker]=0`


title: TLDR
content:
<b>Start running a file forever (as a daemon)</b>`forever [script]`<br><b>List running "forever" processes (along with IDs and other details of "forever" processes)</b>`forever list`<br><b>Stop a running "forever" process</b>`forever stop [ID|pid|script]`


title: TLDR
content:
<b>Initialize a .fossa.yml configuration file</b>`fossa init`<br><b>Run a default project build</b>`fossa build`<br><b>Analyze built dependencies</b>`fossa analyze`<br><b>Generate reports</b>`fossa report`<br><b>Test current revision against the FOSSA scan status and exit with errors if issues are found</b>`fossa test`


title: TLDR
content:
<b>Select full path and size from temporary or configuration files in a given directory</b>`fselect size, path from [path/to/directory] where name = '[*.cfg]' or name = '[*.tmp]'`<br><b>Find square images</b>`fselect path from [path/to/directory] where width = height`<br><b>Find old-school rap 320kbps MP3 files</b>`fselect path from [path/to/directory] where genre = [Rap] and bitrate = [320] and mp3_year lt [2000]`<br><b>Select only the first 5 results and output as JSON</b>`fselect size, path from [path/to/directory] limit [5] into json`<br><b>Use SQL aggregate functions to calculate minimum, maximum and average size of files in a directory</b>`fselect "[MIN(size), MAX(size), AVG(size), SUM(size), COUNT(*)] from [path/to/directory]"`


title: TLDR
content:
<b>Run a Bash command on file creation, update or deletion</b>`fswatch [path/to/file] | xargs [[-n|--max-args]] 1 [bash_command]`<br><b>Watch one or more files and/or directories</b>`fswatch [path/to/file] [path/to/directory] [path/to/another_directory/**/*.js] | xargs [[-n|--max-args]] 1 [bash_command]`<br><b>Print the absolute paths of the changed files</b>`fswatch [path/to/directory] | xargs [[-n|--max-args]] 1 -I _ echo _`<br><b>Filter by event type</b>`fswatch --event [Updated|Removed|Created|...] [path/to/directory] | xargs [[-n|--max-args]] 1 [bash_command]`


title: TLDR
content:
<b>Take a picture</b>`fswebcam [filename]`<br><b>Take a picture with custom resolution</b>`fswebcam [[-r|--resolution]] [width]x[height] [filename]`<br><b>Take a picture from selected device(Default is /dev/video0)</b>`fswebcam [[-d|--device]] [device] [filename]`<br><b>Take a picture with timestamp(timestamp string is formatted by strftime)</b>`fswebcam --timestamp [timestamp] [filename]`


title: TLDR
content:
<b>Create a new site</b>`gatsby new [site_name]`<br><b>Create a new site with a Gatsby starter</b>`gatsby new [site_name] [url_of_starter_github_repo]`<br><b>Start a live-reloading local development server</b>`gatsby develop`<br><b>Perform a production build and generate static HTML</b>`gatsby build`<br><b>Start a local server which serves the production build</b>`gatsby serve`


title: TLDR
content:
<b>Display calendar for the current month</b>`gcal`<br><b>Display calendar for the month of February of the year 2010</b>`gcal 2 2010`<br><b>Provide calendar sheet with week numbers</b>`gcal --with-week-number`<br><b>Change starting day of week to 1st day of the week (Monday)</b>`gcal --starting-day=1`<br><b>Display the previous, current and next month surrounding today</b>`gcal .`


title: TLDR
content:
<b>List your events for all your calendars over the next 7 days</b>`gcalcli agenda`<br><b>Show events starting from or between specific dates (also takes relative dates e.g. "tomorrow")</b>`gcalcli agenda [mm/dd] [[mm/dd]]`<br><b>List events from a specific calendar</b>`gcalcli --calendar [calendar_name] agenda`<br><b>Display an ASCII calendar of events by week</b>`gcalcli calw`<br><b>Display an ASCII calendar of events for a month</b>`gcalcli calm`<br><b>Quick-add an event to your calendar</b>`gcalcli --calendar [calendar_name] quick "[mm/dd] [HH:MM] [event_name]"`<br><b>Add an event to calendar. Triggers interactive prompt</b>`gcalcli --calendar "[calendar_name]" add`


title: TLDR
content:
<b>List all properties in one's active configuration</b>`gcloud config list`<br><b>Login to a Google account</b>`gcloud auth login`<br><b>Set the active project</b>`gcloud config set project [project_name]`<br><b>SSH into a virtual machine instance</b>`gcloud compute ssh [user]@[instance]`<br><b>Display all Google Compute Engine instances in a project (by default instances from all zones are listed)</b>`gcloud compute instances list`<br><b>Update a kubeconfig file with the appropriate credentials to point kubectl to a specific cluster in Google Kubernetes Engine (GKE)</b>`gcloud container clusters get-credentials [cluster_name]`<br><b>Update all gcloud components</b>`gcloud components update`<br><b>Display help for a given command</b>`gcloud help [command]`


title: TLDR
content:
<b>Upload a local path to the parent folder with the specified ID</b>`gdrive upload [[-p|--parent]] [id] [path/to/file_or_folder]`<br><b>Download file or directory by ID to current directory</b>`gdrive download [id]`<br><b>Download to a given local path by its ID</b>`gdrive download --path [path/to/folder] [id]`<br><b>Create a new revision of an ID using a given file or folder</b>`gdrive update [id] [path/to/file_or_folder]`


title: TLDR
content:
<b>Start fzf on all files in the specified directory</b>`find [path/to/directory] -type f | fzf`<br><b>Start fzf for running processes</b>`ps aux | fzf`<br><b>Select multiple files with <Shift Tab> and write to a file</b>`find [path/to/directory] -type f | fzf [[-m|--multi]] > [path/to/file]`<br><b>Start fzf with a specified query</b>`fzf [[-q|--query]] "[query]"`<br><b>Start fzf on entries that start with core and end with either go, rb, or py</b>`fzf [[-q|--query]] "^core go$ | rb$ | py$"`<br><b>Start fzf on entries that do not match pyc and contain travis</b>`fzf [[-q|--query]] '!pyc travis'`


title: TLDR
content:
<b>Initialize the bottle (run once, at start)</b>`genie [[-i|--initialize]]`<br><b>Run a login shell inside the bottle</b>`genie [[-s|--shell]]`<br><b>Run a specified command inside the bottle</b>`genie [[-c|--command]] [command]`


title: TLDR
content:
<b>Automatically compile and install a generic kernel</b>`sudo genkernel all`<br><b>Build and install the bzImage|initramfs|kernel|ramdisk only</b>`sudo genkernel [bzImage|initramfs|kernel|ramdisk]`<br><b>Apply changes to the kernel configuration before compiling and installing</b>`sudo genkernel --menuconfig all`<br><b>Generate a kernel with a custom name</b>`sudo genkernel --kernname=[custom_name] all`<br><b>Use a kernel source outside the default directory /usr/src/linux</b>`sudo genkernel --kerneldir=[path/to/directory] all`


title: TLDR
content:
<b>Connect to the main Ethereum network and automatically download the full node</b>`geth`<br><b>Connect to the Ropsten test network</b>`geth --testnet`<br><b>Create a new account</b>`geth account new`<br><b>Enable mining</b>`geth --mine`


title: TLDR
content:
<b>Find and compile all modules in the current directory</b>`ghc Main`<br><b>Compile a single file</b>`ghc [path/to/file.hs]`<br><b>Compile using extra optimization</b>`ghc -O [path/to/file.hs]`<br><b>Stop compilation after generating object files (.o)</b>`ghc -c [path/to/file.hs]`<br><b>Start a REPL (interactive shell)</b>`ghci`<br><b>Evaluate a single expression</b>`ghc -e [expression]`


title: TLDR
content:
<b>List available boilerplates</b>`gibo list`<br><b>Write a boilerplate to stdout</b>`gibo dump [boilerplate]`<br><b>Write a boilerplate to .gitignore</b>`gibo dump [boilerplate] >>[.gitignore]`<br><b>Search for boilerplates containing a given string</b>`gibo search [string]`<br><b>Update available local boilerplates</b>`gibo update`


title: TLDR
content:
<b>Optimize a GIF as a new file</b>`gifsicle [path/to/input.gif] [[-O|--optimize=]]3 [[-o|--output]] [path/to/output.gif]`<br><b>Use batch mode (modify each given file in place) and unoptimize a GIF</b>`gifsicle [[-b|--batch]] [path/to/input.gif] [[-U|--unoptimize]]`<br><b>Extract a frame from a GIF</b>`gifsicle [path/to/input.gif] '#[0]' > [path/to/first_frame.gif]`<br><b>Make a GIF animation from selected GIFs</b>`gifsicle [*.gif] [[-d|--delay]] [10] [[-l|--loop]] > [path/to/output.gif]`<br><b>Reduce file size using lossy compression</b>`gifsicle [[-b|--batch]] [path/to/input.gif] [[-O|--optimize=]]3 --lossy=[100] [[-k|--colors]] [16] [[-f|--dither]]`<br><b>Delete the first 10 frames and all frames after frame 20 from a GIF</b>`gifsicle [[-b|--batch]] [path/to/input.gif] --delete '#[0-9]' '#[20-]'`<br><b>Modify all frames by cropping them to a rectangle, changing their scale, flipping them, and rotating them</b>`gifsicle [[-b|--batch]] --crop [starting_x],[starting_y]+[rect_width]x[rect_height] --scale [0.25] --flip-horizontal --rotate-[90|180|270] [path/to/input.gif]`


title: TLDR
content:
<b>Log in to gist on this computer</b>`gist --login`<br><b>Create a gist from any number of text files</b>`gist [file.txt] [file2.txt]`<br><b>Create a private gist with a description</b>`gist --private --description "[A meaningful description]" [file.txt]`<br><b>Read contents from stdin and create a gist from it</b>`[echo "hello world"] | gist`<br><b>List your public and private gists</b>`gist --list`<br><b>List all public gists for any user</b>`gist --list [username]`<br><b>Update a gist using the ID from URL</b>`gist --update [GIST_ID] [file.txt]`


title: TLDR
content:
<b>Start imerge-based rebase (checkout the branch to be rebased, first)</b>`git imerge rebase [branch_to_rebase_onto]`<br><b>Start imerge-based merge (checkout the branch to merge into, first)</b>`git imerge merge [branch_to_be_merged]`<br><b>Show ASCII diagram of in-progress merge or rebase</b>`git imerge diagram`<br><b>Continue imerge operation after resolving conflicts (git add the conflicted files, first)</b>`git imerge continue --no-edit`<br><b>Wrap up imerge operation, after all conflicts are resolved</b>`git imerge finish`<br><b>Abort imerge operation, and return to the previous branch</b>`git imerge remove && git checkout [previous_branch]`


title: TLDR
content:
<b>Check out a specific pull request</b>`git pr [pr_number]`<br><b>Check out a pull request from a specific remote</b>`git pr [pr_number] [remote]`<br><b>Check out a pull request from its URL</b>`git pr [url]`<br><b>Clean up old pull request branches</b>`git pr clean`


title: TLDR
content:
<b>Report only statistics that have a level of concern greater than 0</b>`git-sizer`<br><b>Report all statistics</b>`git-sizer -v`<br><b>See additional options</b>`git-sizer -h`


title: TLDR
content:
<b>View existing submodules, and the checked-out commit for each one</b>`git submodule status`<br><b>Install a repository's submodules (listed in .gitmodules)</b>`git submodule update --init --recursive`<br><b>Add a Git repository as a submodule of the current one</b>`git submodule add [repository_url]`<br><b>Add a Git repository as a submodule of the current one, at a specific directory</b>`git submodule add [repository_url] [path/to/directory]`<br><b>Update every submodule to its latest commit</b>`git submodule update --init --recursive --remote`<br><b>Change the URL of a submodule</b>`git submodule set-url [path/to/submodule] [new_url]`<br><b>Unregister a submodule (e.g. before removing it from the repository with git rm)</b>`git submodule deinit [path/to/submodule]`


title: TLDR
content:
<b>Synchronize labels using a local labels.json file</b>`github-label-sync --access-token [token] [repository_name]`<br><b>Synchronize labels using a specific labels JSON file</b>`github-label-sync --access-token [token] --labels [url|path/to/json_file] [repository_name]`<br><b>Perform a dry run instead of actually synchronizing labels</b>`github-label-sync --access-token [token] --dry-run [repository_name]`<br><b>Keep labels that aren't in labels.json</b>`github-label-sync --access-token [token] --allow-added-labels [repository_name]`<br><b>Synchronize using the GITHUB_ACCESS_TOKEN environment variable</b>`github-label-sync [repository_name]`


title: TLDR
content:
<b>Create a new directory with the specified branch checked out into it</b>`git worktree add [path/to/directory] [branch]`<br><b>Create a new directory with a new branch checked out into it</b>`git worktree add [path/to/directory] -b [new_branch]`<br><b>List all the working directories attached to this repository</b>`git worktree list`<br><b>Remove a worktree (after deleting worktree directory)</b>`git worktree prune`


title: TLDR
content:
<b>Enter the gitsome shell (optional), to enable autocompletion and interactive help for Git (and gh) commands</b>`gitsome`<br><b>Setup GitHub integration with the current account</b>`gh configure`<br><b>List notifications for the current account (as would be seen in <https://github.com/notifications>)</b>`gh notifications`<br><b>List the current account's starred repos, filtered by a given search string</b>`gh starred "[python 3]"`<br><b>View the recent activity feed of a given GitHub repository</b>`gh feed [tldr-pages/tldr]`<br><b>View the recent activity feed for a given GitHub user, using the default pager (e.g. less)</b>`gh feed [torvalds] -p`


title: TLDR
content:
<b>Analyze nginx configuration (default path: /etc/nginx/nginx.conf)</b>`gixy`<br><b>Analyze nginx configuration but skip specific tests</b>`gixy --skips [http_splitting]`<br><b>Analyze nginx configuration with the specific severity level</b>`gixy [-l|-ll|-lll]`<br><b>Analyze nginx configuration files on the specific path</b>`gixy [path/to/configuration_file_1] [path/to/configuration_file_2]`


title: TLDR
content:
<b>Use UNIX (or DOS) pipes to pipe stdout of any command through gnomon</b>`[npm test] | gnomon`<br><b>Show number of seconds since the start of the process</b>`[npm test] | gnomon --type=elapsed-total`<br><b>Show an absolute timestamp in UTC</b>`[npm test] | gnomon --type=absolute`<br><b>Use a high threshold of 0.5 seconds, exceeding which the timestamp will be colored bright red</b>`[npm test] | gnomon --high 0.5`<br><b>Use a medium threshold of 0.2 seconds, exceeding which the timestamp will be colored bright yellow</b>`[npm test] | gnomon --medium [0.2]`


title: TLDR
content:
<b>Download and install a package, specified by its import path</b>`go get [path/to/package]`<br><b>Compile and run a source file (it has to contain a main package)</b>`go run [file].go`<br><b>Compile a source file into a named executable</b>`go build -o [executable] [file].go`<br><b>Compile the package present in the current directory</b>`go build`<br><b>Execute all test cases of the current package (files have to end with _test.go)</b>`go test`<br><b>Compile and install the current package</b>`go install`<br><b>Initialize a new module in the current directory</b>`go mod init [module_name]`


title: TLDR
content:
<b>Initialize an encrypted filesystem</b>`gocryptfs -init [path/to/cipher_directory]`<br><b>Mount an encrypted filesystem</b>`gocryptfs [path/to/cipher_directory] [path/to/mount_point]`<br><b>Mount with the explicit master key instead of password</b>`gocryptfs --masterkey [path/to/cipher_directory] [path/to/mount_point]`<br><b>Change the password</b>`gocryptfs --passwd [path/to/cipher_directory]`<br><b>Make an encrypted snapshot of a plain directory</b>`gocryptfs --reverse [path/to/plain_directory] [path/to/cipher_directory]`


title: TLDR
content:
<b>Display help for a specific package</b>`godoc [fmt]`<br><b>Display help for the function "Printf" of "fmt" package</b>`godoc [fmt] [Printf]`<br><b>Serve documentation as a web server on port 6060</b>`godoc -http=:[6060]`<br><b>Create an index file</b>`godoc -write_index -index_files=[path/to/file]`<br><b>Use the given index file to search the docs</b>`godoc -http=:[6060] -index -index_files=[path/to/file]`


title: TLDR
content:
<b>Run a project if the current directory contains a project.godot file, otherwise open the project manager</b>`godot`<br><b>Edit a project (the current directory must contain a project.godot file)</b>`godot [[-e|--editor]]`<br><b>Open the project manager even if the current directory contains a project.godot file</b>`godot [[-p|--project-manager]]`<br><b>Export a project for release using a given export preset (the preset must be defined in the project)</b>`godot --export-release [preset] [output_path]`<br><b>Execute a standalone GDScript file (the script must inherit from SceneTree or MainLoop)</b>`godot [[-s|--script]] [script.gd]`


title: TLDR
content:
<b>Format a file and display the result to the console</b>`gofmt [source.go]`<br><b>Format a file, overwriting the original file in-place</b>`gofmt -w [source.go]`<br><b>Format a file, and then simplify the code, overwriting the original file</b>`gofmt -s -w [source.go]`<br><b>Print all (including spurious) errors</b>`gofmt -e [source.go]`


title: TLDR
content:
<b>Initialize the configuration settings</b>`gopass init`<br><b>Create a new entry</b>`gopass new`<br><b>Show all stores</b>`gopass mounts`<br><b>Mount a shared Git store</b>`gopass mounts add [store_name] [git_repo_url]`<br><b>Search interactively using a keyword</b>`gopass show [keyword]`<br><b>Search using a keyword</b>`gopass find [keyword]`<br><b>Sync all mounted stores</b>`gopass sync`<br><b>Show a particular password entry</b>`gopass [store_name|path/to/directory|email@email.com]`


title: TLDR
content:
<b>Print all go processes running locally</b>`gops`<br><b>Print more information about a process</b>`gops [pid]`<br><b>Display a process tree</b>`gops tree`<br><b>Print the current stack trace from a target program</b>`gops stack [pid|addr]`<br><b>Print the current runtime memory statistics</b>`gops memstats [pid|addr]`


title: TLDR
content:
<b>Run gource in a directory (if it isn't the repository's root directory, the root is sought up from there)</b>`gource [path/to/repository]`<br><b>Run gource in the current directory, with a custom output resolution</b>`gource -[width]x[height]`<br><b>Specify how long each day should be in the animation (this combines with -c, if provided)</b>`gource [[-s|--seconds-per-day]] [seconds]`<br><b>Use fullscreen mode and a custom background color</b>`gource [[-f|--fullscreen]] [[-b|--background-colour]] [hex_color_code]`<br><b>Specify the animation title</b>`gource --title [title]`<br><b>Pause the animation</b>`<Space>`<br><b>Adjust simulation speed</b>`<[+|-]>`<br><b>Display help</b>`gource [[-h|--help]]`


title: TLDR
content:
<b>Compile Go program in the current directory for all operating systems and architecture combinations</b>`gox`<br><b>Download and compile a Go program from a remote URL</b>`gox [url_1] [url_2]`<br><b>Compile current directory for a particular operating system</b>`gox -os="[os]"`<br><b>Compile current directory for a single operating system and architecture combination</b>`gox -osarch="[os]/[arch]"`


title: TLDR
content:
<b>Start the interactive graph plotting shell</b>`gnuplot`<br><b>Plot the graph for the specified graph definition file</b>`gnuplot [path/to/definition.plt]`<br><b>Set the output format by executing a command before loading the definition file</b>`gnuplot -e "[set output "path/to/file.png" size 1024,768]" [path/to/definition.plt]`<br><b>Persist the graph plot preview window after gnuplot exits</b>`gnuplot [[-p|--persist]] [path/to/definition.plt]`


title: TLDR
content:
<b>Run the default task process</b>`grunt`<br><b>Run one or more tasks</b>`grunt [task1 task2 ...]`<br><b>Specify an alternative configuration file</b>`grunt --gruntfile [path/to/file]`<br><b>Specify an alternative base path for relative files</b>`grunt --base [path/to/directory]`<br><b>Specify an additional directory to scan for tasks in</b>`grunt --tasks [path/to/directory]`<br><b>Perform a dry-run without writing any files</b>`grunt --no-write`<br><b>Display help</b>`grunt --help`


title: TLDR
content:
<b>Show the system stats dashboard</b>`gtop`<br><b>Sort by CPU usage</b>`<c>`<br><b>Sort by memory usage</b>`<m>`


title: TLDR
content:
<b>Toggle Guake visibility</b>`<F12>`<br><b>Toggle fullscreen mode</b>`<F11>`<br><b>Open a new tab</b>`<Ctrl Shift t>`<br><b>Close the terminal</b>`<Super x>`<br><b>Go to the previous tab</b>`<Ctrl PageUp>`<br><b>Search the selected text in the browser</b>`<Ctrl Shift l>`


title: TLDR
content:
<b>Compress a JPEG image</b>`guetzli [input.jpg] [output.jpg]`<br><b>Create a compressed JPEG from a PNG</b>`guetzli [input.png] [output.jpg]`<br><b>Compress a JPEG with the desired visual quality (84-100)</b>`guetzli --quality [quality_value] [input.jpg] [output.jpg]`


title: TLDR
content:
<b>Install a new package</b>`guix package [[-i|--install]] [package]`<br><b>Remove a package</b>`guix package [[-r|--remove]] [package]`<br><b>Search the package database for a regex</b>`guix package [[-s|--search]] "[search_pattern]"`<br><b>List installed packages</b>`guix package [[-I|--list-installed]]`<br><b>List generations</b>`guix package [[-l|--list-generations]]`<br><b>Roll back to the previous generation</b>`guix package --roll-back`


title: TLDR
content:
<b>Run the default task</b>`gulp`<br><b>Run individual tasks</b>`gulp [task] [othertask]`<br><b>Print the task dependency tree for the loaded gulpfile</b>`gulp --tasks`


title: TLDR
content:
<b>Run Python web app</b>`gunicorn [import.path:app_object]`<br><b>Listen on port 8080 on localhost</b>`gunicorn [[-b|--bind]] [localhost]:[8080] [import.path:app_object]`<br><b>Turn on live reload</b>`gunicorn --reload [import.path:app_object]`<br><b>Use 4 worker processes for handling requests</b>`gunicorn [[-w|--workers]] [4] [import.path:app_object]`<br><b>Use 4 worker threads for handling requests</b>`gunicorn --threads [4] [import.path:app_object]`<br><b>Run app over HTTPS</b>`gunicorn --certfile [cert.pem] --keyfile [key.pem] [import.path:app_object]`


title: TLDR
content:
<b>Convert a video file to MKV (AAC 160kbit audio and x264 CRF20 video)</b>`handbrakecli [[-i|--input]] [input.avi] [[-o|--output]] [output.mkv] [[-e|--encoder]] x264 [[-q|--quality]] 20 [[-B|--ab]] 160`<br><b>Resize a video file to 320x240</b>`handbrakecli [[-i|--input]] [input.mp4] [[-o|--output]] [output.mp4] [[-w|--width]] 320 [[-l|--height]] 240`<br><b>List available presets</b>`handbrakecli [[-z|--preset-list]]`<br><b>Convert an AVI video to MP4 using the Android preset</b>`handbrakecli [[-Z|--preset]] "Android" [[-i|--input]] [input.ext] [[-o|--output]] [output.mp4]`<br><b>Print the content of a DVD, getting the CSS keys in the process</b>`handbrakecli [[-i|--input]] [/dev/sr0] [[-t|--title]] 0`<br><b>Rip the first track of a DVD in the specified device. Audiotracks and subtitle languages are specified as lists</b>`handbrakecli [[-i|--input]] [/dev/sr0] [[-t|--title]] 1 [[-o|--output]] [out.mkv] [[-f|--format]] av_mkv [[-e|--encoder]] x264 [[-s|--subtitle]] [1,4,5] [[-a|--audio]] [1,2] [[-E|--aencoder]] copy [[-q|--quality]] [23]`


title: TLDR
content:
<b>Start hangups</b>`hangups`<br><b>Display troubleshooting information and help</b>`hangups -h`<br><b>Set a refresh token for hangups</b>`hangups --token-path [path/to/token]`


title: TLDR
content:
<b>Start hardinfo</b>`hardinfo`<br><b>Print report to stdout</b>`hardinfo [[-r|--generate-report]]`<br><b>Save report to HTML file</b>`hardinfo [[-r|--generate-report]] [[-f|--report-format]] html > hardinfo.html`


title: TLDR
content:
<b>Search for a Haxe library</b>`haxelib search [keyword]`<br><b>Install a Haxe library</b>`haxelib install [libname]`<br><b>Install a specific version of a Haxe library</b>`haxelib install [libname] [version]`<br><b>Upgrade all installed Haxe libraries</b>`haxelib upgrade`<br><b>Install the development version of a library from a Git repository</b>`haxelib git [libname] [git_url]`<br><b>Uninstall a Haxe library</b>`haxelib remove [libname]`<br><b>Print a tree of locally installed Haxe libraries</b>`haxelib list`


title: TLDR
content:
<b>Create a helm chart</b>`helm create [chart_name]`<br><b>Add a new helm repository</b>`helm repo add [repository_name]`<br><b>List helm repositories</b>`helm repo [[ls|list]]`<br><b>Update helm repositories</b>`helm repo [[up|update]]`<br><b>Delete a helm repository</b>`helm repo [[rm|remove]] [repository_name]`<br><b>Install a helm chart</b>`helm install [name] [repository_name]/[chart_name]`<br><b>Download helm chart as a tar archive</b>`helm get [chart_release_name]`<br><b>Update helm dependencies</b>`helm [[dep|dependency]] [[up|update]]`


title: TLDR
content:
<b>Generate a man page for an executable</b>`help2man [executable]`<br><b>Specify the "name" paragraph in the man page</b>`help2man [executable] [[-n|--name]] [name]`<br><b>Specify the section for the man page (defaults to 1)</b>`help2man [executable] [[-s|--section]] [section]`<br><b>Output to a file instead of stdout</b>`help2man [executable] [[-o|--output]] [path/to/file]`<br><b>Display help</b>`help2man --help`


title: TLDR
content:
<b>Log in to your Heroku account</b>`heroku login`<br><b>Create a Heroku app</b>`heroku create`<br><b>Show logs for an app</b>`heroku logs --app [app_name]`<br><b>Run a one-off process inside a dyno (Heroku virtual machine)</b>`heroku run [process_name] --app [app_name]`<br><b>List dynos (Heroku virtual machines) for an app</b>`heroku ps --app [app_name]`<br><b>Permanently destroy an app</b>`heroku destroy --app [app_name]`


title: TLDR
content:
<b>Add files or directories to the staging area</b>`hg add [path/to/file]`<br><b>Add all unstaged files matching a specified pattern</b>`hg add [[-I|--include]] [pattern]`<br><b>Add all unstaged files, excluding those that match a specified pattern</b>`hg add [[-X|--exclude]] [pattern]`<br><b>Recursively add sub-repositories</b>`hg add [[-S|--subrepos]]`<br><b>Perform a test-run without performing any actions</b>`hg add [[-n|--dry-run]]`


title: TLDR
content:
<b>Show the name of the currently active branch</b>`hg branch`<br><b>Create a new branch for the next commit</b>`hg branch [branch_name]`


title: TLDR
content:
<b>Clone a repository to a specified directory</b>`hg clone [remote_repository_source] [destination_path]`<br><b>Clone a repository to the head of a specific branch, ignoring later commits</b>`hg clone [[-b|--branch]] [branch] [remote_repository_source]`<br><b>Clone a repository with only the .hg directory, without checking out files</b>`hg clone [[-U|--noupdate]] [remote_repository_source]`<br><b>Clone a repository to a specific revision, tag or branch, keeping the entire history</b>`hg clone [[-u|--updaterev]] [revision] [remote_repository_source]`<br><b>Clone a repository up to a specific revision without any newer history</b>`hg clone [[-r|--rev]] [revision] [remote_repository_source]`


title: TLDR
content:
<b>Commit staged files to the repository</b>`hg commit`<br><b>Commit a specific file or directory</b>`hg commit [path/to/file_or_directory]`<br><b>Commit with a specific message</b>`hg commit [[-m|--message]] [message]`<br><b>Commit all files matching a specified pattern</b>`hg commit [[-I|--include]] [pattern]`<br><b>Commit all files, excluding those that match a specified pattern</b>`hg commit [[-X|--exclude]] [pattern]`<br><b>Commit using the interactive mode</b>`hg commit [[-i|--interactive]]`


title: TLDR
content:
<b>Initialize a new repository in the current directory</b>`hg init`<br><b>Initialize a new repository in the specified directory</b>`hg init [path/to/directory]`


title: TLDR
content:
<b>Display the entire revision history of the repository</b>`hg log`<br><b>Display the revision history with an ASCII graph</b>`hg log [[-G|--graph]]`<br><b>Display the revision history with file names matching a specified pattern</b>`hg log [[-I|--include]] [pattern]`<br><b>Display the revision history, excluding file names that match a specified pattern</b>`hg log [[-X|--exclude]] [pattern]`<br><b>Display the log information for a specific revision</b>`hg log [[-r|--rev]] [revision]`<br><b>Display the revision history for a specific branch</b>`hg log [[-b|--branch]] [branch]`<br><b>Display the revision history for a specific date</b>`hg log [[-d|--date]] [date]`<br><b>Display revisions committed by a specific user</b>`hg log [[-u|--user]] [user]`


title: TLDR
content:
<b>Pull from the "default" source path</b>`hg pull`<br><b>Pull from a specified source repository</b>`hg pull [path/to/source_repository]`<br><b>Update the local repository to the head of the remote</b>`hg pull [[-u|--update]]`<br><b>Pull changes even when the remote repository is unrelated</b>`hg pull [[-f|--force]]`<br><b>Specify a specific revision changeset to pull up to</b>`hg pull [[-r|--rev]] [revision]`<br><b>Specify a specific branch to pull</b>`hg pull [[-b|--branch]] [branch]`<br><b>Specify a specific bookmark to pull</b>`hg pull [[-B|--bookmark]] [bookmark]`


title: TLDR
content:
<b>Push changes to the "default" remote path</b>`hg push`<br><b>Push changes to a specified remote repository</b>`hg push [path/to/destination_repository]`<br><b>Push a new branch if it does not exist (disabled by default)</b>`hg push --new-branch`<br><b>Specify a specific revision changeset to push</b>`hg push [[-r|--rev]] [revision]`<br><b>Specify a specific branch to push</b>`hg push [[-b|--branch]] [branch]`<br><b>Specify a specific bookmark to push</b>`hg push [[-B|--bookmark]] [bookmark]`


title: TLDR
content:
<b>Remove files or directories from the staging area</b>`hg remove [path/to/file]`<br><b>Remove all staged files matching a specified pattern</b>`hg remove [[-I|--include]] [pattern]`<br><b>Remove all staged files, excluding those that match a specified pattern</b>`hg remove [[-X|--exclude]] [pattern]`<br><b>Recursively remove sub-repositories</b>`hg remove [[-S|--subrepos]]`<br><b>Remove files from the repository that have been physically removed</b>`hg remove [[-A|--after]]`


title: TLDR
content:
<b>Display the root location of the current repository</b>`hg root`<br><b>Display the root location of the specified repository</b>`hg root --cwd [path/to/directory]`


title: TLDR
content:
<b>Start a web server instance</b>`hg serve`<br><b>Start a web server instance on the specified port</b>`hg serve [[-p|--port]] [port]`<br><b>Start a web server instance on the specified listening address</b>`hg serve [[-a|--address]] [address]`<br><b>Start a web server instance with a specific identifier</b>`hg serve [[-n|--name]] [name]`<br><b>Start a web server instance using the specified theme (see the templates directory)</b>`hg serve --style [style]`<br><b>Start a web server instance using the specified SSL certificate bundle</b>`hg serve --certificate [path/to/certificate]`


title: TLDR
content:
<b>Display the status of changed files</b>`hg status`<br><b>Display only modified files</b>`hg status [[-m|--modified]]`<br><b>Display only added files</b>`hg status [[-a|--added]]`<br><b>Display only removed files</b>`hg status [[-r|--removed]]`<br><b>Display only deleted (but tracked) files</b>`hg status [[-d|--deleted]]`<br><b>Display changes in the working directory compared to a specified changeset</b>`hg status --rev [revision]`<br><b>Display only files matching a specified glob pattern</b>`hg status [[-I|--include]] [pattern]`<br><b>Display files, excluding those that match a specified glob pattern</b>`hg status [[-X|--exclude]] [pattern]`


title: TLDR
content:
<b>Update to the tip of the current branch</b>`hg update`<br><b>Update to the specified revision</b>`hg update [[-r|--rev]] [revision]`<br><b>Update and discard uncommitted changes</b>`hg update [[-C|--clean]]`<br><b>Update to the last commit matching a specified date</b>`hg update [[-d|--date]] [dd-mm-yyyy]`


title: TLDR
content:
<b>View stories on Hacker News</b>`hn`<br><b>View _number_ of stories on Hacker News</b>`hn [[-l|--limit]] [number]`<br><b>View stories on Hacker News, and keep the list open after selecting a link</b>`hn [[-k|--keep-open]]`<br><b>View stories on Hacker News sorted by submission date</b>`hn --latest`


title: TLDR
content:
<b>Build the configuration defined in ~/.config/nixpkgs/home.nix without applying it</b>`home-manager build`<br><b>Build and apply (switch to) the new configuration</b>`home-manager switch`<br><b>Roll back to a previous configuration generation</b>`home-manager rollback`<br><b>List all existing configuration generations</b>`home-manager generations`<br><b>When using flakes, run any operation that requires nix to run (build, switch, news) by passing the path to the flake</b>`home-manager [command] --flake [path/to/flake]`


title: TLDR
content:
<b>List domains, target IP addresses and on/off status</b>`hostess list`<br><b>Add a domain pointing to your machine to your hosts file</b>`hostess add [local.example.com] [127.0.0.1]`<br><b>Remove a domain from your hosts file</b>`hostess del [local.example.com]`<br><b>Disable a domain (but don't remove it)</b>`hostess off [local.example.com]`


title: TLDR
content:
<b>Print a horizontal rule</b>`hr`<br><b>Print a horizontal rule with a custom string</b>`hr [string]`<br><b>Print a multiline horizontal rule</b>`hr [string1 string2 ...]`


title: TLDR
content:
<b>Retrieve information about the current server</b>`hsd-cli info`<br><b>Broadcast a local transaction</b>`hsd-cli broadcast [transaction_hex]`<br><b>Retrieve a mempool snapshot</b>`hsd-cli mempool`<br><b>View a transaction by address or hash</b>`hsd-cli tx [address_or_hash]`<br><b>View a coin by its hash index or address</b>`hsd-cli coin [hash_index_or_address]`<br><b>View a block by height or hash</b>`hsd-cli block [height_or_hash]`<br><b>Reset the chain to the specified block</b>`hsd-cli reset [height_or_hash]`<br><b>Execute an RPC command</b>`hsd-cli rpc [command] [args]`


title: TLDR
content:
<b>Unlock the current wallet (timeout in seconds)</b>`hsw-cli unlock [passphrase] [timeout]`<br><b>Lock the current wallet</b>`hsw-cli lock`<br><b>View the current wallet's details</b>`hsw-cli get`<br><b>View the current wallet's balance</b>`hsw-cli balance`<br><b>View the current wallet's transaction history</b>`hsw-cli history`<br><b>Send a transaction with the specified coin amount to an address</b>`hsw-cli send [address] [1.05]`<br><b>View the current wallet's pending transactions</b>`hsw-cli pending`<br><b>View details about a transaction</b>`hsw-cli tx [transaction_hash]`


title: TLDR
content:
<b>Launch a session targeting the default URL of <http://localhost:8000> or the previous session</b>`http-prompt`<br><b>Launch a session with a given URL</b>`http-prompt [http://example.com]`<br><b>Launch a session with some initial options</b>`http-prompt [localhost:8000/api] --auth [username:password]`


title: TLDR
content:
<b>Make a simple GET request (shows response headers and content)</b>`http [https://example.com]`<br><b>Print specific parts of the content (H: request headers, B: request body, h: response headers, b: response body, m: response metadata)</b>`http [[-p|--print]] [H|B|h|b|m|Hh|Hhb|...] [https://example.com]`<br><b>Specify the HTTP method when sending a request and use a proxy to intercept the request</b>`http [GET|POST|HEAD|PUT|PATCH|DELETE|...] --proxy [http|https]:[http://localhost:8080|socks5://localhost:9050|...] [https://example.com]`<br><b>Follow any 3xx redirects and specify additional headers in a request</b>`http [[-F|--follow]] [https://example.com] ['User-Agent: Mozilla/5.0' 'Accept-Encoding: gzip']`<br><b>Authenticate to a server using different authentication methods</b>`http [[-a|--auth]] [username:password|token] [[-A|--auth-type]] [basic|digest|bearer] [GET|POST|...] [https://example.com/auth]`<br><b>Construct a request but do not send it (similar to a dry-run)</b>`http --offline [GET|DELETE|...] [https://example.com]`<br><b>Use named sessions for persistent custom headers, auth credentials and cookies</b>`http --session [session_name|path/to/session.json] [[-a|--auth]] [username]:[password] [https://example.com/auth] [API-KEY:xxx]`<br><b>Upload a file to a form (the example below assumes that the form field is <input type="file" name="cv" />)</b>`http [[-f|--form]] [POST] [https://example.com/upload] [cv@path/to/file]`


title: TLDR
content:
<b>Check updates for http</b>`httpie cli check-updates`<br><b>List installed http plugins</b>`httpie cli plugins list`<br><b>Install/upgrade/uninstall plugins</b>`httpie cli plugins [install|upgrade|uninstall] [plugin_name]`


title: TLDR
content:
<b>Ping the specified URL</b>`httping -g [url]`<br><b>Ping the web server on host and port</b>`httping -h [host] -p [port]`<br><b>Ping the web server on host using a TLS connection</b>`httping -l -g https://[host]`<br><b>Ping the web server on host using HTTP basic authentication</b>`httping -g http://[host] -U [username] -P [password]`


title: TLDR
content:
<b>Clone a repository using its slug (owners can omit the username)</b>`hub clone [username]/[repo_name]`<br><b>Create a fork of the current repository (cloned from another user) under your GitHub profile</b>`hub fork`<br><b>Push the current local branch to GitHub and create a PR for it in the original repository</b>`hub push [remote_name] && hub pull-request`<br><b>Create a PR of the current (already pushed) branch, reusing the message from the first commit</b>`hub pull-request --no-edit`<br><b>Create a new branch with the contents of a pull request and switch to it</b>`hub pr checkout [pr_number]`<br><b>Upload the current (local-only) repository to your GitHub account</b>`hub create`<br><b>Fetch Git objects from upstream and update local branches</b>`hub sync`


title: TLDR
content:
<b>Create a new Hugo site</b>`hugo new site [path/to/site]`<br><b>Create a new Hugo theme (themes may also be downloaded from <https://themes.gohugo.io/>)</b>`hugo new theme [theme_name]`<br><b>Create a new page</b>`hugo new [section_name]/[page_name]`<br><b>Build a site to the ./public/ directory</b>`hugo`<br><b>Build a site including pages that are marked as a "draft"</b>`hugo [[-D|--buildDrafts]]`<br><b>Build a site on your local IP</b>`hugo server --bind [local_ip] [[-b|--baseURL]] [http://local_ip]`<br><b>Build a site to a given directory</b>`hugo [[-d|--destination]] [path/to/destination]`<br><b>Build a site, start up a webserver to serve it, and automatically reload when pages are edited</b>`hugo server`


title: TLDR
content:
<b>Run a basic benchmark, performing at least 10 runs</b>`hyperfine '[make]'`<br><b>Run a comparative benchmark</b>`hyperfine '[make target1]' '[make target2]'`<br><b>Change minimum number of benchmarking runs</b>`hyperfine [[-m|--min-runs]] [7] '[make]'`<br><b>Perform benchmark with warmup</b>`hyperfine [[-w|--warmup]] [5] '[make]'`<br><b>Run a command before each benchmark run (to clear caches, etc.)</b>`hyperfine [[-p|--prepare]] '[make clean]' '[make]'`<br><b>Run a benchmark where a single parameter changes for each run</b>`hyperfine [[-p|--prepare]] '[make clean]' [[-P|--parameter-scan]] [num_threads] [1] [10] '[make --jobs {num_threads]}'`


title: TLDR
content:
<b>Set artist and song title tag of an MP3 file</b>`id3tag --artist [artist] --song [song_title] [path/to/file.mp3]`<br><b>Set album title of all MP3 files in the current directory</b>`id3tag --album [album] [*.mp3]`<br><b>Display help</b>`id3tag --help`


title: TLDR
content:
<b>Execute the specified commands if the condition command's exit status is zero</b>`if [condition_command]; then [echo "Condition is true"]; fi`<br><b>Execute the specified commands if the condition command's exit status is not zero</b>`if ! [condition_command]; then [echo "Condition is true"]; fi`<br><b>Execute the first specified commands if the condition command's exit status is zero otherwise execute the second specified commands</b>`if [condition_command]; then [echo "Condition is true"]; else [echo "Condition is false"]; fi`<br><b>Check whether a [f]ile exists</b>`if [[ -f [path/to/file] ]]; then [echo "Condition is true"]; fi`<br><b>Check whether a [d]irectory exists</b>`if [[ -d [path/to/directory] ]]; then [echo "Condition is true"]; fi`<br><b>Check whether a file or directory [e]xists</b>`if [[ -e [path/to/file_or_directory] ]]; then [echo "Condition is true"]; fi`<br><b>Check whether a variable is defined</b>`if [[ -n "$[variable]" ]]; then [echo "Condition is true"]; fi`<br><b>List all possible conditions (test is an alias to [; both are commonly used with if)</b>`man test`


title: TLDR
content:
<b>Create a new React Native project</b>`ignite new [project_name]`<br><b>Generate file from a plugin</b>`ignite generate [plugin_name] [path/to/file]`<br><b>Add an Ignite plugin to the project</b>`ignite add [plugin_name]`<br><b>Remove an Ignite plugin from the project</b>`ignite remove [plugin_name]`


title: TLDR
content:
<b>Convert single images and/or whole directories containing valid image formats</b>`imgp [[-x|--res]] [1366x1000] [path/to/directory] [path/to/file]`<br><b>Scale an image by 75% and overwrite the source image to a target resolution</b>`imgp [[-x|--res]] [75] z-w [path/to/file]`<br><b>Rotate an image clockwise by 90 degrees</b>`imgp [[-o|--rotate]] [90] [path/to/file]`


title: TLDR
content:
<b>Convert an XLS file to CSV</b>`in2csv [data.xls]`<br><b>Convert a DBF file to a CSV file</b>`in2csv [data.dbf] > [data.csv]`<br><b>Convert a specific sheet from an XLSX file to CSV</b>`in2csv --sheet=[sheet_name] [data.xlsx]`<br><b>Pipe a JSON file to in2csv</b>`cat [data.json] | in2csv [[-f|--format]] json > [data.csv]`


title: TLDR
content:
<b>Analyze code using the configuration file (or create one if it does not exist)</b>`infection`<br><b>Use a specific number of threads</b>`infection --threads [number_of_threads]`<br><b>Specify a minimum Mutation Score Indicator (MSI)</b>`infection --min-msi [percentage]`<br><b>Specify a minimum covered code MSI</b>`infection --min-covered-msi [percentage]`<br><b>Use a specific test framework (defaults to PHPUnit)</b>`infection --test-framework [phpunit|phpspec]`<br><b>Only mutate lines of code that are covered by tests</b>`infection --only-covered`<br><b>Display the mutation code that has been applied</b>`infection --show-mutations`<br><b>Specify the log verbosity</b>`infection --log-verbosity [default|all|none]`


title: TLDR
content:
<b>Open an SVG file in the Inkscape GUI</b>`inkscape [path/to/file.svg]`<br><b>Export an SVG file into a bitmap with the default format (PNG) and the default resolution (96 DPI)</b>`inkscape [path/to/file.svg] [[-o|--export-filename]] [path/to/file.png]`<br><b>Export an SVG file into a bitmap of 600x400 pixels (aspect ratio distortion may occur)</b>`inkscape [path/to/file.svg] [[-o|--export-filename]] [path/to/file.png] [[-w|--export-width]] 600 [[-h|--export-height]] 400`<br><b>Export the drawing (bounding box of all objects) of an SVG file into a bitmap</b>`inkscape [path/to/file.svg] [[-o|--export-filename]] [path/to/file.png] [[-D|--export-area-drawing]]`<br><b>Export a single object, given its ID, into a bitmap</b>`inkscape [path/to/file.svg] [[-i|--export-id]] [id] [[-o|--export-filename]] [object.png]`<br><b>Export an SVG document to PDF, converting all texts to paths</b>`inkscape [path/to/file.svg] [[-o|--export-filename]] [path/to/file.pdf] [[-T|--export-text-to-path]]`<br><b>Duplicate the object with id="path123", rotate the duplicate 90 degrees, save the file, and quit Inkscape</b>`inkscape [path/to/file.svg] --select=path123 --verb="[EditDuplicate;ObjectRotate90;FileSave;FileQuit]"`


title: TLDR
content:
<b>Preview an SVG</b>`inkview [path/to/file.svg]`<br><b>Preview multiple SVGs (use <ArrowKeys> to navigate)</b>`inkview [path/to/file1.svg path/to/file2.svg ...]`


title: TLDR
content:
<h2>Run a command when a file changes</h2>`while inotifywait [path/to/file]; do [command]; done`<br><h2>Be quiet about watching for changes</h2>`while inotifywait --quiet [path/to/file]; do [command]; done`<br><h2>Watch a directory recursively for changes</h2>`while inotifywait --recursive [path/to/directory]; do [command]; done`<br><h2>Exclude files matching a regular expression</h2>`while inotifywait --recursive [path/to/directory] --exlude '[regex]'; do [command]; done`<br><h2>Wait at most 30 seconds</h2>`while inotifywait --timeout [30] [path/to/file]; do [command]; done`<br><h2>Only watch for file modification events</h2>`while inotifywait --event [modify] [path/to/file]; do [command]; done`


title: TLDR
content:
<b>Create a new project</b>`ionic start`<br><b>Start a local dev server for app dev/testing</b>`ionic serve`<br><b>Generate new app component, directive, page, pipe, provider or tabs</b>`ionic g [page]`<br><b>Run app on an Android/iOS device</b>`ionic cordova run [android|ios] --device`<br><b>Check the health of an Ionic app</b>`ionic doctor [check]`<br><b>Display versions of Ionic, Cordova, environment, etc.</b>`ionic info`


title: TLDR
content:
<b>Show disk I/O latency using the default values and the current directory</b>`ioping .`<br><b>Measure latency on /tmp using 10 requests of 1 megabyte each</b>`ioping [[-c|-count]] 10 [[-s|-size]] 1M /tmp`<br><b>Measure disk seek rate on /dev/sdX</b>`ioping [[-R|-rapid]] [/dev/sdX]`<br><b>Measure disk sequential speed on /dev/sdX</b>`ioping [[-RL|-rapid -linear]] [/dev/sdX]`


title: TLDR
content:
<b>Run iperf3 as a server</b>`iperf3 [[-s|--server]]`<br><b>Run an iperf3 server on a specific port</b>`iperf3 [[-s|--server]] [[-p|--port]] [port]`<br><b>Start bandwidth test</b>`iperf3 [[-c|--client]] [server]`<br><b>Run iperf3 in multiple parallel streams</b>`iperf3 [[-c|--client]] [server] [[-P|--parallel]] [streams]`<br><b>Reverse direction of the test. Server sends data to the client</b>`iperf3 [[-c|--client]] [server] [[-R|--reverse]]`


title: TLDR
content:
<b>Add a file from local to the filesystem, pin it and print the relative hash</b>`ipfs add [path/to/file]`<br><b>Add a directory and its files recursively from local to the filesystem and print the relative hash</b>`ipfs add -r [path/to/directory]`<br><b>Save a remote file and give it a name but not pin it</b>`ipfs get [hash] -o [path/to/file]`<br><b>Pin a remote file locally</b>`ipfs pin add [hash]`<br><b>Display pinned files</b>`ipfs pin ls`<br><b>Unpin a file from the local storage</b>`ipfs pin rm [hash]`<br><b>Remove unpinned files from local storage</b>`ipfs repo gc`


title: TLDR
content:
<b>Open Irssi and connect to a server with a nickname</b>`irssi [[-n|--nick]] [nickname] [[-c|--connect]] [irc.example.com]`<br><b>Open Irssi and connect with a specific server on a given port</b>`irssi [[-c|--connect]] [irc.example.com] [[-p|--port]] [port]`<br><b>Display help</b>`irssi [[-?|--help]]`<br><b>Join a channel</b>`/join [#channelname]`<br><b>Change active window (starts at 1)</b>`/win [window_number]`<br><b>Exit the application cleanly and quitting any server(s)</b>`/quit`


title: TLDR
content:
<b>Recursively archive all files in the current directory into a .jar file</b>`jar cf [file.jar] *`<br><b>Unzip .jar/.war file to the current directory</b>`jar -xvf [file.jar]`<br><b>List a .jar/.war file content</b>`jar tf [path/to/file.jar]`<br><b>List a .jar/.war file content with verbose output</b>`jar tvf [path/to/file.jar]`


title: TLDR
content:
<b>Generate a development server that will run at http://localhost:4000/</b>`jekyll serve`<br><b>Enable incremental regeneration</b>`jekyll serve --incremental`<br><b>Enable verbose output</b>`jekyll serve --verbose`<br><b>Generate the current directory into ./_site</b>`jekyll build`<br><b>Clean the site (removes site output and cache directory) without building</b>`jekyll clean`


title: TLDR
content:
<b>Run all available tests</b>`jest`<br><b>Run the test suites from the given files</b>`jest [path/to/file1 path/to/file2 ...]`<br><b>Run the test suites from files within the current and subdirectories, whose paths match the given regex</b>`jest [regex1] [regex2]`<br><b>Run the tests whose names match the given regex</b>`jest --testNamePattern [regex]`<br><b>Run test suites related to a given source file</b>`jest --findRelatedTests [path/to/source_file.js]`<br><b>Run test suites related to all uncommitted files</b>`jest --onlyChanged`<br><b>Watch files for changes and automatically re-run related tests</b>`jest --watch`<br><b>Display help</b>`jest --help`


title: TLDR
content:
<b>Analyze a heap dump (from jmap), view via HTTP on port 7000</b>`jhat [dump_file.bin]`<br><b>Analyze a heap dump, specifying an alternate port for the HTTP server</b>`jhat [[-p|-port]] [port] [dump_file.bin]`<br><b>Analyze a dump letting jhat use up to 8 GB RAM (2-4x dump size recommended)</b>`jhat -J-mx8G [dump_file.bin]`


title: TLDR
content:
<b>Initialize a project</b>`jigsaw init`<br><b>Initialize a project using a starter template</b>`jigsaw init [template_name]`<br><b>Build the site for development</b>`jigsaw build`<br><b>Preview the site from the "build_local" directory</b>`jigsaw serve`<br><b>Build the site for production</b>`jigsaw build production`<br><b>Preview the site from the "build_production" directory</b>`jigsaw serve [build_production]`


title: TLDR
content:
<b>Optimise a set of JPEG images, retaining all associated data</b>`jpegoptim [image1.jpeg image2.jpeg image3.jpeg ...]`<br><b>Optimise JPEG images, stripping all non-essential data</b>`jpegoptim [[-s|--strip-all]] [image1.jpeg image2.jpeg image3.jpeg ...]`<br><b>Force the output images to be progressive</b>`jpegoptim --all-progressive [image1.jpeg image2.jpeg image3.jpeg ...]`<br><b>Force the output images to have a fixed maximum filesize</b>`jpegoptim [[-S|--size]] [250k] [image1.jpeg image2.jpeg image3.jpeg ...]`


title: TLDR
content:
<b>Insert a new entry with your editor</b>`jrnl`<br><b>Quickly insert a new entry</b>`jrnl [today at 3am]: [title]. [content]`<br><b>View the last ten entries</b>`jrnl -n [10]`<br><b>View everything that happened from the start of last year to the start of last march</b>`jrnl -from "[last year]" -until [march]`<br><b>Edit all entries tagged with "texas" and "history"</b>`jrnl [@texas] -and [@history] --edit`


title: TLDR
content:
<b>Convert JSON5 stdin to JSON stdout</b>`echo [input] | json5`<br><b>Convert a JSON5 file to JSON and output to stdout</b>`json5 [path/to/input_file.json5]`<br><b>Convert a JSON5 file to the specified JSON file</b>`json5 [path/to/input_file.json5] --out-file [path/to/output_file.json]`<br><b>Validate a JSON5 file</b>`json5 [path/to/input_file.json5] --validate`<br><b>Specify the number of spaces to indent by (or "t" for tabs)</b>`json5 --space [indent_amount]`<br><b>Display help</b>`json5 --help`


title: TLDR
content:
<b>List all JVM processes</b>`jps`<br><b>List all JVM processes with only PID</b>`jps -q`<br><b>Display the arguments passed to the processes</b>`jps -m`<br><b>Display the full package name of all processes</b>`jps -l`<br><b>Display the arguments passed to the JVM</b>`jps -v`


title: TLDR
content:
<b>Start a Jupyter notebook server in the current directory</b>`jupyter notebook`<br><b>Open a specific Jupyter notebook</b>`jupyter notebook [example.ipynb]`<br><b>Export a specific Jupyter notebook into another format</b>`jupyter nbconvert --to [html|markdown|pdf|script] [example.ipynb]`<br><b>Start a server on a specific port</b>`jupyter notebook --port [port]`<br><b>List currently running notebook servers</b>`jupyter notebook list`<br><b>Stop the currently running server</b>`jupyter notebook stop`<br><b>Start JupyterLab, if installed, in the current directory</b>`jupyter lab`


title: TLDR
content:
<b>Run load test locally</b>`k6 run [script.js]`<br><b>Run load test locally with a given number of virtual users and duration</b>`k6 run [[-u|--vus]] [10] [[-d|--duration]] [30s] [script.js]`<br><b>Run load test locally with a given environment variable</b>`k6 run [[-e|--env]] [HOSTNAME=example.com] [script.js]`<br><b>Run load test locally using InfluxDB to store results</b>`k6 run [[-o|--out]] influxdb=[http://localhost:8086/k6db] [script.js]`<br><b>Run load test locally and discard response bodies (significantly faster)</b>`k6 run --discard-response-bodies [script.js]`<br><b>Run load test locally using the base JavaScript compatibility mode (significantly faster)</b>`k6 run --compatibility-mode=base [script.js]`<br><b>Log in to cloud service using secret token</b>`k6 login cloud --token [secret]`<br><b>Run load test on cloud infrastructure</b>`k6 cloud [script.js]`


title: TLDR
content:
<b>Run all specifications in the "spec" directory</b>`kahlan`<br><b>Run specifications using a specific configuration file</b>`kahlan --config=[path/to/configuration_file]`<br><b>Run specifications and output using a reporter</b>`kahlan --reporter=[dot|bar|json|tap|verbose]`<br><b>Run specifications with code coverage (detail can be between 0 and 4)</b>`kahlan --coverage=[detail_level]`


title: TLDR
content:
<b>Open a file and enter normal mode, to execute commands</b>`kak [path/to/file]`<br><b>Enter insert mode from normal mode, to write text into the file</b>`<i>`<br><b>Escape insert mode, to go back to normal mode</b>`<Esc>`<br><b>Replace all instances of "foo" in the current file with "bar"</b>`%s[foo]<Enter>c[bar]<Esc>`<br><b>Unselect all secondary selections, and keep only the main one</b>`<Space>`<br><b>Search for numbers and select the first two</b>`/\d+<Enter>N`<br><b>Insert the contents of a file</b>`<!>cat [path/to/file]<Enter>`<br><b>Save the current file</b>`<:>w<Enter>`


title: TLDR
content:
<b>Start KeePass 2, opening the most recently opened password database</b>`keepass2`<br><b>Start KeePass 2, opening a specific password database</b>`keepass2 [path/to/database.kbdx]`<br><b>Use a specific key file to open a password database</b>`keepass2 [path/to/database.kbdx] -keyfile:[path/to/key_file.key]`


title: TLDR
content:
<b>Load a new kernel</b>`kexec [[-l|--load]] [path/to/kernel] --initrd=[path/to/initrd] --command-line=[arguments]`<br><b>Load a new kernel with current boot parameters</b>`kexec [[-l|--load]] [path/to/kernel] --initrd=[path/to/initrd] --reuse-cmdline`<br><b>Execute a currently loaded kernel</b>`kexec [[-e|--exec]]`<br><b>Unload current kexec target kernel</b>`kexec [[-u|--unload]]`


title: TLDR
content:
<b>Follow another user</b>`keybase follow [username]`<br><b>Add a new proof</b>`keybase prove [service] [service_username]`<br><b>Sign a file</b>`keybase sign [[-i|--infile]] [input_file] [[-o|--outfile]] [output_file]`<br><b>Verify a signed file</b>`keybase verify [[-i|--infile]] [input_file] [[-o|--outfile]] [output_file]`<br><b>Encrypt a file</b>`keybase encrypt [[-i|--infile]] [input_file] [[-o|--outfile]] [output_file] [receiver]`<br><b>Decrypt a file</b>`keybase decrypt [[-i|--infile]] [input_file] [[-o|--outfile]] [output_file]`<br><b>Revoke current device, log out, and delete local data</b>`keybase deprovision`


title: TLDR
content:
<b>Bootstrap a new node</b>`knife bootstrap [fqdn_or_ip]`<br><b>List all registered nodes</b>`knife node list`<br><b>Show a node</b>`knife node show [node_name]`<br><b>Edit a node</b>`knife node edit [node_name]`<br><b>Edit a role</b>`knife role edit [role_name]`<br><b>View a data bag</b>`knife data bag show [data_bag_name] [data_bag_item]`<br><b>Upload a local cookbook to the Chef server</b>`knife cookbook upload [cookbook_name]`


title: TLDR
content:
<b>Deploy a dockerized application to Kubernetes</b>`kompose up [[-f|--file]] [docker-compose.yml]`<br><b>Delete instantiated services/deployments from Kubernetes</b>`kompose down [[-f|--file]] [docker-compose.yml]`<br><b>Convert a docker-compose file into Kubernetes resources file</b>`kompose convert [[-f|--file]] [docker-compose.yml]`


title: TLDR
content:
<b>Create a cluster from the configuration specification</b>`kops create cluster [[-f|--filename]] [cluster_name.yaml]`<br><b>Create a new SSH public key</b>`kops create sshpublickey [key_name] [[-i|--ssh-public-key]] [~/.ssh/id_rsa.pub]`<br><b>Export the cluster configuration to the ~/.kube/config file</b>`kops export kubecfg [cluster_name]`<br><b>Get the cluster configuration as YAML</b>`kops get cluster [cluster_name] [[-o|--output]] yaml`<br><b>Delete a cluster</b>`kops delete cluster [cluster_name] [[-y|--yes]]`<br><b>Validate a cluster</b>`kops validate cluster [cluster_name] --wait [wait_time_until_ready] --count [num_required_validations]`


title: TLDR
content:
<b>Run a jar file</b>`kotlin [filename.jar]`<br><b>Display Kotlin and JVM version</b>`kotlin -version`


title: TLDR
content:
<b>Start an interactive shell session</b>`ksh`<br><b>Execute specific [c]ommands</b>`ksh -c "[echo 'ksh is executed']"`<br><b>Execute a specific script</b>`ksh [path/to/script.ksh]`<br><b>Check a specific script for syntax errors without executing it</b>`ksh -n [path/to/script.ksh]`<br><b>E[x]ecute a specific script, printing each command in the script before executing it</b>`ksh -x [path/to/script.ksh]`


title: TLDR
content:
<b>List nodes including the total CPU and Memory resource requests and limits</b>`kube-capacity`<br><b>Include pods</b>`kube-capacity [[-p|--pods]]`<br><b>Include utilization</b>`kube-capacity [[-u|--util]]`


title: TLDR
content:
<b>Get pod details (from current namespace)</b>`findpod`<br><b>Get pod details (from all namespaces)</b>`findpod -a`<br><b>Describe a pod</b>`describepod`<br><b>Tail pod logs</b>`tailpod`<br><b>Exec into a pod's container</b>`execpod [shell_command]`<br><b>Port-forward a pod</b>`pfpod [port_number]`


title: TLDR
content:
<b>Create a Kubernetes control plane</b>`kubeadm init`<br><b>Bootstrap a Kubernetes worker node and join it to a cluster</b>`kubeadm join --token [token]`<br><b>Create a new bootstrap token with a TTL of 12 hours</b>`kubeadm token create --ttl [12h0m0s]`<br><b>Check if the Kubernetes cluster is upgradeable and which versions are available</b>`kubeadm upgrade plan`<br><b>Upgrade Kubernetes cluster to a specified version</b>`kubeadm upgrade apply [version]`<br><b>View the kubeadm ConfigMap containing the cluster's configuration</b>`kubeadm config view`<br><b>Revert changes made to the host by 'kubeadm init' or 'kubeadm join'</b>`kubeadm reset`


title: TLDR
content:
<b>List information about a resource with more details</b>`kubectl get [pod|service|deployment|ingress|...] [[-o|--output]] wide`<br><b>Update specified pod with the label unhealthy and the value true</b>`kubectl label pods [name] unhealthy=true`<br><b>List all resources with different types</b>`kubectl get all`<br><b>Display resource (CPU/Memory/Storage) usage of nodes or pods</b>`kubectl top [pods|node]`<br><b>Print the address of the master and cluster services</b>`kubectl cluster-info`<br><b>Display an explanation of a specific field</b>`kubectl explain [pods.spec.containers]`<br><b>Print the logs for a container in a pod or specified resource</b>`kubectl logs [pod_name]`<br><b>Run command in an existing pod</b>`kubectl exec [pod_name] -- [ls /]`


title: TLDR
content:
<b>List the contexts</b>`kubectx`<br><b>Switch to a named context</b>`kubectx [name]`<br><b>Switch to the previous context</b>`kubectx -`<br><b>Rename a named context</b>`kubectx [alias]=[name]`<br><b>Show the current named context</b>`kubectx [[-c|--current]]`<br><b>Delete a named context</b>`kubectx -d [name]`


title: TLDR
content:
<b>List the namespaces</b>`kubens`<br><b>Change the active namespace</b>`kubens [name]`<br><b>Switch to the previous namespace</b>`kubens -`


title: TLDR
content:
<b>Tail the logs of multiple pods (whose name starts with "my_app") in one go</b>`kubetail [my_app]`<br><b>Tail only a specific container from multiple pods</b>`kubetail [my_app] [[-c|--container]] [my_container]`<br><b>To tail multiple containers from multiple pods</b>`kubetail [my_app] [[-c|--container]] [my_container_1] [[-c|--container]] [my_container_2]`<br><b>To tail multiple applications at the same time separate them by comma</b>`kubetail [my_app_1],[my_app_2]`


title: TLDR
content:
<b>Set up the server with Laravel dependencies using the default PHP version</b>`larasail setup`<br><b>Set up the server with Laravel dependencies using a specific PHP version</b>`larasail setup [php71]`<br><b>Add a new Laravel site</b>`larasail host [domain] [path/to/site_directory]`<br><b>Retrieve the Larasail user password</b>`larasail pass`<br><b>Retrieve the Larasail MySQL password</b>`larasail mysqlpass`


title: TLDR
content:
<b>Create a new Laravel application</b>`laravel new [name]`<br><b>Use the latest development release</b>`laravel new [name] --dev`<br><b>Overwrite if the directory already exists</b>`laravel new [name] --force`<br><b>Install the Laravel Jetstream scaffolding</b>`laravel new [name] --jet`<br><b>Install the Laravel Jetstream scaffolding with a specific stack</b>`laravel new [name] --jet --stack [livewire|inertia]`<br><b>Install the Laravel Jetstream scaffolding with support for teams</b>`laravel new [name] --jet --teams`<br><b>List the available installer commands</b>`laravel list`


title: TLDR
content:
<b>Compile a DVI (Device Independent file) document from every source</b>`latexmk`<br><b>Compile a DVI document from a specific source file</b>`latexmk [path/to/source.tex]`<br><b>Compile a PDF document</b>`latexmk -pdf [path/to/source.tex]`<br><b>Open the document in a viewer and continuously update it whenever source files change</b>`latexmk -pvc [path/to/source.tex]`<br><b>Force the generation of a document even if there are errors</b>`latexmk -f [path/to/source.tex]`<br><b>Clean up temporary TEX files created for a specific TEX file</b>`latexmk -c [path/to/source.tex]`<br><b>Clean up all temporary TEX files in the current directory</b>`latexmk -c`


title: TLDR
content:
<b>List last logged in users</b>`sudo lastb`<br><b>List all last logged in users since a given time</b>`sudo lastb [[-s|--since]] [YYYY-MM-DD]`<br><b>List all last logged in users until a given time</b>`sudo lastb [[-t|--until]] [YYYY-MM-DD]`<br><b>List all logged in users at a specific time</b>`sudo lastb [[-p|--present]] [hh:mm]`<br><b>List all last logged in users and translate the IP into a hostname</b>`sudo lastb [[-d|--dns]]`


title: TLDR
content:
<b>Set a reminder at a given time</b>`leave [time_to_leave]`<br><b>Set a reminder to leave at noon</b>`leave [1200]`<br><b>Set a reminder in a specific amount of time</b>`leave +[amount_of_time]`<br><b>Set a reminder to leave in 4 hours and 4 minutes</b>`leave +[0404]`


title: TLDR
content:
<b>Transpile using one or more comma-separated transformations</b>`lebab --transform [transformation1,transformation2,...]`<br><b>Transpile a file to stdout</b>`lebab [path/to/input_file]`<br><b>Transpile a file to the specified output file</b>`lebab [path/to/input_file] --out-file [path/to/output_file]`<br><b>Replace all .js files in-place in the specified directory, glob or file</b>`lebab --replace [directory|glob|file]`<br><b>Display help</b>`lebab --help`


title: TLDR
content:
<b>Generate scaffolding for a new project based on a template</b>`lein new [template_name] [project_name]`<br><b>Start a REPL session either with the project or standalone</b>`lein repl`<br><b>Run the project's -main function with optional args</b>`lein run [args]`<br><b>Run the project's tests</b>`lein test`<br><b>Package up the project files and all its dependencies into a jar file</b>`lein uberjar`


title: TLDR
content:
<b>Display shared library dependencies of a binary</b>`ldd [path/to/binary]`<br><b>Display all information about dependencies</b>`ldd [[-v|--verbose]] [path/to/binary]`<br><b>Display unused direct dependencies</b>`ldd [[-u|--unused]] [path/to/binary]`<br><b>Report missing data objects and perform data relocations</b>`ldd [[-d|--data-relocs]] [path/to/binary]`<br><b>Report missing data objects and functions, and perform relocations for both</b>`ldd [[-r|--function-relocs]] [path/to/binary]`


title: TLDR
content:
<b>Print a license to stdout, using the defaults (auto-detected author name, and current year)</b>`license [license_name]`<br><b>Generate a license and save it to a file</b>`license -o [path/to/file] [license_name]`<br><b>List all available licenses</b>`license ls`<br><b>Generate a license with custom author name and year</b>`license --name [author] --year [release_year] [license_name]`


title: TLDR
content:
<b>Generate a new public/private key pair</b>`light-arionum-cli`<br><b>Display the balance of the current address</b>`light-arionum-cli balance`<br><b>Display the balance of the specified address</b>`light-arionum-cli balance [address]`<br><b>Send a transaction with an optional message</b>`light-arionum-cli send [address] [value] [optional_message]`<br><b>Export the current wallet information</b>`light-arionum-cli export`<br><b>Display information about the current block</b>`light-arionum-cli block`<br><b>Display information about the current address' transactions</b>`light-arionum-cli transactions`<br><b>Display information about a specific transaction</b>`light-arionum-cli transaction [transaction_id]`


title: TLDR
content:
<b>Get the current backlight value in percent</b>`light`<br><b>Set the backlight value to 50 percent</b>`light -S [50]`<br><b>Reduce 20 percent from the current backlight value</b>`light -U [20]`<br><b>Add 20 percent to the current backlight value</b>`light -A [20]`


title: TLDR
content:
<b>Serve an index.html file and reload on changes</b>`live-server`<br><b>Specify a port (default is 8080) from which to serve a file</b>`live-server --port=[8081]`<br><b>Specify a given file to serve</b>`live-server --open=[about.html]`<br><b>Proxy all requests for ROUTE to URL</b>`live-server --proxy=[/]:[http:localhost:3000]`


title: TLDR
content:
<b>Debug an executable</b>`lldb [executable]`<br><b>Attach lldb to a running process with a given PID</b>`lldb -p [pid]`<br><b>Wait for a new process to launch with a given name, and attach to it</b>`lldb -w -n [process_name]`


title: TLDR
content:
<b>Print lines of code in the current directory</b>`loc`<br><b>Print lines of code in the target directory</b>`loc [path/to/directory]`<br><b>Print lines of code with stats for individual files</b>`loc --files`<br><b>Print lines of code without .gitignore (etc.) files (e.g. two -u flags will additionally count hidden files and dirs)</b>`loc [[-u|--unrestricted]]`


title: TLDR
content:
<b>Load-test "example.com" with web interface using locustfile.py</b>`locust --host=[http://example.com]`<br><b>Use a different test file</b>`locust --locustfile=[test_file.py] --host=[http://example.com]`<br><b>Run test without web interface, spawning 1 user a second until there are 100 users</b>`locust --no-web --clients=[100] --hatch-rate=[1] --host=[http://example.com]`<br><b>Start Locust in master mode</b>`locust --master --host=[http://example.com]`<br><b>Connect Locust slave to master</b>`locust --slave --host=[http://example.com]`<br><b>Connect Locust slave to master on a different machine</b>`locust --slave --master-host=[master_hostname] --host=[http://example.com]`


title: TLDR
content:
<b>Check validity of a Logstash configuration</b>`logstash --configtest --config [logstash_config.conf]`<br><b>Run Logstash using configuration</b>`sudo logstash --config [logstash_config.conf]`<br><b>Run Logstash with the most basic inline configuration string</b>`sudo logstash -e 'input {} filter {} output {}'`


title: TLDR
content:
<b>Analyze logs for a range of dates at a certain level of detail</b>`logwatch --range [yesterday|today|all|help] --detail [low|medium|others]'`<br><b>Restrict report to only include information for a selected service</b>`logwatch --range [all] --service [apache|pam_unix|...]`


title: TLDR
content:
<b>Print the specified number of words</b>`lorem -n [20]`<br><b>Print 10 lines of Goethe's Faust</b>`lorem -l [10] --faust`<br><b>Print 5 sentences of Poe's Raven</b>`lorem -s [5] --raven`<br><b>Print 40 random characters from Boccaccio's Decameron</b>`lorem --randomize -c [40] --decamerone`


title: TLDR
content:
<b>Log in to your LastPass account, by entering your master password when prompted</b>`lpass login [username]`<br><b>Show login status</b>`lpass status`<br><b>List all sites grouped by category</b>`lpass ls`<br><b>Generate a new password for gmail.com with the identifier myinbox and add to LastPass</b>`lpass generate --username [username] --url [gmail.com] [myinbox] [password_length]`<br><b>Show password for a specified entry</b>`lpass show [myinbox] --password`


title: TLDR
content:
<b>List printers present on the machine and whether they are enabled for printing</b>`lpstat -p`<br><b>Show the default printer</b>`lpstat -d`<br><b>Display all available status information</b>`lpstat -t`<br><b>List print jobs queued by a specific user</b>`lpstat -u [user]`


title: TLDR
content:
<b>Print all available information</b>`lsb_release [[-a|--all]]`<br><b>Print a description (usually the full name) of the operating system</b>`lsb_release [[-d|--description]]`<br><b>Print only the operating system name (ID), in short format (omitting the field name)</b>`lsb_release [[-is|--id --short]]`<br><b>Print the release number and codename of the distribution, in short format</b>`lsb_release [[-rcs|--release --codename --short]]`


title: TLDR
content:
<b>List all SCSI devices</b>`lsscsi`<br><b>List all SCSI devices with detailed attributes</b>`lsscsi [[-L|--list]]`<br><b>List all SCSI devices with human-readable disk capacity</b>`lsscsi [[-s|--size]]`


title: TLDR
content:
<b>Find the processes that have a given file open</b>`lsof [path/to/file]`<br><b>Find the process that opened a local internet port</b>`lsof -i :[port]`<br><b>Only output the process ID (PID)</b>`lsof -t [path/to/file]`<br><b>List files opened by the given user</b>`lsof -u [username]`<br><b>List files opened by the given command or process</b>`lsof -c [process_or_command_name]`<br><b>List files opened by a specific process, given its PID</b>`lsof -p [PID]`<br><b>List open files in a directory</b>`lsof +D [path/to/directory]`<br><b>Find the process that is listening on a local IPv6 TCP port and don't convert network or port numbers</b>`lsof -i6TCP:[port] -sTCP:LISTEN -n -P`


title: TLDR
content:
<b>Display information about all CPUs</b>`lscpu`<br><b>Display information in a table</b>`lscpu [[-e|--extended]]`<br><b>Display only information about online CPUs in a table</b>`lscpu [[-e|--extended]] [[-b|--online]]`<br><b>Display only information about offline CPUs in a table</b>`lscpu [[-e|--extended]] [[-c|--offline]]`<br><b>Display details about CPU caches</b>`lscpu [[-C|--caches]]`<br><b>Display information in JSON format</b>`lscpu [[-J|--json]]`


title: TLDR
content:
<b>Create a new Lumen application</b>`lumen new [application_name]`<br><b>List the available installer commands</b>`lumen list`


title: TLDR
content:
<b>List local containers matching a string. Omit the string to list all local containers</b>`lxc list [match_string]`<br><b>List images matching a string. Omit the string to list all images</b>`lxc image list [[remote]:][match_string]`<br><b>Create a new container from an image</b>`lxc init [[remote]:][image] [container]`<br><b>Start a container</b>`lxc start [[remote]:][container]`<br><b>Stop a container</b>`lxc stop [[remote]:][container]`<br><b>Show detailed info about a container</b>`lxc info [[remote]:][container]`<br><b>Take a snapshot of a container</b>`lxc snapshot [[remote]:][container] [snapshot]`<br><b>Execute a specific command inside a container</b>`lxc exec [[remote]:][container] [command]`


title: TLDR
content:
<b>Produce three tab-separated columns: lines only in first file, lines only in second file and common lines</b>`comm [file1] [file2]`<br><b>Print only lines common to both files</b>`comm -12 [file1] [file2]`<br><b>Print only lines common to both files, reading one file from stdin</b>`cat [file1] | comm -12 - [file2]`<br><b>Get lines only found in first file, saving the result to a third file</b>`comm -23 [file1] [file2] > [file1_only]`<br><b>Print lines only found in second file, when the files aren't sorted</b>`comm -13 <(sort [file1]) <(sort [file2])`


title: TLDR
content:
<b>Enable one or more modules</b>`magento module:enable [module1 module2 ...]`<br><b>Disable one or more modules</b>`magento module:disable [module1 module2 ...]`<br><b>Update the database after enabling modules</b>`magento setup:upgrade`<br><b>Update code and dependency injection configuration</b>`magento setup:di:compile`<br><b>Deploy static assets</b>`magento setup:static-content:deploy`<br><b>Enable maintenance mode</b>`magento maintenance:enable`<br><b>Disable maintenance mode</b>`magento maintenance:disable`<br><b>List all available commands</b>`magento list`


title: TLDR
content:
<b>Compile a NSIS script</b>`makensis [path/to/file.nsi]`<br><b>Compile a NSIS script in strict mode (treat warnings as errors)</b>`makensis -WX [path/to/file.nsi]`<br><b>Display help for a specific command</b>`makensis -CMDHELP [command]`


title: TLDR
content:
<b>List supported file formats</b>`mat2 --list`<br><b>Remove metadata from a file</b>`mat2 [path/to/file]`<br><b>Remove metadata from a file and print detailed output to the console</b>`mat2 --verbose [path/to/file]`<br><b>Show metadata in a file without removing it</b>`mat2 --show [path/to/file]`<br><b>Partially remove metadata from a file</b>`mat2 --lightweight [path/to/file]`<br><b>Remove metadata from a file in place, without creating a backup</b>`mat2 --inplace [path/to/file]`


title: TLDR
content:
<b>Launch a presentation in the terminal from a Markdown file</b>`mdp [presentation.md]`<br><b>Disable fading transitions</b>`mdp [[-f|--nofade]] [presentation.md]`<br><b>Invert font colors to use in terminals with light background</b>`mdp [[-i|--invert]] [presentation.md]`<br><b>Disable transparency in transparent terminals</b>`mdp [[-t|--notrans]] [presentation.md]`


title: TLDR
content:
<b>Display metadata for a given file in the console</b>`mediainfo [file]`<br><b>Store the output to a given file along with displaying in the console</b>`mediainfo --Logfile=[out.txt] [file]`<br><b>List metadata attributes that can be extracted</b>`mediainfo --Info-Parameters`


title: TLDR
content:
<b>Start meld</b>`meld`<br><b>Compare 2 files</b>`meld [path/to/file_1] [path/to/file_2]`<br><b>Compare 2 directories</b>`meld [path/to/directory_1] [path/to/directory_2]`<br><b>Compare 3 files</b>`meld [path/to/file_1] [path/to/file_2] [path/to/file_3]`<br><b>Open a comparison as a new tab in a pre-existing meld instance</b>`meld --newtab [path/to/file_1] [path/to/file_2]`<br><b>Compare multiple sets of files</b>`meld --diff [path/to/file_1] [path/to/file_2] --diff [path/to/file_3] [path/to/file_4]`


title: TLDR
content:
<b>Convert an STL file to an OBJ file</b>`meshlabserver -i [input.stl] -o [output.obj]`<br><b>Convert a WRL file to a OFF file, including the vertex and face normals in the output mesh</b>`meshlabserver -i [input.wrl] -o [output.off] -om vn fn`<br><b>Dump a list of all the available processing filters into a file</b>`meshlabserver -d [path/to/file]`<br><b>Process a 3D file using a filter script created in the MeshLab GUI (Filters > Show current filter script > Save Script)</b>`meshlabserver -i [input.ply] -o [output.ply] -s [filter_script.mlx]`<br><b>Process a 3D file using a filter script, writing the output of the filters into a log file</b>`meshlabserver -i [input.x3d] -o [output.x3d] -s [filter_script.mlx] -l [logfile]`


title: TLDR
content:
<b>Run a meteor project from its root directory in development mode</b>`meteor`<br><b>Create a project under the given directory</b>`meteor create [path/to/directory]`<br><b>Display the list of packages the project is currently using</b>`meteor list`<br><b>Add a package to the project</b>`meteor add [package]`<br><b>Remove a package from the project</b>`meteor remove [package]`<br><b>Create a production build of the project as a tarball under the given directory</b>`meteor build [path/to/directory]`


title: TLDR
content:
<b>Open a file</b>`micro [path/to/file]`<br><b>Save a file</b>`<Ctrl s>`<br><b>Cut the entire line</b>`<Ctrl k>`<br><b>Search for a pattern in the file (press <Ctrl n>/<Ctrl p> to go to next/previous match)</b>`<Ctrl f>[pattern]<Enter>`<br><b>Execute a command</b>`<Ctrl e>[command]<Enter>`<br><b>Perform a substitution in the whole file</b>`<Ctrl e>replaceall "[pattern]" "[replacement]"<Enter>`<br><b>Quit</b>`<Ctrl q>`


title: TLDR
content:
<b>Open a serial port using the specified baud rate</b>`microcom [[-p|--port]] [/dev/ttyXYZ] [[-s|--speed]] [baud_rate]`<br><b>Establish a telnet connection to the specified host</b>`microcom [[-t|--telnet]] [hostname]:[port]`


title: TLDR
content:
<b>Start Minetest in client mode</b>`minetest`<br><b>Start Minetest in server mode by hosting a specific world</b>`minetest --server --world [name]`<br><b>Write logs to a specific file</b>`minetest --logfile [path/to/file]`<br><b>Only write errors to the console</b>`minetest --quiet`


title: TLDR
content:
<b>Start the server</b>`minetestserver`<br><b>List available worlds</b>`minetestserver --world list`<br><b>Load the specified world</b>`minetestserver --world [world_name]`<br><b>List the available game IDs</b>`minetestserver --gameid list`<br><b>Use the specified game</b>`minetestserver --gameid [game_id]`<br><b>Listen on a specific port</b>`minetestserver --port [34567]`<br><b>Migrate to a different data backend</b>`minetestserver --migrate [sqlite3|leveldb|redis]`<br><b>Start an interactive terminal after starting the server</b>`minetestserver --terminal`


title: TLDR
content:
<b>Start the cluster</b>`minikube start`<br><b>Get the IP address of the cluster</b>`minikube ip`<br><b>Access a service named my_service exposed via a node port and get the URL</b>`minikube service [my_service] --url`<br><b>Open the Kubernetes dashboard in a browser</b>`minikube dashboard`<br><b>Stop the running cluster</b>`minikube stop`<br><b>Delete the cluster</b>`minikube delete`<br><b>Connect to LoadBalancer services</b>`minikube tunnel`


title: TLDR
content:
<b>Start a proxy and save all output to a file</b>`mitmdump [[-w|--wfile]] [path/to/file]`<br><b>Filter a saved traffic file to just POST requests</b>`mitmdump [[-nr|--no-server --read-flows]] [input_filename] [[-w|--wfile]] [output_filename] "[~m post]"`<br><b>Replay a saved traffic file</b>`mitmdump [[-nc|--no-server --client-replay]] [path/to/file]`<br><b>Intercept DNS traffic (starts an intercepting DNS server on 127.0.0.1:53)</b>`sudo mitmdump [[-m|--mode]] dns`


title: TLDR
content:
<b>Execute a particular file</b>`mix run [my_script.exs]`<br><b>Create a new project</b>`mix new [project_name]`<br><b>Compile project</b>`mix compile`<br><b>Run project tests</b>`mix test`<br><b>Display help</b>`mix help`


title: TLDR
content:
<b>Install the local CA in the system trust store</b>`mkcert -install`<br><b>Generate certificate and private key for a given domain</b>`mkcert [example.org]`<br><b>Generate certificate and private key for multiple domains</b>`mkcert [example.org] [myapp.dev] [127.0.0.1]`<br><b>Generate wildcard certificate and private key for a given domain and its subdomains</b>`mkcert "[*.example.it]"`<br><b>Uninstall the local CA</b>`mkcert -uninstall`


title: TLDR
content:
<b>Create a named pipe at a given path</b>`mkfifo [path/to/pipe]`<br><b>Send data through a named pipe and send the command to the background</b>`echo "[Hello World]" > [path/to/pipe] &`<br><b>Receive data through a named pipe</b>`cat [path/to/pipe]`<br><b>Share your terminal session in real-time</b>`mkfifo [path/to/pipe]; script [[-f|--flush]] [path/to/pipe]`


title: TLDR
content:
<b>Create an ISO from a directory</b>`mkisofs -o [filename.iso] [path/to/source_directory]`<br><b>Set the disc label when creating an ISO</b>`mkisofs -o [filename.iso] -V "[label_name]" [path/to/source_directory]`


title: TLDR
content:
<b>Pretty-print a CSV file in a tabular format</b>`mlr --icsv --opprint cat [example.csv]`<br><b>Receive JSON data and pretty print the output</b>`[echo '{"key":"value"}'] | mlr --ijson --opprint cat`<br><b>Sort alphabetically on a field</b>`mlr --icsv --opprint sort -f [field] [example.csv]`<br><b>Sort in descending numerical order on a field</b>`mlr --icsv --opprint sort -nr [field] [example.csv]`<br><b>Convert CSV to JSON, performing calculations and display those calculations</b>`mlr --icsv --ojson put '$[newField1] = $[oldFieldA]/$[oldFieldB]' [example.csv]`<br><b>Receive JSON and format the output as vertical JSON</b>`[echo '{"key1":"value1", "key2":"value2"}'] | mlr --ijson --ojson --jvstack cat`<br><b>Filter lines of a compressed CSV file treating numbers as [S]trings</b>`mlr --prepipe 'gunzip' [[-c|--csv]] filter [[-S|--infer-none]] '$[fieldName] =~ "[regex]"' [example.csv.gz]`


title: TLDR
content:
<b>Rename all files with a certain extension to a different extension</b>`mmv "*[.old_extension]" "#1[.new_extension]"`<br><b>Copy report6part4.txt to ./french/rapport6partie4.txt along with all similarly named files</b>`mmv [[-c|--copy]] "[report*part*.txt]" "[./french/rapport#1partie#2.txt]"`<br><b>Append all .txt files into one file</b>`mmv [[-a|--append]] "[*.txt]" "[all.txt]"`<br><b>Convert dates in filenames from "M-D-Y" format to "D-M-Y" format</b>`mmv "[[0-1][0-9]-[0-3][0-9]-[0-9][0-9][0-9][0-9].txt]" "[#3#4-#1#2-#5#6#7#8.txt]"`


title: TLDR
content:
<b>Run tests with default configuration or as configured in mocha.opts</b>`mocha`<br><b>Run tests contained at a specific location</b>`mocha [path/to/test_directory]`<br><b>Run tests that match a specific grep pattern</b>`mocha --grep [regex]`<br><b>Run tests on changes to JavaScript files in the current directory and once initially</b>`mocha --watch`<br><b>Run tests with a specific reporter</b>`mocha --reporter [reporter]`


title: TLDR
content:
<b>Create a new Ansible role</b>`molecule init role --role-name [role_name]`<br><b>Run tests</b>`molecule test`<br><b>Start the instance</b>`molecule create`<br><b>Configure the instance</b>`molecule converge`<br><b>List scenarios of the instance</b>`molecule matrix converge`<br><b>Log in into the instance</b>`molecule login`


title: TLDR
content:
<b>Specify the storage directory (default: /data/db on Linux and macOS, C:\data\db on Windows)</b>`mongod --dbpath [path/to/directory]`<br><b>Specify a configuration file</b>`mongod --config [path/to/file]`<br><b>Specify the port to listen on (default: 27017)</b>`mongod --port [port]`<br><b>Specify the database profiling level. 0 is off, 1 is only slow operations, 2 is all (default: 0)</b>`mongod --profile [0|1|2]`


title: TLDR
content:
<b>Create a dump of all databases (this will place the files inside a directory called "dump")</b>`mongodump`<br><b>Specify an output location for the dump</b>`mongodump [[-o|--out]] [path/to/directory]`<br><b>Create a dump of a given database</b>`mongodump [[-d|--db]] [database_name]`<br><b>Create a dump of a given collection within a given database</b>`mongodump [[-c|--collection]] [collection_name] [[-d|--db]] [database_name]`<br><b>Connect to a given host running on a given port, and create a dump</b>`mongodump [[-h|--host]] [host] --port [port]`<br><b>Create a dump of a given database with a given username; user will be prompted for password</b>`mongodump [[-u|--username]] [username] [database] [[-p|--password]]`<br><b>Create a dump from a specific instance; host, user, password and database will be defined in the connection string</b>`mongodump --uri [connection_string]`


title: TLDR
content:
<b>Import a BSON data dump from a directory to a MongoDB database</b>`mongorestore --db [database_name] [path/to/directory]`<br><b>Import a BSON data dump from a directory to a given database in a MongoDB server host, running at a given port, with user authentication (user will be prompted for password)</b>`mongorestore --host [database_host:port] --db [database_name] --username [username] [path/to/directory] --password`<br><b>Import a collection from a BSON file to a MongoDB database</b>`mongorestore --db [database_name] [path/to/file]`<br><b>Import a collection from a BSON file to a given database in a MongoDB server host, running at a given port, with user authentication (user will be prompted for password)</b>`mongorestore --host [database_host:port] --db [database_name] --username [username] [path/to/file] --password`


title: TLDR
content:
<b>Start MonoDevelop</b>`monodevelop`<br><b>Open a specific file</b>`monodevelop [path/to/file]`<br><b>Open a specific file with the caret at a specific position</b>`monodevelop [path/to/file];[line_number];[column_number]`<br><b>Force opening a new window instead of switching to an existing one</b>`monodevelop --new-window`<br><b>Disable redirection of stdout and stderr to a log file</b>`monodevelop --no-redirect`<br><b>Enable performance monitoring</b>`monodevelop --perf-log`


title: TLDR
content:
<b>Disassemble an assembly to textual CIL</b>`monodis [path/to/assembly.exe]`<br><b>Save the output to a file</b>`monodis --output=[path/to/output.il] [path/to/assembly.exe]`<br><b>Show information about an assembly</b>`monodis --assembly [path/to/assembly.dll]`<br><b>List the references of an assembly</b>`monodis --assemblyref [path/to/assembly.exe]`<br><b>List all the methods in an assembly</b>`monodis --method [path/to/assembly.exe]`<br><b>List resources embedded within an assembly</b>`monodis --manifest [path/to/assembly.dll]`<br><b>Extract all the embedded resources to the current directory</b>`monodis --mresources [path/to/assembly.dll]`


title: TLDR
content:
<b>Invoke moro without parameters, to set the current time as the start of the working day</b>`moro`<br><b>Specify a custom time for the start of the working day</b>`moro hi [09:30]`<br><b>Invoke moro without parameters a second time, to set the current time at the end of the working day</b>`moro`<br><b>Specify a custom time for the end of the working day</b>`moro bye [17:30]`<br><b>Add a note on the current working day</b>`moro note [3 hours on project Foo]`<br><b>Show a report of time logs and notes for the current working day</b>`moro report`<br><b>Show a report of time logs and notes for all working days on record</b>`moro report --all`


title: TLDR
content:
<b>Connect to a remote server</b>`mosh [username]@[remote_host]`<br><b>Connect to a remote server with a specific identity (private key)</b>`mosh --ssh="ssh -i [path/to/key_file]" [username]@[remote_host]`<br><b>Connect to a remote server using a specific port</b>`mosh --ssh="ssh -p [2222]" [username]@[remote_host]`<br><b>Run a command on a remote server</b>`mosh [remote_host] -- [command -with -flags]`<br><b>Select Mosh UDP port (useful when remote_host is behind a NAT)</b>`mosh -p [124] [username]@[remote_host]`<br><b>Usage when mosh-server binary is outside standard path</b>`mosh --server=[path/to/mosh-server] [remote_host]`


title: TLDR
content:
<b>Start Mosquitto</b>`mosquitto`<br><b>Specify a configuration file to use</b>`mosquitto [[-c|--config-file]] [path/to/file.conf]`<br><b>Listen on a specific port</b>`mosquitto [[-p|--port]] [8883]`<br><b>Daemonize by forking into the background</b>`mosquitto [[-d|--daemon]]`


title: TLDR
content:
<b>Add a new user to a password file (will prompt to enter the password)</b>`mosquitto_passwd [path/to/password_file] [username]`<br><b>Create the password file if it doesn't already exist</b>`mosquitto_passwd -c [path/to/password_file] [username]`<br><b>Delete the specified username instead</b>`mosquitto_passwd -D [path/to/password_file] [username]`<br><b>Upgrade an old plain-text password file to a hashed password file</b>`mosquitto_passwd -U [path/to/password_file]`


title: TLDR
content:
<b>Publish a temperature value of 32 on the topic sensors/temperature to 192.168.1.1 (defaults to localhost) with Quality of Service (QoS) set to 1</b>`mosquitto_pub [[-h|--host]] [192.168.1.1] [[-t|--topic]] [sensors/temperature] [[-m|--message]] [32] [[-q|--qos]] [1]`<br><b>Publish timestamp and temperature data on the topic sensors/temperature to a remote host on a non-standard port</b>`mosquitto_pub [[-h|--host]] [192.168.1.1] [[-p|--port]] [1885] [[-t|--topic]] [sensors/temperature] [[-m|--message]] "[1266193804 32]"`<br><b>Publish light switch status and retain the message on the topic switches/kitchen_lights/status to a remote host because there may be a long period of time between light switch events</b>`mosquitto_pub [[-r|--retain]] [[-h|--host]] "[iot.eclipse.org]" [[-t|--topic]] [switches/kitchen_lights/status] [[-m|--message]] "[on]"`<br><b>Send the contents of a file (data.txt) as a message and publish it to sensors/temperature topic</b>`mosquitto_pub [[-t|--topic]] [sensors/temperature] [[-f|--file]] [data.txt]`<br><b>Send the contents of a file (data.txt), by reading from stdin and send the entire input as a message and publish it to sensors/temperature topic</b>`mosquitto_pub < [data.txt] [[-t|--topic]] [sensors/temperature] [[-s|--stdin-file]]`<br><b>Read newline delimited data from stdin as a message and publish it to sensors/temperature topic</b>`[echo data.txt] | mosquitto_pub [[-t|--topic]] [sensors/temperature] [[-l|--stdin-line]]`


title: TLDR
content:
<b>Subscribe to the topic sensors/temperature information with Quality of Service (QoS) set to 1. (The default hostname is localhost and port 1883)</b>`mosquitto_sub [[-t|--topic]] [sensors/temperature] [[-q|--qos]] [1]`<br><b>Subscribe to all broker status messages publishing on iot.eclipse.org port 1885 and print published messages verbosely</b>`mosquitto_sub [[-v|--verbose]] [[-h|--host]] "iot.eclipse.org" [[-p|--port]] 1885 [[-t|--topic]] [\$SYS/#]`<br><b>Subscribe to multiple topics matching a given pattern. (+ takes any metric name)</b>`mosquitto_sub [[-t|--topic]] [sensors/machines/+/temperature/+]`


title: TLDR
content:
<b>Display information about an existing MP4 file</b>`mp4box -info [path/to/file]`<br><b>Add an SRT subtitle file into an MP4 file</b>`mp4box -add [input_subs.srt]:lang=eng -add [input.mp4] [output.mp4]`<br><b>Combine audio from one file and video from another</b>`mp4box -add [input1.mp4]#audio -add [input2.mp4]#video [output.mp4]`


title: TLDR
content:
<b>Play a video or audio from a URL or file</b>`mpv [url|path/to/file]`<br><b>Jump backward/forward 5 seconds</b>`[<ArrowLeft>|<ArrowRight>]`<br><b>Jump backward/forward 1 minute</b>`[<ArrowDown>|<ArrowUp>]`<br><b>Decrease or increase playback speed by 10%</b>`[<[>|<]>]`<br><b>Add subtitles from a file</b>`mpv --sub-file=[path/to/file]`<br><b>Take a screenshot of the current frame (saved to ./mpv-shotNNNN.jpg by default)</b>`<s>`<br><b>Play a file at a specified speed (1 by default)</b>`mpv --speed [0.01..100] [path/to/file]`<br><b>Play a file using a profile defined in the mpv.conf file</b>`mpv --profile [profile_name] [path/to/file]`


title: TLDR
content:
<b>Register a repository</b>`mr register`<br><b>Update repositories in 5 concurrent jobs</b>`mr [[-j|--jobs]] [5] update`<br><b>Print the status of all repositories</b>`mr status`<br><b>Checkout all repositories to the latest version</b>`mr checkout`


title: TLDR
content:
<b>Build the first project file in the current directory</b>`msbuild`<br><b>Build a specific project file</b>`msbuild [path/to/project_file]`<br><b>Specify one or more semicolon-separated targets to build</b>`msbuild [path/to/project_file] /target:[targets]`<br><b>Specify one or more semicolon-separated properties</b>`msbuild [path/to/project_file] /property:[name=value]`<br><b>Specify the build tools version to use</b>`msbuild [path/to/project_file] /toolsversion:[version]`<br><b>Display detailed information at the end of the log about how the project was configured</b>`msbuild [path/to/project_file] /detailedsummary`<br><b>Display help</b>`msbuild /help`


title: TLDR
content:
<b>Send an email using the default account configured in ~/.msmtprc</b>`echo "[Hello world]" | msmtp [to@example.org]`<br><b>Send an email using a specific account configured in ~/.msmtprc</b>`echo "[Hello world]" | msmtp --account=[account_name] [to@example.org]`<br><b>Send an email without a configured account. The password should be specified in the ~/.msmtprc file</b>`echo "[Hello world]" | msmtp --host=[localhost] --port=[999] --from=[from@example.org] [to@example.org]`


title: TLDR
content:
<b>Open a new window and connect to multiple SSH servers</b>`mssh [user@host1 user@host2 ...]`<br><b>Open a new window and connect to a group of servers predefined in ~/.mssh_clusters</b>`mssh [[-a|--alias]] [alias_name]`


title: TLDR
content:
<b>Convert a range of pages to PNGs (Note: %nd in the output placeholder must be replaced with a print modifier like %d or %2d)</b>`mutool convert -o [path/to/output%nd.png] [path/to/input.pdf] [1-10]`<br><b>Convert one or more pages of a PDF into text in stdout</b>`mutool draw -F txt [path/to/input.pdf] [2,3,5,...]`<br><b>Concatenate multiple PDF files</b>`mutool merge -o [path/to/output.pdf] [path/to/input1.pdf path/to/input2.pdf ...]`<br><b>Query information about all content embedded in a PDF</b>`mutool info [path/to/input.pdf]`<br><b>Extract all images, fonts and resources embedded in a PDF to the current directory</b>`mutool extract [path/to/input.pdf]`<br><b>Show the outline (table of contents) of a PDF</b>`mutool show [path/to/input.pdf] outline`


title: TLDR
content:
<b>Open the specified mailbox</b>`mutt -f [mailbox]`<br><b>Send an email and specify a subject and a cc recipient</b>`mutt -s [subject] -c [cc@example.com] [recipient@example.com]`<br><b>Send an email with files attached</b>`mutt -a [file1 file2 ...] -- [recipient@example.com]`<br><b>Specify a file to include as the message body</b>`mutt -i [path/to/file] [recipient@example.com]`<br><b>Specify a draft file containing the header and the body of the message, in RFC 5322 format</b>`mutt -H [path/to/file] [recipient@example.com]`


title: TLDR
content:
<b>Compile a project</b>`mvn compile`<br><b>Compile and package the compiled code in its distributable format, such as a jar</b>`mvn package`<br><b>Compile and package, skipping unit tests</b>`mvn package [[-D|--define]] skipTests`<br><b>Install the built package in local maven repository. (This will invoke the compile and package commands too)</b>`mvn install`<br><b>Delete build artifacts from the target directory</b>`mvn clean`<br><b>Do a clean and then invoke the package phase</b>`mvn clean package`<br><b>Clean and then package the code with a given build profile</b>`mvn clean [[-P|--activate-profiles]] [profile] package`<br><b>Run a class with a main method</b>`mvn exec:java [[-D|--define]] exec.mainClass="[com.example.Main]" [[-D|--define]] exec.args="[argument1 argument2 ...]"`


title: TLDR
content:
<b>Connect to a local database on port 3306, using the current user's username</b>`mycli [database_name]`<br><b>Connect to a database (user will be prompted for a password)</b>`mycli [[-u|--user]] [username] [database_name]`<br><b>Connect to a database on another host</b>`mycli [[-h|--host]] [database_host] [[-P|--port]] [port] [[-u|--user]] [username] [database_name]`


title: TLDR
content:
<b>Start mytop</b>`mytop`<br><b>Connect with a specified username and password</b>`mytop [[-u|-user]] [user] [[-p|-password]] [password]`<br><b>Connect with a specified username (the user will be prompted for a password)</b>`mytop [[-u|-user]] [user] -prompt`<br><b>Do not show any idle (sleeping) threads</b>`mytop [[-u|-user]] [user] [[-p|-password]] [password] --noidle`


title: TLDR
content:
<b>Install a given version of node. If the version is already installed, it will be activated</b>`n [version]`<br><b>Display installed versions and interactively activate one of them</b>`n`<br><b>Remove a version</b>`n rm [version]`<br><b>Execute a file with a given version</b>`n use [version] [file.js]`<br><b>Output binary path for a version</b>`n bin [version]`


title: TLDR
content:
<b>Listen for input on the specified port and write it to the specified file</b>`ncat [[-l|--listen]] [port] > [path/to/file]`<br><b>Accept multiple connections and keep ncat open after they have been closed</b>`ncat [[-lk|--listen --keep-open]] [port]`<br><b>Write output of specified file to the specified host on the specified port</b>`ncat [address] [port] < [path/to/file]`<br><b>Accept multiple incoming connections on an encrypted channel evading detection of traffic content</b>`ncat --ssl [[-k|--keep-open]] [[-l|--listen]] [port]`<br><b>Connect to an open ncat connection over SSL</b>`ncat --ssl [host] [port]`<br><b>Check connectivity to a remote host on a particular port with timeout</b>`ncat [[-w|--wait]] [seconds] [[-vz|--verbose -z]] [host] [port]`


title: TLDR
content:
<b>Connect to a music player daemon on a given host and port</b>`ncmpcpp --host [ip] --port [port]`<br><b>Display metadata of the current song to console</b>`ncmpcpp --current-song`<br><b>Use a specified configuration file</b>`ncmpcpp --config [file]`<br><b>Use a different set of key bindings from a file</b>`ncmpcpp --bindings [file]`


title: TLDR
content:
<b>Rename a file or directory when the target is not an existing directory</b>`mv [path/to/source] [path/to/target]`<br><b>Move a file or directory into an existing directory</b>`mv [path/to/source] [path/to/existing_directory]`<br><b>Move multiple files into an existing directory, keeping the filenames unchanged</b>`mv [path/to/source1 path/to/source2 ...] [path/to/existing_directory]`<br><b>Do not prompt for confirmation before overwriting existing files</b>`mv [[-f|--force]] [path/to/source] [path/to/target]`<br><b>Prompt for confirmation interactively before overwriting existing files, regardless of file permissions</b>`mv [[-i|--interactive]] [path/to/source] [path/to/target]`<br><b>Do not overwrite existing files at the target</b>`mv [[-n|--no-clobber]] [path/to/source] [path/to/target]`<br><b>Move files in verbose mode, showing files after they are moved</b>`mv [[-v|--verbose]] [path/to/source] [path/to/target]`<br><b>Specify target directory so that you can use external tools to gather movable files</b>`[find /var/log -type f -name '*.log' -print0] | [xargs -0] mv [[-t|--target-directory]] [path/to/target_directory]`


title: TLDR
content:
<b>Recursively search starting in the current directory, ignoring case</b>`ned --ignore-case --recursive '[^[dl]og]' [.]`<br><b>Search always showing colored output</b>`ned --colors '[^[dl]og]' [.]`<br><b>Search never showing colored output</b>`ned --colors=never '[^[dl]og]' [.]`<br><b>Search ignoring certain files</b>`ned --recursive --exclude '[*.htm]' '[^[dl]og]' [.]`<br><b>Simple replace</b>`ned '[dog]' --replace '[cat]' [.]`<br><b>Replace using numbered group references</b>`ned '[the ([a-z]+) dog and the ([a-z]+) dog]' --replace '[the $2 dog and the $1 dog]' [.]`<br><b>Replace changing case</b>`ned '[([a-z]+) dog]' --case-replacements --replace '[\U$1\E! dog]' --stdout [.]`<br><b>Preview results of a find and replace without updating the target files</b>`ned '[^[sb]ad]' --replace '[happy]' --stdout [.]`


title: TLDR
content:
<b>Return the default config, and create it if it's the first time the program runs</b>`neofetch`<br><b>Trigger an info line from appearing in the output, where infoname is the function name in the configuration file, e.g. memory</b>`neofetch --[enable|disable] [infoname]`<br><b>Hide/Show OS architecture</b>`neofetch --os_arch [on|off]`<br><b>Enable/Disable CPU brand in output</b>`neofetch --cpu_brand [on|off]`


title: TLDR
content:
<b>Start NetHogs as root (default device is eth0)</b>`sudo nethogs`<br><b>Monitor bandwidth on specific device</b>`sudo nethogs [device]`<br><b>Monitor bandwidth on multiple devices</b>`sudo nethogs [device1 device2 ...]`<br><b>Specify refresh rate</b>`sudo nethogs -t [seconds]`


title: TLDR
content:
<b>Run a pipeline, use cached results from previous runs</b>`nextflow run [main.nf] -resume`<br><b>Run a specific release of a remote workflow from GitHub</b>`nextflow run [user/repo] -revision [release_tag]`<br><b>Run with a given work directory for intermediate files, save execution report</b>`nextflow run [workflow] -work-dir [path/to/directory] -with-report [report.html]`<br><b>Show details of previous runs in current directory</b>`nextflow log`<br><b>Remove cache and intermediate files for a specific run</b>`nextflow clean -force [run_name]`<br><b>List all downloaded projects</b>`nextflow list`<br><b>Pull the latest version of a remote workflow from Bitbucket</b>`nextflow pull [user/repo] -hub bitbucket`<br><b>Update Nextflow</b>`nextflow self-update`


title: TLDR
content:
<b>Create a new Angular application inside a directory</b>`ng new [project_name]`<br><b>Add a new component to one's application</b>`ng generate component [component_name]`<br><b>Add a new class to one's application</b>`ng generate class [class_name]`<br><b>Add a new directive to one's application</b>`ng generate directive [directive_name]`<br><b>Run the application with the following command in its root directory</b>`ng serve`<br><b>Build the application</b>`ng build`<br><b>Run unit tests</b>`ng test`<br><b>Display the version of your current Angular installation</b>`ng version`


title: TLDR
content:
<b>Run in interactive mode</b>`units`<br><b>List all units containing a specific string in interactive mode</b>`search [string]`<br><b>Show the conversion between two simple units</b>`units [quarts] [tablespoons]`<br><b>Convert between units with quantities</b>`units "[15 pounds]" [kilograms]`<br><b>Show the conversion between two compound units</b>`units "[meters / second]" "[inches / hour]"`<br><b>Show the conversion between units with different dimensions</b>`units "[acres]" "[ft^2]"`<br><b>Show the conversion of byte multipliers</b>`units "[15 megabytes]" [bytes]`


title: TLDR
content:
<b>Expose a local HTTP service on a given port</b>`ngrok http [80]`<br><b>Expose a local HTTP service on a specific host</b>`ngrok http [example.com]:[80]`<br><b>Expose a local HTTPS server</b>`ngrok http https://localhost`<br><b>Expose TCP traffic on a given port</b>`ngrok tcp [22]`<br><b>Expose TLS traffic for a specific host and port</b>`ngrok tls -hostname=[example.com] [443]`


title: TLDR
content:
<b>Compile a source file</b>`nim [[c|compile]] [path/to/file.nim]`<br><b>Compile and run a source file</b>`nim [[c|compile]] [[-r|--run]] [path/to/file.nim]`<br><b>Compile a source file with release optimizations enabled</b>`nim [[c|compile]] [[-d|--define]]:release [path/to/file.nim]`<br><b>Build a release binary optimized for low file size</b>`nim [[c|compile]] [[-d|--define]]:release --opt:size [path/to/file.nim]`<br><b>Generate HTML documentation for a module (output will be placed in the current directory)</b>`nim doc [path/to/file.nim]`<br><b>Check a file for syntax and semantics</b>`nim check [path/to/file.nim]`


title: TLDR
content:
<b>Search for packages</b>`nimble search [search_string]`<br><b>Install a package</b>`nimble install [package]`<br><b>List installed packages</b>`nimble list [[-i|--installed]]`<br><b>Create a new Nimble package in the current directory</b>`nimble init`<br><b>Build a Nimble package</b>`nimble build`<br><b>Install a Nimble package</b>`nimble install`


title: TLDR
content:
<b>Delete all store paths unused by current generations of each profile</b>`nix-collect-garbage [[-d|--delete-old]]`<br><b>Simulate the deletion of old store paths</b>`nix-collect-garbage [[-d|--delete-old]] --dry-run`<br><b>Delete all store paths older than 30 days</b>`nix-collect-garbage --delete-older-than 30d`


title: TLDR
content:
<b>List all installed packages</b>`nix-env [[-q|--query]]`<br><b>Query installed packages</b>`nix-env [[-q|--query]] [search_term]`<br><b>Query available packages</b>`nix-env [[-qa|--query --available]] [search_term]`<br><b>Install package</b>`nix-env [[-iA|--install --attr]] nixpkgs.[pkg_name]`<br><b>Install a package from a URL</b>`nix-env [[-i|--install]] [pkg_name] [[-f|--file]] [example.com]`<br><b>Uninstall package</b>`nix-env [[-e|--uninstall]] [pkg_name]`<br><b>Upgrade one package</b>`nix-env [[-u|--upgrade]] [pkg_name]`<br><b>Upgrade all packages</b>`nix-env [[-u|--upgrade]]`


title: TLDR
content:
<b>Enable the nix command</b>`mkdir [[-p|--parents]] ~/.config/nix; echo 'experimental-features = nix-command flakes' > ~/.config/nix/nix.conf`<br><b>Search for a package in nixpkgs via its name or description</b>`nix search nixpkgs [search_term]`<br><b>Start a shell with the specified packages from nixpkgs available</b>`nix shell [nixpkgs#pkg1 nixpkgs#pkg2 nixpkgs#pkg3 ...]`<br><b>Install some packages from nixpkgs permanently</b>`nix profile install [nixpkgs#pkg1 nixpkgs#pkg2 nixpkgs#pkg3 ...]`<br><b>Remove unused paths from Nix store to free up space</b>`nix store gc`<br><b>Start an interactive environment for evaluating Nix expressions</b>`nix repl`<br><b>Display help for a specific subcommand</b>`nix help [subcommand]`


title: TLDR
content:
<b>Build and switch to the new configuration, making it the boot default</b>`sudo nixos-rebuild switch`<br><b>Build and switch to the new configuration, making it the boot default and naming the boot entry</b>`sudo nixos-rebuild switch [[-p|--profile-name]] [name]`<br><b>Build and switch to the new configuration, making it the boot default and installing updates</b>`sudo nixos-rebuild switch --upgrade`<br><b>Rollback changes to the configuration, switching to the previous generation</b>`sudo nixos-rebuild switch --rollback`<br><b>Build the new configuration and make it the boot default without switching to it</b>`sudo nixos-rebuild boot`<br><b>Build and activate the new configuration, but don't make a boot entry (for testing purposes)</b>`sudo nixos-rebuild test`<br><b>Build the configuration and open it in a virtual machine</b>`sudo nixos-rebuild build-vm`<br><b>List available generations similar to the boot loader menu</b>`nixos-rebuild list-generations`


title: TLDR
content:
<b>Start nmon</b>`nmon`<br><b>Save records to file ("-s 300 -c 288" by default)</b>`nmon -f`<br><b>Save records to file with a total of 240 measurements, by taking 30 seconds between each measurement</b>`nmon -f -s [30] -c [240]`


title: TLDR
content:
<b>Run a JavaScript file</b>`node [path/to/file]`<br><b>Start a REPL (interactive shell)</b>`node`<br><b>Execute the specified file restarting the process when an imported file is changed (requires Node.js version 18.11+)</b>`node --watch [path/to/file]`<br><b>Evaluate JavaScript code by passing it as an argument</b>`node [[-e|--eval]] "[code]"`<br><b>Evaluate and print the result, useful to print node's dependencies versions</b>`node [[-p|--print]] "process.versions"`<br><b>Activate inspector, pausing execution until a debugger is connected once source code is fully parsed</b>`node --no-lazy --inspect-brk [path/to/file]`


title: TLDR
content:
<b>Display a notification when tar finishes compressing files</b>`noti [tar -cjf example.tar.bz2 example/]`<br><b>Display a notification even when you put it after the command to watch</b>`[command_to_watch]; noti`<br><b>Monitor a process by PID and trigger a notification when the PID disappears</b>`noti [[-w|--pwatch]] [process_id]`


title: TLDR
content:
<b>Deploy the current directory</b>`now`<br><b>Display a list of deployments</b>`now list`<br><b>Display information related to a deployment</b>`now inspect [deployment_url]`<br><b>Remove a deployment</b>`now remove [deployment_id]`<br><b>Log in into an account or create a new one</b>`now login`<br><b>Initialize an example project (a new directory will be created)</b>`now init`


title: TLDR
content:
<b>Display a report of outdated, incorrect, and unused dependencies</b>`npm-check`<br><b>Interactively update out-of-date packages</b>`npm-check [[-u|--update]]`<br><b>Update everything without prompting</b>`npm-check [[-y|--update-all]]`<br><b>Don't check for unused packages</b>`npm-check [[-s|--skip-unused]]`


title: TLDR
content:
<b>List all registries</b>`nrm ls`<br><b>Change to a particular registry</b>`nrm use [registry]`<br><b>Show the response time for all registries</b>`nrm test`<br><b>Add a custom registry</b>`nrm add [registry] [url]`<br><b>Delete a registry</b>`nrm del [registry]`


title: TLDR
content:
<b>Open a file</b>`nvim [path/to/file]`<br><b>Enter text editing mode (insert mode)</b>`<Esc><i>`<br><b>Copy ("yank") or cut ("delete") the current line (paste it with <p>)</b>`<Esc>[<y><y>|<d><d>]`<br><b>Enter normal mode and undo the last operation</b>`<Esc><u>`<br><b>Search for a pattern in the file (press <n>/<N> to go to next/previous match)</b>`<Esc></>[search_pattern]<Enter>`<br><b>Perform a regex substitution in the whole file</b>`<Esc><:>%s/[regex]/[replacement]/g<Enter>`<br><b>Enter normal mode and save (write) the file, and quit</b>`[<Esc><Z><Z>|<Esc><:>x<Enter>|<Esc><:>wq<Enter>]`<br><b>Quit without saving</b>`<Esc><:>q!<Enter>`


title: TLDR
content:
<b>Install a specific version of Node.js</b>`nvm install [node_version]`<br><b>Use a specific version of Node.js in the current shell</b>`nvm use [node_version]`<br><b>Set the default Node.js version</b>`nvm alias default [node_version]`<br><b>List all available Node.js versions and highlight the default one</b>`nvm list`<br><b>Uninstall a given Node.js version</b>`nvm uninstall [node_version]`<br><b>Launch the REPL of a specific version of Node.js</b>`nvm run [node_version] --version`<br><b>Execute a script in a specific version of Node.js</b>`nvm exec [node_version] node [app.js]`


title: TLDR
content:
<b>Add a user to the current project</b>`add user [username];`<br><b>Grant a set of authorities to a user</b>`grant [action_list] on [object_type] [object_name] to user [username];`<br><b>Show authorities of a user</b>`show grants for [username];`<br><b>Create a user role</b>`create role [role_name];`<br><b>Grant a set of authorities to a role</b>`grant [action_list] on [object_type] [object_name] to role [role_name];`<br><b>Describe authorities of a role</b>`desc role [role_name];`<br><b>Grant a role to a user</b>`grant [role_name] to [username];`


title: TLDR
content:
<b>Show functions in the current project</b>`list functions;`<br><b>Create a Java function using a .jar resource</b>`create function [func_name] as [path.to.package.Func] using '[package.jar]';`<br><b>Create a Python function using a .py resource</b>`create function [func_name] as [script.Func] using '[script.py]';`<br><b>Delete a function</b>`drop function [func_name];`


title: TLDR
content:
<b>Show instances created by current user</b>`show instances;`<br><b>Describe the details of an instance</b>`desc instance [instance_id];`<br><b>Check the status of an instance</b>`status [instance_id];`<br><b>Wait on the termination of an instance, printing log and progress information until then</b>`wait [instance_id];`<br><b>Kill an instance</b>`kill [instance_id];`


title: TLDR
content:
<b>Show resources in the current project</b>`list resources;`<br><b>Add file resource</b>`add file [filename] as [alias];`<br><b>Add archive resource</b>`add archive [archive.tar.gz] as [alias];`<br><b>Add .jar resource</b>`add jar [package.jar];`<br><b>Add .py resource</b>`add py [script.py];`<br><b>Delete resource</b>`drop resource [resource_name];`


title: TLDR
content:
<b>Create a table with partition and lifecycle</b>`create table [table_name] ([col] [type]) partitioned by ([col] [type]) lifecycle [days];`<br><b>Create a table based on the definition of another table</b>`create table [table_name] like [another_table];`<br><b>Add partition to a table</b>`alter table [table_name] add partition ([partition_spec]);`<br><b>Delete partition from a table</b>`alter table [table_name] drop partition ([partition_spec]);`<br><b>Delete table</b>`drop table [table_name];`


title: TLDR
content:
<b>Download table to local file</b>`tunnel download [table_name] [path/to/file];`<br><b>Upload local file to a table partition</b>`tunnel upload [path/to/file] [table_name]/[partition_spec];`<br><b>Upload table specifying field and record delimiters</b>`tunnel upload [path/to/file] [table_name] -fd [field_delim] -rd [record_delim];`<br><b>Upload table using multiple threads</b>`tunnel upload [path/to/file] [table_name] -threads [num];`


title: TLDR
content:
<b>Start the command-line with a custom configuration file</b>`odpscmd --config=[odps_config.ini]`<br><b>Switch current project</b>`use [project_name];`<br><b>Show tables in the current project</b>`show tables;`<br><b>Describe a table</b>`desc [table_name];`<br><b>Show table partitions</b>`show partitions [table_name];`<br><b>Describe a partition</b>`desc [table_name] partition ([partition_spec]);`


title: TLDR
content:
<b>Install one or more packages</b>`omf install [name]`<br><b>List installed packages</b>`omf list`<br><b>List available themes</b>`omf theme`<br><b>Apply a theme</b>`omf theme [name]`<br><b>Remove a theme or package</b>`omf remove [name]`<br><b>Uninstall Oh My Fish</b>`omf destroy`


title: TLDR
content:
<b>Install a package</b>`opkg install [package]`<br><b>Remove a package</b>`opkg remove [package]`<br><b>Update the list of available packages</b>`opkg update`<br><b>Upgrade one or more specific package(s)</b>`opkg upgrade [package(s)]`<br><b>Display information for a specific package</b>`opkg info [package]`<br><b>List all the available packages</b>`opkg list`<br><b>Find out which package owns a file</b>`opkg search /[path/to/file]`<br><b>List all files belonging to a package</b>`opkg files [package]`


title: TLDR
content:
<b>Run an optimization or analysis on a bitcode file</b>`opt -[passname] [path/to/file.bc] -S -o [file_opt.bc]`<br><b>Output the Control Flow Graph of a function to a .dot file</b>`opt [-dot-cfg] -S [path/to/file.bc] -disable-output`<br><b>Optimize the program at level 2 and output the result to another file</b>`opt -O2 [path/to/file.bc] -S -o [path/to/output_file.bc]`


title: TLDR
content:
<b>Compress a PNG with default settings</b>`optipng [path/to/file.png]`<br><b>Compress a PNG with the best compression</b>`optipng -o [7] [path/to/file.png]`<br><b>Compress a PNG with the fastest compression</b>`optipng -o [0] [path/to/file.png]`<br><b>Compress a PNG and add interlacing</b>`optipng -i [1] [path/to/file.png]`<br><b>Compress a PNG and preserve all metadata (including file timestamps)</b>`optipng -preserve [path/to/file.png]`<br><b>Compress a PNG and remove all metadata</b>`optipng -strip all [path/to/file.png]`


title: TLDR
content:
<b>Log in to the Perforce service</b>`p4 login -a`<br><b>Create a client</b>`p4 client`<br><b>Copy files from depot into the client workspace</b>`p4 sync`<br><b>Create or edit changelist description</b>`p4 change`<br><b>Open a file to edit</b>`p4 edit -c [changelist_number] [path/to/file]`<br><b>Open a new file to add it to the depot</b>`p4 add`<br><b>Display list of files modified by changelist</b>`p4 describe -c [changelist_number]`<br><b>Submit a changelist to the depot</b>`p4 submit -c [changelist_number]`


title: TLDR
content:
<b>Create a new p5 collection</b>`p5 new [collection_name]`<br><b>Generate a new p5 project (should be run from collection directory)</b>`p5 generate [project_name]`<br><b>Run the p5 manager server</b>`p5 server`<br><b>Update libraries to their latest versions</b>`p5 update`


title: TLDR
content:
<b>Synchronize and update all packages (includes AUR)</b>`pacaur -Syu`<br><b>Synchronize and update only AUR packages</b>`pacaur -Syua`<br><b>Install a new package (includes AUR)</b>`pacaur -S [package]`<br><b>Remove a package and its dependencies (includes AUR packages)</b>`pacaur -Rs [package]`<br><b>Search the package database for a keyword (includes AUR)</b>`pacaur -Ss [keyword]`<br><b>List all currently installed packages (includes AUR packages)</b>`pacaur -Qs`


title: TLDR
content:
<b>Number non-blank lines in a file</b>`nl [path/to/file]`<br><b>Read from stdin</b>`[command] | nl -`<br><b>Number [a]ll [b]ody lines including blank lines or do [n]ot number [b]ody lines</b>`nl -b [a|n] [path/to/file]`<br><b>Number only the [b]ody lines that match a basic regex (BRE) [p]attern</b>`nl -b p'FooBar[0-9]' [path/to/file]`<br><b>Use a specific [i]ncrement for line numbering</b>`nl -i [increment] [path/to/file]`<br><b>Specify the line numbering format to [r]ight or [l]eft justified, keeping leading [z]eros or [n]ot</b>`nl -n [rz|ln|rn]`<br><b>Specify the line numbering's [w]idth (6 by default)</b>`nl -w [col_width] [path/to/file]`<br><b>Use a specific string to [s]eparate the line numbers from the lines (TAB by default)</b>`nl -s [separator] [path/to/file]`


title: TLDR
content:
<b>Update the list of available packages and versions (it's recommended to run this before other paci commands)</b>`paci refresh`<br><b>Configure its behaviour</b>`paci configure`<br><b>Search for a given package</b>`paci search [package]`<br><b>Install a package</b>`paci install [package]`<br><b>Update a package</b>`paci update [package]`


title: TLDR
content:
<b>Install a new package</b>`pamac install [package_name]`<br><b>Remove a package and its no longer required dependencies (orphans)</b>`pamac remove --orphans [package_name]`<br><b>Search the package database for a package</b>`pamac search [package_name]`<br><b>List installed packages</b>`pamac list --installed`<br><b>Check for package updates</b>`pamac checkupdates`<br><b>Upgrade all packages</b>`pamac upgrade`


title: TLDR
content:
<b>List all sinks and sources with their corresponding IDs</b>`pamixer --list-sinks --list-sources`<br><b>Set the volume to 75% on the default sink</b>`pamixer --set-volume [75]`<br><b>Toggle mute on a sink other than the default</b>`pamixer --toggle-mute --sink [ID]`<br><b>Increase the volume on default sink by 5%</b>`pamixer [[-i|--increase]] [5]`<br><b>Decrease the volume on a source by 5%</b>`pamixer [[-d|--decrease]] [5] --source [ID]`<br><b>Use the allow boost option to increase, decrease, or set the volume above 100%</b>`pamixer --set-volume [105] --allow-boost`<br><b>Mute the default sink (use --unmute instead to unmute)</b>`pamixer [[-m|--mute]]`


title: TLDR
content:
<b>Convert a Markdown file to PDF using pdflatex (the formats are determined by file extensions)</b>`pandoc [path/to/input.md] [[-o|--output]] [path/to/output.pdf]`<br><b>Convert the output from another command to PDF, using a specific PDF engine</b>`[command] | pandoc [[-f|--from]] [input_format] --pdf-engine [tectonic|weasyprint|typst|...] [[-o|--output]] [path/to/output.pdf]`<br><b>Convert to a standalone file with the appropriate headers/footers (for LaTeX, HTML, etc.)</b>`pandoc [path/to/input.md] [[-s|--standalone]] [[-o|--output]] [path/to/output.html]`<br><b>Manually specify formats (overriding automatic format detection using the filename extension, or when there is no extension)</b>`pandoc [[-f|--from]] [docx|...] [path/to/input] [[-t|--to]] [pdf|...] [[-o|--output]] [path/to/output]`<br><b>Transform a document using a Lua script (see <https://pandoc.org/lua-filters.html> for more information)</b>`pandoc [path/to/input] [[-L|--lua-filter]] [path/to/filter.lua] [[-o|--output]] [path/to/output]`<br><b>Convert a remote HTML file to markdown and print the result to stdout</b>`pandoc [[-f|--from]] html [[-t|--to]] markdown [https://example.com]`<br><b>List all supported input formats</b>`pandoc --list-input-formats`<br><b>List all supported output formats</b>`pandoc --list-output-formats`


title: TLDR
content:
<b>Lint a specific directory</b>`parallel-lint [path/to/directory]`<br><b>Lint a directory using the specified number of parallel processes</b>`parallel-lint -j [processes] [path/to/directory]`<br><b>Lint a directory, excluding the specified directory</b>`parallel-lint --exclude [path/to/excluded_directory] [path/to/directory]`<br><b>Lint a directory of files using a comma-separated list of extension(s)</b>`parallel-lint -e [php,html,phpt] [path/to/directory]`<br><b>Lint a directory and output the results as JSON</b>`parallel-lint --json [path/to/directory]`<br><b>Lint a directory and show Git Blame results for rows containing errors</b>`parallel-lint --blame [path/to/directory]`


title: TLDR
content:
<b>Gzip several files at once, using all cores</b>`parallel gzip ::: [path/to/file1 path/to/file2 ...]`<br><b>Read arguments from stdin, run 4 jobs at once</b>`ls *.txt | parallel [[-j|--jobs]] 4 gzip`<br><b>Convert JPEG images to PNG using replacement strings</b>`parallel convert {} {.}.png ::: *.jpg`<br><b>Parallel xargs, cram as many args as possible onto one command</b>`[args] | parallel -X [command]`<br><b>Break stdin into ~1M blocks, feed each block to stdin of new command</b>`cat [big_file.txt] | parallel --pipe --block 1M [command]`<br><b>Run on multiple machines via SSH</b>`parallel [[-S|--sshlogin]] [machine1],[machine2] [command] ::: [arg1] [arg2]`<br><b>Download 4 files simultaneously from a text file containing links showing progress</b>`parallel [[-j|--jobs]] 4 --bar --eta wget [[-q|--quote]] {} :::: [path/to/links.txt]`<br><b>Print the jobs which parallel is running in stderr</b>`parallel [[-t|--verbose]] [command] ::: [args]`


title: TLDR
content:
<b>Initialize (or re-encrypt) the storage using one or more GPG IDs</b>`pass init [gpg_id_1] [gpg_id_2]`<br><b>Save a new password and additional information (press <Ctrl d> on a new line to complete)</b>`pass insert [[-m|--multiline]] [path/to/data]`<br><b>Edit an entry</b>`pass edit [path/to/data]`<br><b>Copy a password (first line of the data file) to the clipboard</b>`pass [[-c|--clip]] [path/to/data]`<br><b>List the whole store tree</b>`pass`<br><b>Generate a new random password with a given length, and copy it to the clipboard</b>`pass generate [[-c|--clip]] [path/to/data] [num]`<br><b>Initialize a new Git repository (any changes done by pass will be committed automatically)</b>`pass git init`<br><b>Run a Git command on behalf of the password storage</b>`pass git [command]`


title: TLDR
content:
<b>Apply a patch using a diff file (filenames must be included in the diff file)</b>`patch < [patch.diff]`<br><b>Apply a patch to a specific file</b>`patch < [patch.diff] [path/to/file]`<br><b>Patch a file writing the result to a different file</b>`patch < [patch.diff] [path/to/input_file] [[-o|--output]] [path/to/output_file]`<br><b>Apply a patch to the current directory</b>`patch < [patch.diff] [[-p|--strip]] 1`<br><b>Apply the reverse of a patch</b>`patch < [patch.diff] [[-R|--reverse]]`


title: TLDR
content:
<b>Find lines that match pattern in a PDF</b>`pdfgrep [pattern] [file.pdf]`<br><b>Include file name and page number for each matched line</b>`pdfgrep [[-H|--with-filename]] [[-n|--page-number]] [pattern] [file.pdf]`<br><b>Do a case-insensitive search for lines that begin with file_name and return the first 3 matches</b>`pdfgrep [[-m|--max-count]] [3] [[-i|--ignore-case]] '[^file_name]' [file.pdf]`<br><b>Find pattern in files with a .pdf extension in the current directory recursively</b>`pdfgrep [[-r|--recursive]] [pattern]`<br><b>Find pattern on files that match a specific glob in the current directory recursively</b>`pdfgrep [[-r|--recursive]] --include '[*book.pdf]' [pattern]`


title: TLDR
content:
<b>Merge two PDFs into one with the default suffix "joined"</b>`pdfjoin [path/to/file1.pdf] [path/to/file2.pdf]`<br><b>Merge the first page of each given file together</b>`pdfjoin [path/to/file1.pdf path/to/file2.pdf ...] [1] --outfile [output_file]`<br><b>Save pages 3 to 5 followed by page 1 to a new PDF with custom suffix</b>`pdfjoin [path/to/file.pdf] [3-5,1] --suffix [rearranged]`<br><b>Merge page subranges from two PDFs</b>`pdfjoin /[path/to/file1.pdf] [2-] [file2] [last-3] --outfile [output_file]`


title: TLDR
content:
<b>Compile a PDF document</b>`pdflatex [source.tex]`<br><b>Compile a PDF document specifying an output directory</b>`pdflatex -output-directory=[path/to/directory] [source.tex]`<br><b>Compile a PDF document, exiting on each error</b>`pdflatex -halt-on-error [source.tex]`


title: TLDR
content:
<b>Convert an A2 poster into 4 A4 pages</b>`pdfposter --poster-size a2 [input_file.pdf] [output_file.pdf]`<br><b>Scale an A4 poster to A3 and then generate 2 A4 pages</b>`pdfposter --scale 2 [input_file.pdf] [output_file.pdf]`


title: TLDR
content:
<b>Extract pages 1-3, 5 and 6-10 from a PDF file and save them as another one</b>`pdftk [input.pdf] cat [1-3 5 6-10] output [output.pdf]`<br><b>Merge (concatenate) a list of PDF files and save the result as another one</b>`pdftk [file1.pdf file2.pdf ...] cat output [output.pdf]`<br><b>Split each page of a PDF file into a separate file, with a given filename output pattern</b>`pdftk [input.pdf] burst output [out_%d.pdf]`<br><b>Rotate all pages by 180 degrees clockwise</b>`pdftk [input.pdf] cat [1-endsouth] output [output.pdf]`<br><b>Rotate third page by 90 degrees clockwise and leave others unchanged</b>`pdftk [input.pdf] cat [1-2 3east 4-end] output [output.pdf]`


title: TLDR
content:
<b>Stream the largest media file in a torrent</b>`peerflix "[torrent_url|magnet_link]"`<br><b>List all streamable files contained in a torrent (given as a magnet link)</b>`peerflix "[magnet:?xt=urn:btih:0123456789abcdef0123456789abcdef01234567]" [[-l|--list]]`<br><b>Stream the largest file in a torrent, given as a torrent URL, to VLC</b>`peerflix "[http://example.net/music.torrent]" [[-v|--vlc]]`<br><b>Stream the largest file in a torrent to MPlayer, with subtitles</b>`peerflix "[torrent_url|magnet_link]" [[-m|--mplayer]] [[-t|--subtitles]] [subtitle-file.srt]`<br><b>Stream all files from a torrent to Airplay</b>`peerflix "[torrent_url|magnet_link]" [[-a|--all]] [[-s|--airplay]]`


title: TLDR
content:
<b>Initialize a new PostgreSQL database cluster</b>`pg_ctl [[-D|--pgdata]] [data_directory] init`<br><b>Start a PostgreSQL server</b>`pg_ctl [[-D|--pgdata]] [data_directory] start`<br><b>Stop a PostgreSQL server</b>`pg_ctl [[-D|--pgdata]] [data_directory] stop`<br><b>Restart a PostgreSQL server</b>`pg_ctl [[-D|--pgdata]] [data_directory] restart`<br><b>Reload the PostgreSQL server configuration</b>`pg_ctl [[-D|--pgdata]] [data_directory] reload`


title: TLDR
content:
<b>Merge 2 PDFs into a single PDF</b>`pdfunite [path/to/fileA.pdf] [path/to/fileB.pdf] [path/to/merged_output.pdf]`<br><b>Merge a directory of PDFs into a single PDF</b>`pdfunite [path/to/directory/*.pdf] [path/to/merged_output.pdf]`


title: TLDR
content:
<b>Dump database into an SQL-script file</b>`pg_dump [db_name] > [output_file.sql]`<br><b>Same as above, customize username</b>`pg_dump [[-U|--username]] [username] [db_name] > [output_file.sql]`<br><b>Same as above, customize host and port</b>`pg_dump [[-h|--host]] [host] [[-p|--port]] [port] [db_name] > [output_file.sql]`<br><b>Dump a database into a custom-format archive file</b>`pg_dump [[-F|--format]] [[c|custom]] [db_name] > [output_file.dump]`<br><b>Dump only database data into an SQL-script file</b>`pg_dump [[-a|--data-only]] [db_name] > [path/to/output_file.sql]`<br><b>Dump only schema (data definitions) into an SQL-script file</b>`pg_dump [[-s|--schema-only]] [db_name] > [path/to/output_file.sql]`


title: TLDR
content:
<b>Perform the default task in the build.xml file</b>`phing`<br><b>Initialize a new build file</b>`phing [[-i|--init]] [path/to/build.xml]`<br><b>Perform a specific task</b>`phing [task_name]`<br><b>Use the given build file path</b>`phing [[-f|-buildfile]] [path/to/build.xml] [task_name]`<br><b>Log to the given file</b>`phing -logfile [path/to/log_file] [task_name]`<br><b>Use custom properties in the build</b>`phing -D[property]=[value] [task_name]`<br><b>Specify a custom listener class</b>`phing -listener [class_name] [task_name]`<br><b>Build using verbose output</b>`phing -verbose [task_name]`


title: TLDR
content:
<b>Display a list of available aliased Phars</b>`phive list`<br><b>Install a specified Phar to the local directory</b>`phive install [alias|url]`<br><b>Install a specified Phar globally</b>`phive install [alias|url] [[-g|--global]]`<br><b>Install a specified Phar to a target directory</b>`phive install [alias|url] [[-t|--target]] [path/to/directory]`<br><b>Update all Phar files to the latest version</b>`phive update`<br><b>Remove a specified Phar file</b>`phive remove [alias|url]`<br><b>Remove unused Phar files</b>`phive purge`<br><b>List all available commands</b>`phive help`


title: TLDR
content:
<b>Start PHP's built-in web server for the current Laravel application</b>`php artisan serve`<br><b>Start an interactive PHP command-line interface</b>`php artisan tinker`<br><b>Generate a new Eloquent model class with a migration, factory and resource controller</b>`php artisan make:model [ModelName] --all`<br><b>Display a list of all available commands</b>`php artisan help`


title: TLDR
content:
<b>Start PHP's built-in web server for the current Yii application</b>`php yii [serve]`<br><b>Generate a controller, views and related files for the CRUD actions on the specified model class</b>`php yii [gii/crud] --modelClass=[ModelName] --controllerClass=[ControllerName]`<br><b>Display help</b>`php yii [help]`


title: TLDR
content:
<b>Run backups using the default phpbu.xml configuration file</b>`phpbu`<br><b>Run backups using a specific configuration file</b>`phpbu --configuration=[path/to/configuration_file.xml]`<br><b>Only run the specified backups</b>`phpbu --limit=[backup_task_name]`<br><b>Simulate the actions that would have been performed</b>`phpbu --simulate`


title: TLDR
content:
<b>Analyze duplicated code for a specific file or directory</b>`phpcpd [path/to/file_or_directory]`<br><b>Analyze using fuzzy matching for variable names</b>`phpcpd --fuzzy [path/to/file_or_directory]`<br><b>Specify a minimum number of identical lines (defaults to 5)</b>`phpcpd --min-lines [number_of_lines] [path/to/file_or_directory]`<br><b>Specify a minimum number of identical tokens (defaults to 70)</b>`phpcpd --min-tokens [number_of_tokens] [path/to/file_or_directory]`<br><b>Exclude a directory from analysis (must be relative to the source)</b>`phpcpd --exclude [path/to/excluded_directory] [path/to/file_or_directory]`<br><b>Output the results to a PHP-CPD XML file</b>`phpcpd --log-pmd [path/to/log_file] [path/to/file_or_directory]`


title: TLDR
content:
<b>Sniff the specified directory for issues (defaults to the PEAR standard)</b>`phpcs [path/to/directory]`<br><b>Display a list of installed coding standards</b>`phpcs -i`<br><b>Specify a coding standard to validate against</b>`phpcs [path/to/directory] --standard [standard]`<br><b>Specify comma-separated file extensions to include when sniffing</b>`phpcs [path/to/directory] --extensions [file_extension1,file_extension2,...]`<br><b>Specify the format of the output report (e.g. full, xml, json, summary)</b>`phpcs [path/to/directory] --report [format]`<br><b>Set configuration variables to be used during the process</b>`phpcs [path/to/directory] --config-set [key] [value]`<br><b>A comma-separated list of files to load before processing</b>`phpcs [path/to/directory] --bootstrap [path/to/file1,path/to/file2,...]`<br><b>Don't recurse into subdirectories</b>`phpcs [path/to/directory] -l`


title: TLDR
content:
<b>Install a PHP version globally</b>`phpenv install [version]`<br><b>Refresh shim files for all PHP binaries known to phpenv</b>`phpenv rehash`<br><b>List all installed PHP versions</b>`phpenv versions`<br><b>Display the currently active PHP version</b>`phpenv version`<br><b>Set the global PHP version</b>`phpenv global [version]`<br><b>Set the local PHP version, which overrides the global version</b>`phpenv local [version]`<br><b>Unset the local PHP version</b>`phpenv local --unset`


title: TLDR
content:
<b>Prepare the PHP extension in the current directory for compiling</b>`phpize`<br><b>Delete files previously created by phpize</b>`phpize --clean`


title: TLDR
content:
<b>Analyze a directory and print the result</b>`phploc [path/to/directory]`<br><b>Include only specific files from a comma-separated list (globs are allowed)</b>`phploc [path/to/directory] --names '[path/to/file1,path/to/file2,...]'`<br><b>Exclude specific files from a comma-separated list (globs are allowed)</b>`phploc [path/to/directory] --names-exclude '[path/to/file1,path/to/file2,...]'`<br><b>Exclude a specific directory from analysis</b>`phploc [path/to/directory] --exclude [path/to/exclude_directory]`<br><b>Log the results to a specific CSV file</b>`phploc [path/to/directory] --log-csv [path/to/file]`<br><b>Log the results to a specific XML file</b>`phploc [path/to/directory] --log-xml [path/to/file]`<br><b>Count PHPUnit test case classes and test methods</b>`phploc [path/to/directory] --count-tests`


title: TLDR
content:
<b>Display a list of available rulesets and formats</b>`phpmd`<br><b>Scan a file or directory for problems using comma-separated rulesets</b>`phpmd [path/to/file_or_directory] [xml|text|html] [ruleset1,ruleset2,...]`<br><b>Specify the minimum priority threshold for rules</b>`phpmd [path/to/file_or_directory] [xml|text|html] [ruleset1,ruleset2,...] --minimumpriority [priority]`<br><b>Include only the specified extensions in analysis</b>`phpmd [path/to/file_or_directory] [xml|text|html] [ruleset1,ruleset2,...] --suffixes [extensions]`<br><b>Exclude the specified comma-separated directories</b>`phpmd [path/to/file_or_directory1,path/to/file_or_directory2,...] [xml|text|html] [ruleset1,ruleset2,...] --exclude [directory_patterns]`<br><b>Output the results to a file instead of stdout</b>`phpmd [path/to/file_or_directory] [xml|text|html] [ruleset1,ruleset2,...] --reportfile [path/to/report_file]`<br><b>Ignore the use of warning-suppressive PHPDoc comments</b>`phpmd [path/to/file_or_directory] [xml|text|html] [ruleset1,ruleset2,...] --strict`


title: TLDR
content:
<b>Create a specification for a class</b>`phpspec describe [class_name]`<br><b>Run all specifications in the "spec" directory</b>`phpspec run`<br><b>Run a single specification</b>`phpspec run [path/to/class_specification_file]`<br><b>Run specifications using a specific configuration file</b>`phpspec run [[-c|--config]] [path/to/configuration_file]`<br><b>Run specifications using a specific bootstrap file</b>`phpspec run [[-b|--bootstrap]] [path/to/bootstrap_file]`<br><b>Disable code generation prompts</b>`phpspec run --no-code-generation`<br><b>Enable fake return values</b>`phpspec run --fake`


title: TLDR
content:
<b>Analyze one or more directories</b>`phpstan analyse [path/to/directory1 path/to/directory2 ...]`<br><b>Analyze a directory using a configuration file</b>`phpstan analyse [path/to/directory] [[-c|--configuration]] [path/to/config]`<br><b>Analyze using a specific rule level (0-10, higher is stricter)</b>`phpstan analyse [path/to/directory] [[-l|--level]] [level]`<br><b>Specify an autoload file to load before analyzing</b>`phpstan analyse [path/to/directory] [[-a|--autoload-file]] [path/to/autoload_file]`<br><b>Specify a memory limit during analysis</b>`phpstan analyse [path/to/directory] --memory-limit [memory_limit]`<br><b>Display available options for analysis</b>`phpstan analyse --help`


title: TLDR
content:
<b>Open a specific directory</b>`phpstorm [path/to/directory]`<br><b>Open a file</b>`phpstorm [path/to/file]`<br><b>Open a file at a specific line</b>`phpstorm --line [line_number] [path/to/file]`<br><b>View the differences between two files</b>`phpstorm diff [path/to/left_file] [path/to/right_file]`


title: TLDR
content:
<b>Run tests in the current directory. Note: Expects you to have a 'phpunit.xml'</b>`phpunit`<br><b>Run tests in a specific file</b>`phpunit [path/to/TestFile.php]`<br><b>Run tests annotated with the given group</b>`phpunit --group [name]`<br><b>Run tests and generate a coverage report in HTML</b>`phpunit --coverage-html [path/to/directory]`


title: TLDR
content:
<b>Start Picard</b>`picard`<br><b>Open a set of files</b>`picard [path/to/file1.mp3 path/to/file2.mp3 ...]`<br><b>Display the version of Picard installed</b>`picard [[-V|--long-version]]`


title: TLDR
content:
<b>Install a specific PHP extension</b>`pickle install [extension_name]`<br><b>Convert an existing PECL extension configuration to a Pickle configuration file</b>`pickle convert [path/to/directory]`<br><b>Validate a PECL extension</b>`pickle validate [path/to/directory]`<br><b>Package a PECL extension for release</b>`pickle release [path/to/directory]`


title: TLDR
content:
<b>Check Pi-hole's status</b>`pihole status`<br><b>Update Pi-hole and Gravity</b>`sudo pihole [[-up|updatePihole]]`<br><b>Start or stop the daemon</b>`pihole [enable|disable]`<br><b>Update the lists and flush the cache without restarting the DNS server</b>`pihole reloaddns`<br><b>Update the list of ad-serving domains</b>`pihole [[-g|updateGravity]]`<br><b>Allow or deny the specified domain</b>`pihole [allow|deny] [example.com]`<br><b>Search the lists for a domain</b>`pihole [[-q|query]] [example.com]`<br><b>Open a real-time log of connections</b>`pihole [[-t|tail]]`


title: TLDR
content:
<b>Compress a file with default options</b>`pigz [path/to/file]`<br><b>Compress a file using the best compression method</b>`pigz [[-9|--best]] [path/to/file]`<br><b>Compress a file using no compression and 4 processors</b>`pigz -0 [[-p|--processes]] [4] [path/to/file]`<br><b>Compress a directory using tar</b>`tar cf - [path/to/directory] | pigz > [path/to/file.tar.gz]`<br><b>Decompress a file</b>`pigz [[-d|--decompress]] [archive.gz]`<br><b>List the contents of an archive</b>`pigz [[-l|--list]] [archive.tar.gz]`


title: TLDR
content:
<b>Create a new project</b>`pipenv`<br><b>Create a new project using Python 3</b>`pipenv --three`<br><b>Install a package</b>`pipenv install [package]`<br><b>Install all the dependencies for a project</b>`pipenv install`<br><b>Install all the dependencies for a project (including dev packages)</b>`pipenv install --dev`<br><b>Uninstall a package</b>`pipenv uninstall [package]`<br><b>Start a shell within the created virtual environment</b>`pipenv shell`<br><b>Generate a requirements.txt (list of dependencies) for a project</b>`pipenv lock --requirements`


title: TLDR
content:
<b>Add a new client device</b>`sudo pivpn add`<br><b>List all client devices</b>`sudo pivpn list`<br><b>List currently connected devices and their statistics</b>`sudo pivpn clients`<br><b>Revoke a previously authenticated device</b>`sudo pivpn revoke`<br><b>Uninstall PiVPN</b>`sudo pivpn uninstall`


title: TLDR
content:
<b>Install a local software package</b>`pkgadd [package]`<br><b>Update an already installed package from a local package</b>`pkgadd -u [package]`


title: TLDR
content:
<b>List installed packages and their versions</b>`pkginfo [[-i|--installed]]`<br><b>List files owned by a package</b>`pkginfo [[-l|--list]] [package]`<br><b>List the owner(s) of files matching a pattern</b>`pkginfo [[-o|--owner]] [pattern]`<br><b>Print the footprint of a file</b>`pkginfo -f [path/to/file]`


title: TLDR
content:
<b>Make and download a package</b>`pkgmk -d`<br><b>Install the package after making it</b>`pkgmk -d -i`<br><b>Upgrade the package after making it</b>`pkgmk -d -u`<br><b>Ignore the footprint when making a package</b>`pkgmk -d -if`<br><b>Ignore the MD5 sum when making a package</b>`pkgmk -d -im`<br><b>Update the package's footprint</b>`pkgmk -uf`


title: TLDR
content:
<b>Toggle play</b>`playerctl play-pause`<br><b>Skip to the next track</b>`playerctl next`<br><b>Go back to the previous track</b>`playerctl previous`<br><b>List all players</b>`playerctl [[-l|--list-all]]`<br><b>Send a command to a specific player</b>`playerctl [[-p|--player]] [player_name] [play-pause|next|previous|...]`<br><b>Send a command to all players</b>`playerctl [[-a|--all-players]] [play-pause|next|previous|...]`<br><b>Display metadata about the current track</b>`playerctl metadata [[-f|--format]] "[Now playing: \{\{artist\}\} - \{\{album\}\} - \{\{title\}\]}"`


title: TLDR
content:
<b>Start a process with a name that can be used for later operations</b>`pm2 start [app.js] --name [application_name]`<br><b>List processes</b>`pm2 list`<br><b>Monitor all processes</b>`pm2 monit`<br><b>Stop a process</b>`pm2 stop [application_name]`<br><b>Restart a process</b>`pm2 restart [application_name]`<br><b>Dump all processes for resurrecting them later</b>`pm2 save`<br><b>Resurrect previously dumped processes</b>`pm2 resurrect`


title: TLDR
content:
<b>Compress a PNG file</b>`pngcrush [in.png] [out.png]`<br><b>Compress all PNGs and output them to the specified directory</b>`pngcrush -d [path/to/output] *.png`<br><b>Compress PNG file with all 114 available algorithms and pick the best result</b>`pngcrush -rem allb -brute -reduce [in.png] [out.png]`


title: TLDR
content:
<b>Remove the top directory from the stack and cd to it</b>`popd`<br><b>Remove the Nth directory (starting from zero to the left from the list printed with dirs)</b>`popd +N`<br><b>Remove the Nth directory (starting from zero to the right from the list printed with dirs)</b>`popd -N`<br><b>Remove the 1st directory (starting from zero to the left from the list printed with dirs)</b>`popd -n`


title: TLDR
content:
<b>Scan the current Kubernetes cluster</b>`popeye`<br><b>Scan a specific namespace</b>`popeye [[-n|--namespace]] [namespace]`<br><b>Scan specific Kubernetes context</b>`popeye --context [context]`<br><b>Use a spinach configuration file for scanning</b>`popeye [[-f|--file]] [spinach.yaml]`


title: TLDR
content:
<b>Update the ports tree</b>`ports -u`<br><b>List the ports in the current tree</b>`ports -l`<br><b>Check the differences between installed packages and the ports tree</b>`ports -d`


title: TLDR
content:
<b>Parse and transform a CSS file</b>`postcss [path/to/file]`<br><b>Parse and transform a CSS file and output to a specific file</b>`postcss [path/to/file] --output [path/to/file]`<br><b>Parse and transform a CSS file and output to a specific directory</b>`postcss [path/to/file] --dir [path/to/directory]`<br><b>Parse and transform a CSS file in-place</b>`postcss [path/to/file] --replace`<br><b>Specify a custom PostCSS parser</b>`postcss [path/to/file] --parser [parser]`<br><b>Specify a custom PostCSS syntax</b>`postcss [path/to/file] --syntax [syntax]`<br><b>Watch for changes to a CSS file</b>`postcss [path/to/file] --watch`<br><b>Display help</b>`postcss --help`


title: TLDR
content:
<b>Analyze the current directory</b>`progpilot`<br><b>Analyze a specific file or directory</b>`progpilot [path/to/file_or_directory]`<br><b>Specify a custom configuration file</b>`progpilot --configuration [path/to/configuration.yml]`


title: TLDR
content:
<b>Show the status of the Prosody server</b>`sudo prosodyctl status`<br><b>Reload the server's configuration files</b>`sudo prosodyctl reload`<br><b>Add a user to the Prosody XMPP server</b>`sudo prosodyctl adduser [user@example.com]`<br><b>Set a user's password</b>`sudo prosodyctl passwd [user@example.com]`<br><b>Permanently delete a user</b>`sudo prosodyctl deluser [user@example.com]`


title: TLDR
content:
<b>Install a package</b>`prt-get install [package]`<br><b>Install a package with dependency handling</b>`prt-get depinst [package]`<br><b>Update a package manually</b>`prt-get upgrade [package]`<br><b>Remove a package</b>`prt-get remove [package]`<br><b>Upgrade the system from the local ports tree</b>`prt-get sysup`<br><b>Search the ports tree</b>`prt-get search [query]`<br><b>Search for a file in a package</b>`prt-get fsearch [file]`


title: TLDR
content:
<b>Find process lines containing a specific string</b>`psgrep [process_name]`<br><b>Find process lines containing a specific string, excluding headers</b>`psgrep -n [process_name]`<br><b>Search using a simplified format (PID, user, command)</b>`psgrep -s [process_name]`


title: TLDR
content:
<b>Run a command on two hosts, and print its output on each server inline</b>`pssh [[-i|--inline]] [[-H|--host]] "[host1] [host2]" [hostname --ip-addresses]`<br><b>Run a command and save the output to separate files</b>`pssh [[-H|--host]] [host1] [[-H|--host]] [host2] [[-o|--outdir]] [path/to/output_directory] [hostname --ip-addresses]`<br><b>Run a command on multiple hosts, specified in a new-line separated file</b>`pssh [[-i|--inline]] [[-h|--hosts]] [path/to/hosts_file] [hostname --ip-addresses]`<br><b>Run a command as root (this asks for the root password)</b>`pssh [[-i|--inline]] [[-h|--hosts]] [path/to/hosts_file] [[-A|--askpass]] [[-l|--user]] [root_username] [hostname --ip-addresses]`<br><b>Run a command with extra SSH arguments</b>`pssh [[-i|--inline]] [[-h|--hosts]] [path/to/hosts_file] [[-x|--extra-arg]] "[-O VisualHostKey=yes]" [hostname --ip-addresses]`<br><b>Run a command limiting the number of parallel connections to 10</b>`pssh [[-i|--inline]] [[-h|--hosts]] [path/to/hosts_file] [[-p|-par]] [10] '[cd dir; ./script.sh; exit]'`


title: TLDR
content:
<b>Open a shell in the current directory</b>`psysh`<br><b>Open a shell in a specific directory</b>`psysh --cwd [path/to/directory]`<br><b>Use a specific configuration file</b>`psysh --config [path/to/file]`


title: TLDR
content:
<b>Find files containing "foo" and print the files with highlighted matches</b>`pt [foo]`<br><b>Find files containing "foo" and display count of matches in each file</b>`pt [[-c|--count]] [foo]`<br><b>Find files containing "foo" as a whole word and ignore its case</b>`pt [[-wi|--word-regexp --ignore-case]] [foo]`<br><b>Find "foo" in files with a given extension using a regex</b>`pt [[-G|--file-search-regexp]]='[\.bar$]' [foo]`<br><b>Find files whose contents match the regex, up to 2 directories deep</b>`pt --depth=[2] -e '[^ba[rz]*$]'`


title: TLDR
content:
<b>Transform a raw HTML file into a cleaned, indented, and colored format</b>`cat [index.html] | pup --color`<br><b>Filter HTML by element tag name</b>`cat [index.html] | pup '[tag]'`<br><b>Filter HTML by ID</b>`cat [index.html] | pup '[div#id]'`<br><b>Filter HTML by attribute value</b>`cat [index.html] | pup '[input[type="text"]]'`<br><b>Print all text from the filtered HTML elements and their children</b>`cat [index.html] | pup '[div] text{}'`<br><b>Print HTML as JSON</b>`cat [index.html] | pup '[div] json{}'`


title: TLDR
content:
<b>Switch to directory and push it on the stack</b>`pushd [path/to/directory]`<br><b>Switch first and second directories on the stack</b>`pushd`<br><b>Rotate stack by making the 5th element the top of the stack</b>`pushd +4`<br><b>Rotate the stack 4 times to the left (the current directory stays at the top by replacing the 5th element)</b>`pushd -n +4`


title: TLDR
content:
<b>Check the style of a single file</b>`pycodestyle [file.py]`<br><b>Check the style of multiple files</b>`pycodestyle [file1.py file2.py ...]`<br><b>Show only the first occurrence of an error</b>`pycodestyle --first [file.py]`<br><b>Show the source code for each error</b>`pycodestyle --show-source [file.py]`<br><b>Show the specific PEP 8 text for each error</b>`pycodestyle --show-pep8 [file.py]`


title: TLDR
content:
<b>Create a new Python 3.6.6 virtual environment</b>`pyenv virtualenv [3.6.6] [virtualenv_name]`<br><b>List all existing virtual environments</b>`pyenv virtualenvs`<br><b>Activate a virtual environment</b>`pyenv activate [virtualenv_name]`<br><b>Deactivate the virtual environment</b>`pyenv deactivate`


title: TLDR
content:
<b>List all available commands</b>`pyenv commands`<br><b>List all Python versions under the ${PYENV_ROOT}/versions directory</b>`pyenv versions`<br><b>List all Python versions that can be installed from upstream</b>`pyenv install --list`<br><b>Install a Python version under the ${PYENV_ROOT}/versions directory</b>`pyenv install [2.7.10]`<br><b>Uninstall a Python version under the ${PYENV_ROOT}/versions directory</b>`pyenv uninstall [2.7.10]`<br><b>Set Python version to be used globally in the current machine</b>`pyenv global [2.7.10]`<br><b>Set Python version to be used in the current directory and all directories below it</b>`pyenv local [2.7.10]`


title: TLDR
content:
<b>Check a single Python file</b>`pyflakes check [path/to/file.py]`<br><b>Check Python files in a specific directory</b>`pyflakes checkPath [path/to/directory]`<br><b>Check Python files in a directory recursively</b>`pyflakes checkRecursive [path/to/directory]`<br><b>Check all Python files found in multiple directories</b>`pyflakes iterSourceCode [path/to/directory_1] [path/to/directory_2]`


title: TLDR
content:
<b>Query a CSV file by specifying the delimiter as ','</b>`q [[-d|--delimiter]] ',' "SELECT * from [path/to/file]"`<br><b>Query a TSV file</b>`q [[-t|--tab-delimited]] "SELECT * from [path/to/file]"`<br><b>Query file with header row</b>`q [[-d|--delimiter]] [delimiter] [[-H|--skip-header]] "SELECT * from [path/to/file]"`<br><b>Read data from stdin; '-' in the query represents the data from stdin</b>`[output] | q "select * from -"`<br><b>Join two files (aliased as f1 and f2 in the example) on column c1, a common column</b>`q "SELECT * FROM [path/to/file] f1 JOIN [path/to/other_file] f2 ON (f1.c1 = f2.c1)"`<br><b>Format output using an output delimiter with an output header line (Note: Command will output column names based on the input file header or the column aliases overridden in the query)</b>`q [[-D|--output-delimiter]] [delimiter] [[-O|--output-header]] "SELECT [column] as [alias] from [path/to/file]"`


title: TLDR
content:
<b>Create disk image with a specific size (in gigabytes)</b>`qemu-img create [path/to/image_file.img] [gigabytes]G`<br><b>Show information about a disk image</b>`qemu-img info [path/to/image_file.img]`<br><b>Increase or decrease image size</b>`qemu-img resize [path/to/image_file.img] [gigabytes]G`<br><b>Dump the allocation state of every sector of the specified disk image</b>`qemu-img map [path/to/image_file.img]`<br><b>Convert a VMware .vmdk disk image to a KVM .qcow2 disk image and display [p]rogress</b>`qemu-img convert -f vmdk -O qcow2 -p [path/to/image_file.vmdk] [path/to/image_file.qcow2]`<br><b>[c]reate an internal snapshot of a KVM .qcow2 disk image</b>`qemu-img snapshot -c [snapshot_tag_name] [path/to/image_file.qcow2]`<br><b>[a]pply an internal snapshot to a KVM .qcow2 disk image</b>`qemu-img snapshot -a [snapshot_tag_name] [path/to/image_file.qcow2]`


title: TLDR
content:
<b>Boot from image emulating i386 architecture</b>`qemu-system-i386 -hda [image_name.img]`<br><b>Boot from image emulating x64 architecture</b>`qemu-system-x86_64 -hda [image_name.img]`<br><b>Boot QEMU instance with a live ISO image</b>`qemu-system-i386 -hda [image_name.img] -cdrom [os_image.iso] -boot d`<br><b>Specify amount of RAM for instance</b>`qemu-system-i386 -m 256 -hda [image_name.img] -cdrom [os-image.iso] -boot d`<br><b>Boot from physical device (e.g. from USB to test bootable medium)</b>`qemu-system-i386 -hda [/dev/storage_device]`


title: TLDR
content:
<b>Start a REPL (interactive shell)</b>`python`<br><b>Execute a specific Python file</b>`python [path/to/file.py]`<br><b>Execute a specific Python file and start a REPL</b>`python -i [path/to/file.py]`<br><b>Execute a Python expression</b>`python -c "[expression]"`<br><b>Run the script of the specified library module</b>`python -m [module] [arguments]`<br><b>Install a package using pip</b>`python -m pip install [package]`<br><b>Interactively debug a Python script</b>`python -m pdb [path/to/file.py]`<br><b>Start the built-in HTTP server on port 8000 in the current directory</b>`python -m http.server`


title: TLDR
content:
<b>Show disk quotas in human-readable units for the current user</b>`quota [[-s|--human-readable]]`<br><b>Verbose output (also display quotas on filesystems where no storage is allocated)</b>`quota [[-v|--verbose]]`<br><b>Quiet output (only display quotas on filesystems where usage is over quota)</b>`quota [[-q|--quiet]]`<br><b>Print quotas for the groups of which the current user is a member</b>`quota [[-g|--group]]`<br><b>Show disk quotas for another user</b>`sudo quota [[-u|--user]] [username]`


title: TLDR
content:
<b>Start a REPL (interactive shell)</b>`R`<br><b>Start R in vanilla mode (i.e. a blank session that doesn't save the workspace at the end)</b>`R [[-v|--vanilla]]`<br><b>Execute a file</b>`R [[-f|--file]] [path/to/file.R]`<br><b>Execute an R expression and then exit</b>`R -e [expr]`<br><b>Run R with a debugger</b>`R [[-d|--debugger]] [debugger]`<br><b>Check R packages from package sources</b>`R CMD check [path/to/package_source]`<br><b>Display version</b>`R --version`


title: TLDR
content:
<b>Show the utilization of the default AMD GPU</b>`radeontop`<br><b>Enable colored output</b>`radeontop --color`<br><b>Select a specific GPU (the bus number is the first number in the output of lspci)</b>`radeontop --bus [bus_number]`<br><b>Specify the display refresh rate (higher means more GPU overhead)</b>`radeontop --ticks [samples_per_second]`


title: TLDR
content:
<b>Create databases, load the schema, and initialize with seed data</b>`rails db:setup`<br><b>Access the database console</b>`rails db`<br><b>Create the databases defined in the current environment</b>`rails db:create`<br><b>Destroy the databases defined in the current environment</b>`rails db:drop`<br><b>Run pending migrations</b>`rails db:migrate`<br><b>View the status of each migration file</b>`rails db:migrate:status`<br><b>Rollback the last migration</b>`rails db:rollback`<br><b>Fill the current database with data defined in db/seeds.rb</b>`rails db:seed`


title: TLDR
content:
<b>List all available generators</b>`rails generate`<br><b>Generate a new model named Post with attributes title and body</b>`rails generate model [Post] [title:string] [body:text]`<br><b>Generate a new controller named Posts with actions index, show, new and create</b>`rails generate controller [Posts] [index] [show] [new] [create]`<br><b>Generate a new migration that adds a category attribute to an existing model called Post</b>`rails generate migration [AddCategoryToPost] [category:string]`<br><b>Generate a scaffold for a model named Post, predefining the attributes title and body</b>`rails generate scaffold [Post] [title:string] [body:text]`


title: TLDR
content:
<b>Create a new rails project</b>`rails new "[project_name]"`<br><b>Generate a scaffold for a model named Post, predefining the attributes title and body</b>`rails generate scaffold Post title:string body:text`<br><b>Run migrations</b>`rails db:migrate`<br><b>List all routes</b>`rails routes`<br><b>Start local server for current project on port 3000</b>`rails server`<br><b>Start local server for current project on a specified port</b>`rails server [[-p|--port]] "[port]"`<br><b>Open console to interact with application from command-line</b>`rails console`<br><b>Display version</b>`rails [[-v|--version]]`


title: TLDR
content:
<b>Open RainbowStream</b>`rainbowstream`<br><b>Show your timeline (optional number of tweets to display, default is 5)</b>`home [[num_of_last_tweets]]`<br><b>Show profile of a given user</b>`whois @[user]`<br><b>Tweet the message as-is</b>`t [message]`<br><b>Retweet the tweet with given ID (ID is beside the time)</b>`rt [tweet_id]`<br><b>Favorite the tweet with given ID</b>`fav [tweet_id]`<br><b>Perform a search for a given word (with or without hashtag)</b>`s [word]`


title: TLDR
content:
<b>Launch ranger</b>`ranger`<br><b>Show only directories</b>`ranger --show-only-dirs`<br><b>Change the configuration directory</b>`ranger [[-r|--confdir]] [path/to/directory]`<br><b>Change the data directory</b>`ranger --datadir [path/to/directory]`<br><b>Print CPU usage statistics on exit</b>`ranger --profile`


title: TLDR
content:
<b>Display the absolute path for a file or directory</b>`realpath [path/to/file_or_directory]`<br><b>Require all path components to exist</b>`realpath [[-e|--canonicalize-existing]] [path/to/file_or_directory]`<br><b>Resolve ".." components before symlinks</b>`realpath [[-L|--logical]] [path/to/file_or_directory]`<br><b>Disable symlink expansion</b>`realpath [[-s|--no-symlinks]] [path/to/file_or_directory]`<br><b>Suppress error messages</b>`realpath [[-q|--quiet]] [path/to/file_or_directory]`


title: TLDR
content:
<b>View all RBAC bindings</b>`rbac-lookup`<br><b>View RBAC bindings that match a given expression</b>`rbac-lookup [search_term]`<br><b>View all RBAC bindings along with the source role binding</b>`rbac-lookup [[-o|--output]] wide`<br><b>View all RBAC bindings filtered by subject</b>`rbac-lookup [[-k|--kind]] [user|group|serviceaccount]`<br><b>View all RBAC bindings along with IAM roles (if you are using GKE)</b>`rbac-lookup --gke`


title: TLDR
content:
<b>Install a Ruby version</b>`rbenv install [version]`<br><b>Display a list of the latest stable versions for each Ruby</b>`rbenv install --list`<br><b>Display a list of installed Ruby versions</b>`rbenv versions`<br><b>Use a specific Ruby version across the whole system</b>`rbenv global [version]`<br><b>Use a specific Ruby version for an application/project directory</b>`rbenv local [version]`<br><b>Display the currently selected Ruby version</b>`rbenv version`<br><b>Uninstall a Ruby version</b>`rbenv uninstall [version]`<br><b>Display all Ruby versions that contain the specified executable</b>`rbenv whence [executable]`


title: TLDR
content:
<b>Post changes to Review Board</b>`rbt post [change_number]`<br><b>Display the diff that will be sent to Review Board</b>`rbt diff`<br><b>Land a change in a local branch or on a review request</b>`rbt land [branch_name]`<br><b>Patch your tree with a change on a review request</b>`rbt patch [review_request_id]`<br><b>Set up RBTool to talk to a repository</b>`rbt setup-repo`


title: TLDR
content:
<b>Launch an interactive menu to setup rclone</b>`rclone config`<br><b>List contents of a directory on an rclone remote</b>`rclone lsf [remote_name]:[path/to/directory]`<br><b>Copy a file or directory from the local machine to the remote destination</b>`rclone copy [path/to/source_file_or_directory] [remote_name]:[path/to/directory]`<br><b>Copy files changed within the past 24 hours to a remote from the local machine, asking the user to confirm each file</b>`rclone copy [[-i|--interactive]] --max-age 24h [remote_name]:[path/to/directory] [path/to/local_directory]`<br><b>Mirror a specific file or directory (Note: Unlike copy, sync removes files from the remote if it does not exist locally)</b>`rclone sync [path/to/file_or_directory] [remote_name]:[path/to/directory]`<br><b>Delete a remote file or directory (Note: --dry-run means test, remove it from the command to actually delete)</b>`rclone [[-n|--dry-run]] delete [remote_name]:[path/to/file_or_directory]`<br><b>Mount rclone remote (experimental)</b>`rclone mount [remote_name]:[path/to/directory] [path/to/mount_point]`<br><b>Unmount rclone remote if <Ctrl c> fails (experimental)</b>`fusermount [[-u|--update]] [path/to/mount_point]`


title: TLDR
content:
<b>Start an interactive shell session</b>`rbash`<br><b>Execute a command and then exit</b>`rbash -c "[command]"`<br><b>Execute a script</b>`rbash [path/to/script.sh]`<br><b>Execute a script, printing each command before executing it</b>`rbash -x [path/to/script.sh]`<br><b>Execute commands from a script, stopping at the first error</b>`rbash -e [path/to/script.sh]`<br><b>Read and execute commands from stdin</b>`rbash -s`


title: TLDR
content:
<b>Identify all duplicates in a given directory and output a summary</b>`rdfind -dryrun true [path/to/directory]`<br><b>Replace all duplicates with hardlinks</b>`rdfind -makehardlinks true [path/to/directory]`<br><b>Replace all duplicates with symlinks/soft links</b>`rdfind -makesymlinks true [path/to/directory]`<br><b>Delete all duplicates and do not ignore empty files</b>`rdfind -deleteduplicates true -ignoreempty false [path/to/directory]`


title: TLDR
content:
<b>Display the man page for a command</b>`man [command]`<br><b>Open the man page for a command in a browser (BROWSER environment variable can replace =browser_name)</b>`man [[-H|--html=]][browser_name] [command]`<br><b>Display the man page for a command from section 7</b>`man 7 [command]`<br><b>List all available sections for a command</b>`man [[-f|--whatis]] [command]`<br><b>Display the path searched for manpages</b>`man [[-w|--path]]`<br><b>Display the location of a manpage rather than the manpage itself</b>`man [[-w|--where]] [command]`<br><b>Display the man page using a specific locale</b>`man [[-L|--locale]] [locale] [command]`<br><b>Search for manpages containing a search string</b>`man [[-k|--apropos]] "[search_string]"`


title: TLDR
content:
<b>Process a specific directory</b>`rector process [path/to/directory]`<br><b>Process a directory without applying changes (dry run)</b>`rector process [path/to/directory] --dry-run`<br><b>Process a directory and apply coding standards</b>`rector process [path/to/directory] --with-style`<br><b>Display a list of available levels</b>`rector levels`<br><b>Process a directory with a specific level</b>`rector process [path/to/directory] --level [level_name]`


title: TLDR
content:
<b>Connect to the local server</b>`redis-cli`<br><b>Connect to a remote server on the default port (6379)</b>`redis-cli -h [host]`<br><b>Connect to a remote server specifying a port number</b>`redis-cli -h [host] -p [port]`<br><b>Connect to a remote server specifying a URI</b>`redis-cli -u [uri]`<br><b>Specify a password</b>`redis-cli -a [password]`<br><b>Execute Redis command</b>`redis-cli [redis_command]`<br><b>Connect to the local cluster</b>`redis-cli -c`


title: TLDR
content:
<b>Turn on Redshift with a specific [t]emperature during day (e.g., 5700K) and at night (e.g., 3600K)</b>`redshift -t 5700:3600`<br><b>Turn on Redshift with a manually specified custom [l]ocation</b>`redshift -l [latitude]:[longitude]`<br><b>Turn on Redshift with a specific screen [b]rightness during the day (e.g, 70%) and at night (e.g., 40%)</b>`redshift -b 0.7:0.4`<br><b>Turn on Redshift with custom [g]amma levels (between 0 and 1)</b>`redshift -g [red]:[green]:[blue]`<br><b>[P]urge existing temperature changes and set a constant unchanging color temperature in [O]ne-shot mode</b>`redshift -PO [temperature]`


title: TLDR
content:
<b>Get all mirrors, sort for download speed and save them</b>`sudo reflector --sort [rate] --save [/etc/pacman.d/mirrorlist]`<br><b>Only get German HTTPS mirrors</b>`reflector [[-c|--country]] [Germany] [[-p|--protocol]] [https]`<br><b>Only get the 10 recently sync'd mirrors</b>`reflector [[-l|--latest]] [10]`<br><b>Use a configuration file to fetch mirrors</b>`sudo reflector @[/etc/xdg/reflector/reflector.conf]`<br><b>Display help</b>`reflector [[-h|--help]]`


title: TLDR
content:
<b>Report stats for all quotas in use</b>`sudo repquota [[-a|--all]]`<br><b>Report quota stats for all users, even those who aren't using any of their quota</b>`sudo repquota [[-v|--verbose]] [filesystem]`<br><b>Report on quotas for users only</b>`repquota [[-u|--user]] [filesystem]`<br><b>Report on quotas for groups only</b>`sudo repquota [[-g|--group]] [filesystem]`<br><b>Report on used quota and limits in a human-readable format</b>`sudo repquota [[-s|--human-readable]] [filesystem]`<br><b>Report on all quotas for users and groups in a human-readable format</b>`sudo repquota [[-augs|--all --user --group --human-readable]]`


title: TLDR
content:
<b>Do a dry-run renaming a directory of PNGs with a literal string replacement</b>`repren [[-n|--dry-run]] --rename --literal --from '[find_string]' --to '[replacement_string]' [*.png]`<br><b>Do a dry-run renaming a directory of JPEGs with a regex</b>`repren --rename [[-n|--dry-run]] --from '[regex]' --to '[replacement_string]' [*.jpg] [*.jpeg]`<br><b>Do a find-and-replace on the contents of a directory of CSV files</b>`repren --from '[([0-9]+) example_string]' --to '[replacement_string \1]' [*.csv]`<br><b>Do both a find-and-replace and a rename operation at the same time, using a pattern file</b>`repren [[-p|--patterns]] [path/to/patfile.ext] --full [*.txt]`<br><b>Do a case-insensitive rename</b>`repren --rename [[-i|--insensitive]] [[-p|--patterns]] [path/to/patfile.ext] *`


title: TLDR
content:
<b>Initialize a backup repository in the specified local directory</b>`restic init --repo [path/to/repository]`<br><b>Backup a directory to the repository</b>`restic --repo [path/to/repository] backup [path/to/directory]`<br><b>Show backup snapshots currently stored in the repository</b>`restic --repo [path/to/repository] snapshots`<br><b>Restore a specific backup snapshot to a target directory</b>`restic --repo [path/to/repository] restore [latest|snapshot_id] --target [path/to/target]`<br><b>Restore a specific path from a specific backup to a target directory</b>`restic --repo [path/to/repository] restore [snapshot_id] --target [path/to/target] --include [path/to/restore]`<br><b>Clean up the repository and keep only the most recent snapshot of each unique backup</b>`restic forget --keep-last 1 --prune`


title: TLDR
content:
<b>Recursively search current directory for a pattern (regex)</b>`rg [pattern]`<br><b>Recursively search for a pattern in a file or directory</b>`rg [pattern] [path/to/file_or_directory]`<br><b>Include hidden files and entries listed in .gitignore</b>`rg [[-.|--hidden]] --no-ignore [pattern]`<br><b>Only search the files whose names match the glob pattern(s) (e.g. README.*)</b>`rg [pattern] [[-g|--glob]] [filename_glob_pattern]`<br><b>Recursively list filenames in the current directory that match a pattern</b>`rg --files | rg [pattern]`<br><b>Only list matched files (useful when piping to other commands)</b>`rg [[-l|--files-with-matches]] [pattern]`<br><b>Show lines that do not match the pattern</b>`rg [[-v|--invert-match]] [pattern]`<br><b>Search for a literal string pattern</b>`rg [[-F|--fixed-strings]] -- [string]`


title: TLDR
content:
<b>Check for breaking changes since the last tag</b>`roave-backward-compatibility-check`<br><b>Check for breaking changes since a specific tag</b>`roave-backward-compatibility-check --from=[git_reference]`<br><b>Check for breaking changes between the last tag and a specific reference</b>`roave-backward-compatibility-check --to=[git_reference]`<br><b>Check for breaking changes and output to Markdown</b>`roave-backward-compatibility-check --format=markdown > [results.md]`


title: TLDR
content:
<b>Show the list of apps</b>`rofi -show drun`<br><b>Show the list of all commands</b>`rofi -show run`<br><b>Switch between windows</b>`rofi -show window`<br><b>Pipe a list of items to stdin and print the selected item to stdout</b>`printf "[Choice1\nChoice2\nChoice3]" | rofi -dmenu`


title: TLDR
content:
<b>Roll 3 6-sided dice and sums the results</b>`roll [3d]`<br><b>Roll 1 8-sided die, add 3 and sum the results</b>`roll [d8 + 3]`<br><b>Roll 4 6-sided dice, keep the 3 highest results and sum the results</b>`roll [4d6h3]`<br><b>Roll 2 12-sided dice 2 times and show every roll</b>`roll --verbose [2{2d12]}`<br><b>Roll 2 20-sided dice until the result is bigger than 10</b>`roll "[2d20>10]"`<br><b>Roll 2 5-sided dice 3 times and show the total sum</b>`roll --sum-series [3{2d5]}`


title: TLDR
content:
<b>Record an application</b>`rr record [path/to/binary --arg1 --arg2]`<br><b>Replay latest recorded execution</b>`rr replay`


title: TLDR
content:
<b>Train the bayesian filter to recognise an email as spam</b>`rspamc learn_spam [path/to/email_file]`<br><b>Train the bayesian filter to recognise an email as ham</b>`rspamc learn_ham [path/to/email_file]`<br><b>Generate a manual report on an email</b>`rspamc symbols [path/to/email_file]`<br><b>Show server statistics</b>`rspamc stat`


title: TLDR
content:
<b>Show the feed of a given URL and wait for new entries appearing at the bottom</b>`rsstail -u [url]`<br><b>Show the feed in reverse chronological order (newer at the bottom)</b>`rsstail -r -u [url]`<br><b>Include publication date and link</b>`rsstail -pl -u [url]`<br><b>Set update interval</b>`rsstail -u [url] -i [interval_in_seconds]`<br><b>Show feed and exit</b>`rsstail -1 -u [url]`


title: TLDR
content:
<b>Add a torrent file or magnet to be downloaded</b>`rtorrent [torrent_or_magnet]`<br><b>Start the download</b>`<Ctrl s>`<br><b>View details about downloading torrent</b>`<ArrowRight>`<br><b>Close rtorrent safely</b>`<Ctrl q>`


title: TLDR
content:
<b>Open the front page</b>`/front`<br><b>Open a subreddit</b>`/r/[subreddit_name]`<br><b>Expand/collapse comments</b>`<Space>`<br><b>Open link</b>`<o>`<br><b>Log in</b>`<u>`<br><b>Display help</b>`<?>`


title: TLDR
content:
<b>Start a runit service as the current user</b>`runsv [path/to/service]`<br><b>Start a runit service as root</b>`sudo runsv [path/to/service]`


title: TLDR
content:
<b>Start and manage all services in a directory as the current user</b>`runsvdir [path/to/services]`<br><b>Start and manage all services in a directory as root</b>`sudo runsvdir [path/to/services]`<br><b>Start services in separate sessions</b>`runsvdir -P [path/to/services]`


title: TLDR
content:
<b>Compile a binary crate</b>`rustc [path/to/main.rs]`<br><b>Compile with optimizations (s means optimize for binary size; z is the same with even more optimizations)</b>`rustc [[-C|--codegen]] lto [[-C|--codegen]] opt-level=[0|1|2|3|s|z] [path/to/main.rs]`<br><b>Compile with debugging information</b>`rustc -g [path/to/main.rs]`<br><b>Explain an error message</b>`rustc --explain [error_code]`<br><b>Compile with architecture-specific optimizations for the current CPU</b>`rustc [[-C|--codegen]] target-cpu=[native] [path/to/main.rs]`<br><b>Display the target list (Note: You have to add a target using rustup first to be able to compile for it)</b>`rustc --print target-list`<br><b>Compile for a specific target</b>`rustc --target [target_triple] [path/to/main.rs]`


title: TLDR
content:
<b>Format a file, overwriting the original file in-place</b>`rustfmt [path/to/source.rs]`<br><b>Check a file for formatting and display any changes on the console</b>`rustfmt --check [path/to/source.rs]`<br><b>Backup any modified files before formatting (the original file is renamed with a .bk extension)</b>`rustfmt --backup [path/to/source.rs]`<br><b>Format code using a specific Rust style edition (formatting rules) verbosely</b>`rustfmt --style-edition [2015|2018|2021|2024] [[-v|--verbose]] [path/to/source1.rs path/to/source2.rs ...]`<br><b>Format code using a specific Rust edition (language features and parsing)</b>`rustfmt --edition [2015|2018|2021|2024] [path/to/source1.rs path/to/source2.rs ...]`


title: TLDR
content:
<b>Install the nightly toolchain for your system</b>`rustup install nightly`<br><b>Switch the default toolchain to nightly so that the cargo and rustc commands will use it</b>`rustup default nightly`<br><b>Use the nightly toolchain when inside the current project but leave global settings unchanged</b>`rustup override set nightly`<br><b>Update all toolchains</b>`rustup update`<br><b>List installed toolchains</b>`rustup show`<br><b>Run cargo build with a certain toolchain</b>`rustup run [toolchain] cargo build`<br><b>Open the local Rust documentation in the default web browser</b>`rustup doc`


title: TLDR
content:
<b>Install one or more versions of Ruby</b>`rvm install [version1 version2 ...]`<br><b>Display a list of installed versions</b>`rvm list`<br><b>Use a specific version of Ruby</b>`rvm use [version]`<br><b>Set the default Ruby version</b>`rvm --default use [version]`<br><b>Upgrade a version of Ruby to a new version</b>`rvm upgrade [current_version] [new_version]`<br><b>Uninstall a version of Ruby and keep its sources</b>`rvm uninstall [version]`<br><b>Remove a version of Ruby and its sources</b>`rvm remove [version]`<br><b>Show specific dependencies for your OS</b>`rvm requirements`


title: TLDR
content:
<b>Search for a query on Google (default provider)</b>`s [query]`<br><b>List all providers</b>`s [[-l|--list-providers]]`<br><b>Search for a query with a given provider</b>`s [[-p|--provider]] [provider] [query]`<br><b>Use a specified binary to perform the search query</b>`s [[-b|--binary]] "[binary] [arguments]" [query]`


title: TLDR
content:
<b>Start Sails</b>`sails lift`<br><b>Create new Sails project</b>`sails new [projectName]`<br><b>Generate Sails API</b>`sails generate [name]`<br><b>Generate Sails Controller</b>`sails generate controller [name]`<br><b>Generate Sails Model</b>`sails generate model [name]`


title: TLDR
content:
<b>Perform a highstate on this minion</b>`salt-call state.highstate`<br><b>Perform a highstate dry-run, compute all changes but don't actually perform them</b>`salt-call state.highstate test=true`<br><b>Perform a highstate with verbose debugging output</b>`salt-call [[-l|--log-level]] debug state.highstate`<br><b>List this minion's grains</b>`salt-call grains.items`


title: TLDR
content:
<b>List all accepted, unaccepted and rejected minion keys</b>`salt-key [[-L|--list-all]]`<br><b>Accept a minion key by name</b>`salt-key [[-a|--accept-all]] [MINION_ID]`<br><b>Reject a minion key by name</b>`salt-key [[-r|--reject]] [MINION_ID]`<br><b>Print fingerprints of all public keys</b>`salt-key [[-F|--finger-all]]`


title: TLDR
content:
<b>Show status of all minions</b>`salt-run manage.status`<br><b>Show all minions which are disconnected</b>`salt-run manage.up`


title: TLDR
content:
<b>Initialize a serverless application</b>`sam init`<br><b>Initialize a serverless application with a specific runtime</b>`sam init [[-r|--runtime]] [python3.7]`<br><b>Package a SAM application</b>`sam package`<br><b>Build your Lambda function code</b>`sam build`<br><b>Run your serverless application locally</b>`sam local start-api`<br><b>Deploy an AWS SAM application</b>`sam deploy`


title: TLDR
content:
<b>Convert a SAM input file to BAM stream and save to file</b>`samtools view -S [[-b|--bam]] [input.sam] > [output.bam]`<br><b>Take input from stdin (-) and print the SAM header and any reads overlapping a specific region to stdout</b>`[other_command] | samtools view [[-h|--with-header]] - chromosome:start-end`<br><b>Sort file and save to BAM (the output format is automatically determined from the output file's extension)</b>`samtools sort [input] [[-o|--output]] [output.bam]`<br><b>Index a sorted BAM file (creates sorted_input.bam.bai)</b>`samtools index [sorted_input.bam]`<br><b>Print alignment statistics about a file</b>`samtools flagstat [sorted_input]`<br><b>Count alignments to each index (chromosome/contig)</b>`samtools idxstats [sorted_indexed_input]`<br><b>Merge multiple files</b>`samtools merge [output] [input1 input2 ...]`<br><b>Split input file according to read groups</b>`samtools split [merged_input]`


title: TLDR
content:
<b>Convert a SCSS or Sass file to CSS and print out the result</b>`sass [inputfile.scss|inputfile.sass]`<br><b>Convert a SCSS or Sass file to CSS and save the result to a file</b>`sass [inputfile.scss|inputfile.sass] [outputfile.css]`<br><b>Watch a SCSS or Sass file for changes and output or update the CSS file with same filename</b>`sass --watch [inputfile.scss|inputfile.sass]`<br><b>Watch a SCSS or Sass file for changes and output or update the CSS file with the given filename</b>`sass --watch [inputfile.scss|inputfile.sass]:[outputfile.css]`


title: TLDR
content:
<b>Initialize a Satis configuration</b>`satis init [satis.json]`<br><b>Add a VCS repository to the Satis configuration</b>`satis add [repository_url]`<br><b>Build the static output from the configuration</b>`satis build [satis.json] [path/to/output_directory]`<br><b>Build the static output by updating only the specified repository</b>`satis build --repository-url [repository_url] [satis.json] [path/to/output_directory]`<br><b>Remove useless archive files</b>`satis purge [satis.json] [path/to/output_directory]`


title: TLDR
content:
<b>Submit a batch job</b>`sbatch [path/to/job.sh]`<br><b>Submit a batch job with a custom name</b>`sbatch --job-name=[myjob] [path/to/job.sh]`<br><b>Submit a batch job with a time limit of 30 minutes</b>`sbatch --time=[00:30:00] [path/to/job.sh]`<br><b>Submit a job and request multiple nodes</b>`sbatch --nodes=[3] [path/to/job.sh]`


title: TLDR
content:
<b>Start SC-IM</b>`scim [path/to/file.csv]`<br><b>Enter a string into the current cell</b>`[<<>|<>>]`<br><b>Enter a numeric constant into the current cell</b>`<=>`<br><b>Edit string in the current cell</b>`<E>`<br><b>Edit number in the current cell</b>`<e>`<br><b>Center align the current cell</b>`<|>`


title: TLDR
content:
<b>Start a REPL (interactive shell)</b>`scheme`<br><b>Run a scheme program (with no REPL output)</b>`scheme < [script.scm] --quiet`<br><b>Load a scheme program into the REPL</b>`scheme --load [script.scm]`<br><b>Load scheme expressions into the REPL</b>`scheme --eval "[(define foo 'x)]"`<br><b>Open the REPL in quiet mode</b>`scheme --quiet`


title: TLDR
content:
<b>Create a project</b>`scrapy startproject [project_name]`<br><b>Create a spider (in project directory)</b>`scrapy genspider [spider_name] [website_domain]`<br><b>Edit spider (in project directory)</b>`scrapy edit [spider_name]`<br><b>Run spider (in project directory)</b>`scrapy crawl [spider_name]`<br><b>Fetch a webpage as Scrapy sees it and print the source to stdout</b>`scrapy fetch [url]`<br><b>Open a webpage in the default browser as Scrapy sees it (disable JavaScript for extra fidelity)</b>`scrapy view [url]`<br><b>Open Scrapy shell for URL, which allows interaction with the page source in a Python shell (or IPython if available)</b>`scrapy shell [url]`


title: TLDR
content:
<b>Install an SDK version</b>`sdk install [sdk_name] [sdk_version]`<br><b>Use a specific SDK version for the current terminal session</b>`sdk use [sdk_name] [sdk_version]`<br><b>Show the stable version of any available SDK</b>`sdk current [sdk_name]`<br><b>Show the stable versions of all installed SDKs</b>`sdk current`<br><b>List all available SDKs</b>`sdk list`<br><b>List all versions of an SDK</b>`sdk list [sdk_name]`<br><b>Upgrade an SDK to the latest stable version</b>`sdk upgrade [sdk_name]`<br><b>Uninstall a specific SDK version</b>`sdk rm [sdk_name] [sdk_version]`


title: TLDR
content:
<b>Create a serverless project</b>`serverless create`<br><b>Create a serverless project from a template</b>`serverless create --template [template_name]`<br><b>Deploy to a cloud provider</b>`serverless deploy`<br><b>Display information about a serverless project</b>`serverless info`<br><b>Invoke a deployed function</b>`serverless invoke -f [function_name]`<br><b>Follow the logs for a project</b>`serverless logs [[-t|--tail]]`


title: TLDR
content:
<b>Create a skeleton shard.yml file</b>`shards init`<br><b>Install dependencies from a shard.yml file</b>`shards install`<br><b>Update all dependencies</b>`shards update`<br><b>List all installed dependencies</b>`shards list`<br><b>Display version of dependency</b>`shards version [path/to/dependency_directory]`


title: TLDR
content:
<b>Compile a shell script</b>`shc -f [script]`<br><b>Compile a shell script and specify an output binary file</b>`shc -f [script] -o [binary]`<br><b>Compile a shell script and set an expiration date for the executable</b>`shc -f [script] -e [dd/mm/yyyy]`<br><b>Compile a shell script and set a message to display upon expiration</b>`shc -f [script] -e [dd/mm/yyyy] -m "[Please contact your provider]"`


title: TLDR
content:
<b>Check a shell script</b>`shellcheck [path/to/script.sh]`<br><b>Check a shell script interpreting it as the specified shell dialect (overrides the shebang at the top of the script)</b>`shellcheck [[-s|--shell]] [sh|bash|dash|ksh] [path/to/script.sh]`<br><b>Ignore one or more error types</b>`shellcheck [[-e|--exclude]] [SC1009,SC1073,...] [path/to/script.sh]`<br><b>Also check any sourced shell scripts</b>`shellcheck [[-a|--check-sourced]] [path/to/script.sh]`<br><b>Display output in the specified format (defaults to tty)</b>`shellcheck [[-f|--format]] [tty|checkstyle|diff|gcc|json|json1|quiet] [path/to/script.sh]`<br><b>Enable one or more [o]ptional checks</b>`shellcheck [[-o|--enable]] [add-default-case,avoid-nullary-conditions,...] [path/to/script.sh]`<br><b>List all available optional checks that are disabled by default</b>`shellcheck --list-optional`<br><b>Adjust the level of severity to consider (defaults to style)</b>`shellcheck [[-S|--severity]] [error|warning|info|style] [path/to/script.sh]`


title: TLDR
content:
<b>List of all settable options and whether they are set</b>`shopt`<br><b>Set an option</b>`shopt -s [option_name]`<br><b>Unset an option</b>`shopt -u [option_name]`<br><b>Print a list of all options and their status formatted as runnable shopt commands</b>`shopt -p`<br><b>Display help</b>`help shopt`


title: TLDR
content:
<b>Launch silentcast</b>`silentcast`<br><b>Launch silentcast on a specific display</b>`silentcast --display=[display]`


title: TLDR
content:
<b>Show a quick summary overview of the cluster</b>`sinfo [[-s|--summarize]]`<br><b>View the detailed status of all partitions across the entire cluster</b>`sinfo`<br><b>View the detailed status of a specific partition</b>`sinfo [[-p|--partition]] [partition_name]`<br><b>View information about idle nodes</b>`sinfo [[-t|--states]] [idle]`<br><b>Summarise dead nodes</b>`sinfo [[-d|--dead]]`<br><b>List dead nodes and the reasons why</b>`sinfo [[-R|--list-reasons]]`


title: TLDR
content:
<b>Download a remote image from Sylabs Cloud</b>`singularity pull --name [image.sif] [library://godlovedc/funny/lolcow:latest]`<br><b>Rebuild a remote image using the latest Singularity image format</b>`singularity build [image.sif] [docker://godlovedc/lolcow]`<br><b>Start a container from an image and get a shell inside it</b>`singularity shell [image.sif]`<br><b>Start a container from an image and run a command</b>`singularity exec [image.sif] [command]`<br><b>Start a container from an image and execute the internal runscript</b>`singularity run [image.sif]`<br><b>Build a singularity image from a recipe file</b>`sudo singularity build [image.sif] [recipe]`


title: TLDR
content:
<b>Build the artifacts</b>`skaffold build [[-f|--filename]] [skaffold.yaml]`<br><b>Build and deploy your app every time your code changes</b>`skaffold dev [[-f|--filename]] [skaffold.yaml]`<br><b>Run a pipeline file</b>`skaffold run [[-f|--filename]] [skaffold.yaml]`<br><b>Run a diagnostic on Skaffold</b>`skaffold diagnose [[-f|--filename]] [skaffold.yaml]`<br><b>Deploy the artifacts</b>`skaffold deploy [[-f|--filename]] [skaffold.yaml]`


title: TLDR
content:
<b>Upload a file/folder to Google Drive</b>`skicka upload [path/to/local] [path/to/remote]`<br><b>Download a file/folder from Google Drive</b>`skicka download [path/to/remote] [path/to/local]`<br><b>List files</b>`skicka ls [path/to/folder]`<br><b>Show amount of space used by children folders</b>`skicka du [path/to/parent_folder]`<br><b>Create a folder</b>`skicka mkdir [path/to/folder]`<br><b>Delete a file</b>`skicka rm [path/to/file]`


title: TLDR
content:
<b>Let a steam locomotive run through your terminal</b>`sl`<br><b>The train burns, people scream</b>`sl -a`<br><b>Let the train fly</b>`sl -F`<br><b>Make the train little</b>`sl -l`<br><b>Let the user exit (<Ctrl c>)</b>`sl -e`


title: TLDR
content:
<b>Post a file to Slack</b>`slackcat [[-c|--channel]] [channel_name] [path/to/file]`<br><b>Post a file to Slack with a custom filename</b>`slackcat [[-c|--channel]] [channel_name] [[-n|--filename]] [filename] [path/to/file]`<br><b>Pipe command output to Slack as a text snippet</b>`[command] | slackcat [[-c|--channel]] [channel_name] [[-n|--filename]] [snippet_name]`<br><b>Stream command output to Slack continuously</b>`[command] | slackcat [[-c|--channel]] [channel_name] [[-s|--stream]]`


title: TLDR
content:
<b>Update the list of available packages and versions</b>`slapt-get --update`<br><b>Install a package, or update it to the latest available version</b>`slapt-get --install [package]`<br><b>Remove a package</b>`slapt-get --remove [package]`<br><b>Upgrade all installed packages to their latest available versions</b>`slapt-get --upgrade`<br><b>Locate packages by the package name, disk set, or version</b>`slapt-get --search [query]`<br><b>Show information about a package</b>`slapt-get --show [package]`


title: TLDR
content:
<b>Convert a Slim file to HTML</b>`slimrb [input.slim] [output.html]`<br><b>Convert a Slim file and output to prettified HTML</b>`slimrb --pretty [input.slim] [output.html]`<br><b>Convert a Slim file to ERB</b>`slimrb --erb [input.slim] [output.erb]`


title: TLDR
content:
<b>Display a message in full-screen</b>`sm "[Hello World!]"`<br><b>Display a message with inverted colors</b>`sm [[-i|--invert]] "[Hello World!]"`<br><b>Display a message with a custom foreground color</b>`sm [[-f|--foreground]] [blue] "[Hello World!]"`<br><b>Display a message with a custom background color</b>`sm [[-b|--background]] [#008888] "[Hello World!]"`<br><b>Display a message rotated 3 times (in steps of 90 degrees, counterclockwise)</b>`sm [[-r|--rotate]] [3] "[Hello World!]"`<br><b>Display a message using the output from another command</b>`[echo "Hello World!"] | sm -`


title: TLDR
content:
<b>Generate a new StrongNaming key</b>`sn -k [path/to/key.snk]`<br><b>Re-sign an assembly with the specified private key</b>`sn -R [path/to/assembly.dll] [path/to/key_pair.snk]`<br><b>Show the public key of the private key that was used to sign an assembly</b>`sn -T [path/to/assembly.exe]`<br><b>Extract the public key to a file</b>`sn -e [path/to/assembly.dll] [path/to/output.pub]`


title: TLDR
content:
<b>List snapshot configs</b>`snapper list-configs`<br><b>Create snapper config</b>`snapper [[-c|--config]] [config] create-config [path/to/directory]`<br><b>Create a snapshot with a description</b>`snapper [[-c|--config]] [config] create [[-d|--description]] "[snapshot_description]"`<br><b>List snapshots for a config</b>`snapper [[-c|--config]] [config] list`<br><b>Delete a snapshot</b>`snapper [[-c|--config]] [config] delete [snapshot_number]`<br><b>Delete a range of snapshots</b>`snapper [[-c|--config]] [config] delete [snapshot1]-[snapshot2]`


title: TLDR
content:
<b>Log in to your Snyk account</b>`snyk auth`<br><b>Test your code for any known vulnerabilities</b>`snyk test`<br><b>Test a local Docker image for any known vulnerabilities</b>`snyk test --docker [docker_image]`<br><b>Record the state of dependencies and any vulnerabilities on snyk.io</b>`snyk monitor`<br><b>Auto patch and ignore vulnerabilities</b>`snyk wizard`


title: TLDR
content:
<b>Power off ([h]alt) immediately</b>`shutdown -h now`<br><b>Reboot immediately</b>`shutdown [[-r|--reboot]] now`<br><b>Reboot in 5 minutes</b>`shutdown [[-r|--reboot]] +[5] &`<br><b>Shutdown at 1:00 pm (Uses 24h clock)</b>`shutdown -h 13:00`<br><b>[c]ancel a pending shutdown/reboot operation</b>`shutdown -c`


title: TLDR
content:
<b>List connected Solos</b>`solo ls`<br><b>Update the currently connected Solo's firmware to the latest version</b>`solo key update`<br><b>Blink the LED of a specific Solo</b>`solo key wink --serial [serial_number]`<br><b>Generate random bytes using the currently connected Solo's secure random number generator</b>`solo key rng raw`<br><b>Monitor the serial output of a Solo</b>`solo monitor [path/to/serial_port]`


title: TLDR
content:
<b>Evaluate contents of a given file</b>`source [path/to/file]`<br><b>Evaluate contents of a given file (alternatively replacing source with .)</b>`. [path/to/file]`


title: TLDR
content:
<b>Merge two audio files into one</b>`sox [[-m|--combine mix]] [path/to/input_audio1] [path/to/input_audio2] [path/to/output_audio]`<br><b>Trim an audio file to the specified times</b>`sox [path/to/input_audio] [path/to/output_audio] trim [start] [duration]`<br><b>Normalize an audio file (adjust volume to the maximum peak level, without clipping)</b>`sox --norm [path/to/input_audio] [path/to/output_audio]`<br><b>Reverse and save an audio file</b>`sox [path/to/input_audio] [path/to/output_audio] reverse`<br><b>Print statistical data of an audio file</b>`sox [path/to/input_audio] [[-n|--null]] stat`<br><b>Increase the volume of an audio file by 2x</b>`sox [[-v|--volume]] 2.0 [path/to/input_audio] [path/to/output_audio]`


title: TLDR
content:
<b>Register your API token</b>`spark register [token]`<br><b>Display the currently registered API token</b>`spark token`<br><b>Create a new Spark project</b>`spark new [project_name]`<br><b>Create a new Spark project with Braintree stubs</b>`spark new [project_name] --braintree`<br><b>Create a new Spark project with team-based billing stubs</b>`spark new [project_name] --team-billing`


title: TLDR
content:
<b>Run this when you use a project for the first time</b><br>`spatial worker build`<br><br><b>Build workers for local deployment on Unity on macOS</b><br>`spatial worker build --target=development --target=Osx`<br><br><b>Build workers for local deployment on Unreal on Windows</b><br>`spatial worker build --target=local --target=Windows`<br><br><b>Deploy locally</b><br>`spatial local launch [launch_config] --snapshot=[snapshot_file]`<br><br><b>Launch a local worker to connect to your local deployment</b><br>`spatial local worker launch [worker_type] [launch_config]`<br><br><b>Upload an assembly to use for cloud deployments</b><br>`spatial cloud upload [assembly_name]`<br><br><b>Launch a cloud deployment</b><br>`spatial cloud launch [assembly_name] [launch_config] [deployment_name]`<br><br><b>Clean worker directories</b><br>`spatial worker clean`<br>


title: TLDR
content:
<b>Run a speed test</b>`speedtest-cli`<br><b>Run a speed test and display values in bytes, instead of bits</b>`speedtest-cli --bytes`<br><b>Run a speed test using HTTPS, instead of HTTP</b>`speedtest-cli --secure`<br><b>Run a speed test without performing download tests</b>`speedtest-cli --no-download`<br><b>Run a speed test and generate an image of the results</b>`speedtest-cli --share`<br><b>List all speedtest.net servers, sorted by distance</b>`speedtest-cli --list`<br><b>Run a speed test to a specific speedtest.net server</b>`speedtest-cli --server [server_id]`<br><b>Run a speed test and display the results as JSON (suppresses progress information)</b>`speedtest-cli --json`


title: TLDR
content:
<b>Build documentation</b>`sphinx-build [[-b|--builder]] [html|epub|text|latex|man|...] [path/to/source_directory] [path/to/build_directory]`<br><b>Build documentations intended for readthedocs.io (requires the sphinx-rtd-theme pip package)</b>`sphinx-build [[-b|--builder]] [html] [path/to/docs_directory] [path/to/build_directory]`


title: TLDR
content:
<b>Create a new project using the default template</b>`spike new [project_name]`<br><b>Compile your project, watch for changes, and auto-reload the browser</b>`spike watch`<br><b>Compile your project once to the "public" directory</b>`spike compile`<br><b>Remove the output directory</b>`spike clean`


title: TLDR
content:
<b>List all queues</b>`sqsc lq [queue_prefix]`<br><b>List all messages in a queue</b>`sqsc ls [queue_name]`<br><b>Copy all messages from one queue to another</b>`sqsc cp [source_queue] [destination_queue]`<br><b>Move all messages from one queue to another</b>`sqsc mv [source_queue] [destination_queue]`<br><b>Describe a queue</b>`sqsc describe [queue_name]`<br><b>Query a queue with SQL syntax</b>`sqsc query "SELECT body FROM [queue_name] WHERE body LIKE '%user%'"`<br><b>Pull all messages from a queue into a local SQLite database in your present working directory</b>`sqsc pull [queue_name]`


title: TLDR
content:
<b>View the queue</b>`squeue`<br><b>View jobs queued by a specific user</b>`squeue [[-u|--user]] [username]`<br><b>View the queue and refresh every 5 seconds</b>`squeue [[-i|--iterate]] [5]`<br><b>View the queue with expected start times</b>`squeue --start`


title: TLDR
content:
<b>Remove a file after a single-pass overwriting with random data</b>`srm [[-s|--simple]] [path/to/file]`<br><b>Remove a file after seven passes of overwriting with random data</b>`srm -m [path/to/file]`<br><b>Recursively remove a directory and its contents overwriting each file with a single-pass of random data</b>`srm [[-r|--recursive]] [[-s|--simple]] [path/to/directory]`<br><b>Prompt before every removal</b>`srm [[-i|--interactive]] [\*]`


title: TLDR
content:
<b>Mount remote directory</b>`sshfs [username]@[remote_host]:[remote_directory] [mountpoint]`<br><b>Unmount remote directory</b>`umount [mountpoint]`<br><b>Mount remote directory from server with specific port</b>`sshfs [username]@[remote_host]:[remote_directory] -p [2222]`<br><b>Use compression</b>`sshfs [username]@[remote_host]:[remote_directory] -C`<br><b>Follow symbolic links</b>`sshfs -o follow_symlinks [username]@[remote_host]:[remote_directory] [mountpoint]`


title: TLDR
content:
<b>Connect to a remote server using a password supplied on a file descriptor (in this case, stdin)</b>`sshpass -d [0] ssh [user]@[hostname]`<br><b>Connect to a remote server with the password supplied as an option, and automatically accept unknown SSH keys</b>`sshpass -p [password] ssh -o StrictHostKeyChecking=no [user]@[hostname]`<br><b>Connect to a remote server using the first line of a file as the password, automatically accept unknown SSH keys, and launch a command</b>`sshpass -f [path/to/file] ssh -o StrictHostKeyChecking=no [user]@[hostname] "[command]"`


title: TLDR
content:
<b>Forward all IPv4 TCP traffic via a remote SSH server</b>`sshuttle [[-r|--remote]] [username]@[sshserver] [0.0.0.0/0]`<br><b>Also forward all DNS traffic to the server's default DNS resolver</b>`sshuttle --dns [[-r|--remote]] [username]@[sshserver] [0.0.0.0/0]`<br><b>Forward all traffic except that which is bound for a specific subnet</b>`sshuttle [[-r|--remote]] [username]@[sshserver] [0.0.0.0/0] [[-x|--exclude]] [192.168.0.1/24]`<br><b>Use the tproxy method to forward all IPv4 and IPv6 traffic</b>`sshuttle --method tproxy [[-r|--remote]] [username]@[sshserver] [0.0.0.0/0] [::/0] [[-x|--exclude]] [your_local_ip_address] [[-x|--exclude]] [ssh_server_ip_address]`


title: TLDR
content:
<b>Read 4096 bytes from the device starting from 0x8000000</b>`st-flash read [firmware].bin 0x8000000 4096`<br><b>Write firmware to device starting from 0x8000000</b>`st-flash write [firmware].bin 0x8000000`<br><b>Erase firmware from device</b>`st-flash erase`


title: TLDR
content:
<b>Display amount of program memory available</b>`st-info --flash`<br><b>Display amount of SRAM memory available</b>`st-info --sram`<br><b>Display summarized information of the device</b>`st-info --probe`


title: TLDR
content:
<b>Run GDB server on port 4500</b>`st-util [[-p|--listen_port]] [4500]`<br><b>Connect to GDB server within gdb</b>`target extended-remote [localhost]:[4500]`<br><b>Write firmware to device</b>`load [firmware.elf]`


title: TLDR
content:
<b>Create a new package</b>`stack new [package] [template]`<br><b>Compile a package</b>`stack build`<br><b>Run tests inside a package</b>`stack test`<br><b>Compile a project and re-compile every time a file changes</b>`stack build --file-watch`<br><b>Compile a project and execute a command after compilation</b>`stack build --exec "[command]"`<br><b>Run a program and pass an argument to it</b>`stack exec [program] -- [argument]`


title: TLDR
content:
<b>Lint all JavaScript source files in the current directory</b>`standard`<br><b>Lint specific JavaScript file(s)</b>`standard [path/to/file1 path/to/file2 ...]`<br><b>Apply automatic fixes during linting</b>`standard --fix`<br><b>Declare any available global variables</b>`standard --global [variable]`<br><b>Use a custom ESLint plugin when linting</b>`standard --plugin [plugin]`<br><b>Use a custom JS parser when linting</b>`standard --parser [parser]`<br><b>Use a custom ESLint environment when linting</b>`standard --env [environment]`


title: TLDR
content:
<b>Tail all pods within a current namespace</b>`stern .`<br><b>Tail all pods with a specific status</b>`stern . --container-state [running|waiting|terminated]`<br><b>Tail all pods that matches a given regex</b>`stern [pod_query]`<br><b>Tail matched pods from all namespaces</b>`stern [pod_query] --all-namespaces`<br><b>Tail matched pods from 15 minutes ago</b>`stern [pod_query] --since [15m]`<br><b>Tail matched pods with a specific label</b>`stern [pod_query] --selector [release=canary]`


title: TLDR
content:
<b>Get cluster status</b>`stolonctl --cluster-name [cluster_name] --store-backend [store_backend] --store-endpoints [store_endpoints] status`<br><b>Get cluster data</b>`stolonctl --cluster-name [cluster_name] --store-backend [store_backend] --store-endpoints [store_endpoints] clusterdata`<br><b>Get cluster specification</b>`stolonctl --cluster-name [cluster_name] --store-backend [store_backend] --store-endpoints [store_endpoints] spec`<br><b>Update cluster specification with a patch in JSON format</b>`stolonctl --cluster-name [cluster_name] --store-backend [store_backend] --store-endpoints [store_endpoints] update --patch '[cluster_spec]'`


title: TLDR
content:
<b>Symlink all files recursively to a given directory</b>`stow [[-t|--target]] [path/to/target_directory] [file1 directory1 file2 directory2]`<br><b>Delete symlinks recursively from a given directory</b>`stow [[-D|--delete]] [[-t|--target]] [path/to/target_directory] [file1 directory1 file2 directory2]`<br><b>Simulate to see what the result would be like</b>`stow [[-n|--simulate]] [[-t|--target]] [path/to/target_directory] [file1 directory1 file2 directory2]`<br><b>Delete and resymlink</b>`stow [[-R|--restow]] [[-t|--target]] [path/to/target_directory] [file1 directory1 file2 directory2]`<br><b>Exclude files matching a regex</b>`stow --ignore=[regex] [[-t|--target]] [path/to/target_directory] [file1 directory1 file2 directory2]`


title: TLDR
content:
<b>Find subdomains for a specific domain</b>`subfinder [[-d|-domain]] [example.com]`<br><b>Show only the subdomains found</b>`subfinder -silent [[-d|-domain]] [example.com]`<br><b>Show only active subdomains</b>`subfinder [[-nW|-active]] [[-d|-domain]] [example.com]`<br><b>Use all sources for enumeration</b>`subfinder -all [[-d|-domain]] [example.com]`<br><b>Use a given comma-separated list of [r]esolvers</b>`subfinder -r [8.8.8.8,1.1.1.1,...] [[-d|-domain]] [example.com]`


title: TLDR
content:
<b>Open the current directory in Sublime Text</b>`subl .`<br><b>Open a file or directory in Sublime Text</b>`subl [path/to/file_or_directory]`<br><b>Open a file and jump to a specific line number</b>`subl [path/to/file]:[line_number]`<br><b>Open a file or directory in the currently open window</b>`subl [[-a|--add]] [path/to/file_or_directory]`<br><b>Open a file or directory in a new window</b>`subl [[-n|--new-window]] [path/to/file_or_directory]`


title: TLDR
content:
<b>Download English subtitles for a video</b>`subliminal download [[-l|--language]] [en] [video.ext]`


title: TLDR
content:
<b>Show the status of a process (or all processes if process_name is not specified)</b>`supervisorctl status [process_name]`<br><b>Start/stop/restart a process</b>`supervisorctl [start|stop|restart] [process_name]`<br><b>Start/stop/restart all processes in a group</b>`supervisorctl [start|stop|restart] [group_name]:*`<br><b>Show last 100 bytes of process stderr</b>`supervisorctl tail -100 [process_name] stderr`<br><b>Keep displaying stdout of a process</b>`supervisorctl tail -f [process_name] stdout`<br><b>Reload process configuration file to add/remove processes as necessary</b>`supervisorctl update`


title: TLDR
content:
<b>Start supervisord with specified configuration file</b>`supervisord [[-c|--configuration]] [path/to/file]`<br><b>Run supervisord in the foreground</b>`supervisord [[-n|--nodaemon]]`


title: TLDR
content:
<b>Upload a new site to surge.sh</b>`surge [path/to/my_project]`<br><b>Deploy site to custom domain (note that the DNS records must point to the surge.sh subdomain)</b>`surge [path/to/my_project] [example.com]`<br><b>List your surge projects</b>`surge list`<br><b>Remove a project</b>`surge teardown [example.com]`


title: TLDR
content:
<b>Start a service</b>`sudo sv up [path/to/service]`<br><b>Stop a service</b>`sudo sv down [path/to/service]`<br><b>Get service status</b>`sudo sv status [path/to/service]`<br><b>Reload a service</b>`sudo sv reload [path/to/service]`<br><b>Start a service, but only if it's not running and don't restart it if it stops</b>`sudo sv once [path/to/service]`


title: TLDR
content:
<b>Optimize an SVG</b>`svgcleaner [input.svg] [output.svg]`<br><b>Optimize an SVG multiple times</b>`svgcleaner --multipass [input.svg] [output.svg]`


title: TLDR
content:
<b>Optimize a file using the default plugins (overwrites the original file)</b>`svgo [test.svg]`<br><b>Optimize a file and save the result to another file</b>`svgo [test.svg] [[-o|--output]] [test.min.svg]`<br><b>Optimize all SVG files within a directory (overwrites the original files)</b>`svgo [[-f|--folder]] [path/to/directory_with_svg_files]`<br><b>Optimize all SVG files within a directory and save the resulting files to another directory</b>`svgo [[-f|--folder]] [path/to/input_directory] [[-o|--output]] [path/to/output_directory]`<br><b>Optimize SVG content passed from another command, and save the result to a file</b>`[cat test.svg] | svgo [[-i|--input]] - [[-o|--output]] [test.min.svg]`<br><b>Optimize a file and print out the result</b>`svgo [test.svg] [[-o|--output]] -`<br><b>Show available plugins</b>`svgo --show-plugins`


title: TLDR
content:
<b>Generate documentation and code from an OpenAPI/swagger file</b>`swagger-codegen generate [[-i|--input-spec]] [swagger_file] [[-l|--lang]] [language]`<br><b>Generate Java code using the library retrofit2 and the option useRxJava2</b>`swagger-codegen generate [[-i|--input-spec]] [http://petstore.swagger.io/v2/swagger.json] [[-l|--lang]] [java] --library [retrofit2] -D[useRxJava2]=[true]`<br><b>List available languages</b>`swagger-codegen langs`<br><b>Display help for a specific command</b>`swagger-codegen [generate|config-help|meta|langs|version] --help`


title: TLDR
content:
<b>Start a REPL (interactive shell)</b>`swift repl`<br><b>Execute a program</b>`swift [file.swift]`<br><b>Start a new project with the package manager</b>`swift package init`<br><b>Generate an Xcode project file</b>`swift package generate-xcodeproj`<br><b>Update dependencies</b>`swift package update`<br><b>Compile project for release</b>`swift build -c release`


title: TLDR
content:
<b>Create a new Symfony project</b>`symfony new [name]`<br><b>Run a local web server</b>`symfony serve`<br><b>Stop the local web server</b>`symfony server:stop`<br><b>Check for security issues in the project's dependencies</b>`symfony security:check`


title: TLDR
content:
<b>Flush all pending write operations on all disks</b>`sync`<br><b>Flush all pending write operations on a single file to disk</b>`sync [path/to/file]`<br><b>Flush writes and drop file system caches (Linux only)</b>`sync; echo 3 | sudo tee /proc/sys/vm/drop_caches`<br><b>Flush disk writes and attempts to clear inactive memory and filesystem caches (macOS only)</b>`sync; sudo purge`


title: TLDR
content:
<b>Extract all tables from a PDF to a CSV file</b>`tabula -o [file.csv] [file.pdf]`<br><b>Extract all tables from a PDF to a JSON file</b>`tabula --format JSON -o [file.json] [file.pdf]`<br><b>Extract tables from pages 1, 2, 3, and 6 of a PDF</b>`tabula --pages [1-3,6] [file.pdf]`<br><b>Extract tables from page 1 of a PDF, guessing which portion of the page to examine</b>`tabula --guess --pages [1] [file.pdf]`<br><b>Extract all tables from a PDF, using ruling lines to determine cell boundaries</b>`tabula --spreadsheet [file.pdf]`<br><b>Extract all tables from a PDF, using blank space to determine cell boundaries</b>`tabula --no-spreadsheet [file.pdf]`


title: TLDR
content:
<b>Add a new task which is due tomorrow</b>`task add [description] due:[tomorrow]`<br><b>Update a task's priority</b>`task [task_id] modify priority:[H|M|L]`<br><b>Complete a task</b>`task [task_id] done`<br><b>Delete a task</b>`task [task_id] delete`<br><b>List all open tasks</b>`task list`<br><b>List open tasks due before the end of the week</b>`task list due.before:[eow]`<br><b>Show a graphical burndown chart, by day</b>`task burndown.daily`<br><b>List all reports</b>`task reports`


title: TLDR
content:
<b>Add a new task to a board</b>`tb --task [task_description] @[board_name]`<br><b>Add a new note to a board</b>`tb --note [note_description] @[board_name]`<br><b>Edit item's priority</b>`tb --priority @[item_id] [priority]`<br><b>Check/uncheck item</b>`tb --check [item_id]`<br><b>Archive all checked items</b>`tb --clear`<br><b>Move item to a board</b>`tb --move @[item_id] [board_name]`


title: TLDR
content:
<b>Perform a topological sort consistent with a partial sort per line of input separated by blanks</b>`tsort [path/to/file]`<br><b>Perform a topological sort consistent on strings</b>`echo -e "[UI Backend\nBackend Database\nDocs UI]" | tsort`


title: TLDR
content:
<b>Change the password of the current user interactively</b>`passwd`<br><b>Change the password of a specific user</b>`sudo passwd [username]`<br><b>Get the current status of the user</b>`passwd [[-S|--status]]`<br><b>Make the password of the account blank (it will set the named account passwordless)</b>`passwd [[-d|--delete]]`<br><b>Set password programmatically (ideal for install scripts)</b>`yes [password] | passwd`


title: TLDR
content:
<b>Create the global configuration directory</b>`terminalizer init`<br><b>Record the terminal and create a recording file</b>`terminalizer record [path/to/recording.gif]`<br><b>Play a recorded file on the terminal</b>`terminalizer play [path/to/recording.gif]`<br><b>Render a recording file as an animated GIF image</b>`terminalizer render [path/to/recording.gif]`<br><b>Upload a video to <https://terminalizer.com></b>`terminalizer share [path/to/recording.gif]`


title: TLDR
content:
<b>Initialize a new or existing Terraform configuration</b>`terraform init`<br><b>Verify that the configuration files are syntactically valid</b>`terraform validate`<br><b>Format configuration according to Terraform language style conventions</b>`terraform fmt`<br><b>Generate and show an execution plan</b>`terraform plan`<br><b>Build or change infrastructure</b>`terraform apply`<br><b>Destroy Terraform-managed infrastructure</b>`terraform destroy`


title: TLDR
content:
<b>Recognize text in an image and save it to the given path (a .txt extension is added automatically)</b>`tesseract [path/to/image.png] [path/to/output_file]`<br><b>Specify a custom [l]anguage (default is English) with an ISO 639-2 code (e.g. deu = Deutsch = German)</b>`tesseract -l deu [path/to/image.png] [path/to/output]`<br><b>List the ISO 639-2 codes of installed languages</b>`tesseract --list-langs`<br><b>Specify a custom [p]age [s]egmentation [m]ode (default is 3)</b>`tesseract --psm [0..13] [path/to/image.png] [path/to/output]`<br><b>List page segmentation modes and their descriptions</b>`tesseract --help-psm`


title: TLDR
content:
<b>Open a new window showing the current directory</b>`thunar`<br><b>Open the bulk rename utility</b>`thunar --bulk-rename`<br><b>Close all open thunar windows</b>`thunar --quit`


title: TLDR
content:
<b>Show the sequence of commits starting from the current one in reverse chronological order</b>`tig`<br><b>Show the history of a specific branch</b>`tig [branch]`<br><b>Show the history of specific files or directories</b>`tig [path1 path2 ...]`<br><b>Show the difference between two references (such as branches or tags)</b>`tig [base_ref]..[compared_ref]`<br><b>Browse git blame interactively (press <,> to jump to parent)</b>`tig blame [path/to/file]`<br><b>Display commits from all branches and stashes</b>`tig --all`<br><b>Start in stash view, displaying all saved stashes</b>`tig stash`<br><b>Display help in TUI</b>`<h>`


title: TLDR
content:
<b>Start tracking an activity</b>`timew start`<br><b>Tag the current activity</b>`timew tag [activity_tag]`<br><b>Start tracking and tag a new activity</b>`timew start [activity_tag]`<br><b>Stop the current activity</b>`timew stop`<br><b>Track an activity in the past</b>`timew track [start_time] - [end_time] [activity_tag]`<br><b>View tracked items of the day</b>`timew summary`<br><b>View report for the last day, week, current month, etc.</b>`timew summary :[today|yesterday|week|lastweek|month|lastmonth|year|lastyear]`


title: TLDR
content:
<b>Print the tldr page for a specific command (hint: this is how you got here!)</b>`tldr [command]`<br><b>Print the tldr page for a specific subcommand</b>`tldr [command] [subcommand]`<br><b>Print the tldr page for a command in the given language (if available, otherwise fall back to English)</b>`tldr [[-L|--language]] [language_code] [command]`<br><b>Print the tldr page for a command from a specific platform</b>`tldr [[-p|--platform]] [android|cisco-ios|common|dos|freebsd|linux|netbsd|openbsd|osx|sunos|windows] [command]`<br><b>Update the local cache of tldr pages</b>`tldr [[-u|--update]]`<br><b>List all pages for the current platform and common</b>`tldr [[-l|--list]]`<br><b>List all available subcommand pages for a command</b>`tldr [[-l|--list]] | grep [command] | column`<br><b>Print the tldr page for a random command</b>`tldr [[-l|--list]] | shuf [[-n|--head-count]] 1 | xargs tldr`


title: TLDR
content:
<b>Run sleep 10 and terminate it after 3 seconds</b>`timeout 3s sleep 10`<br><b>Send a signal to the command after the time limit expires (TERM by default, kill -l to list all signals)</b>`timeout [[-s|--signal]] [INT|HUP|KILL|...] [5s] [sleep 10]`<br><b>Send verbose output to stderr showing signal sent upon timeout</b>`timeout [[-v|--verbose]] [0.5s|1m|1h|1d|...] [command]`<br><b>Preserve the exit status of the command regardless of timing out</b>`timeout [[-p|--preserve-status]] [1s|1m|1h|1d|...] [command]`<br><b>Send a forceful KILL signal after certain duration if the command ignores initial signal upon timeout</b>`timeout [[-k|--kill-after]] [5m] [30s] [command]`


title: TLDR
content:
<b>Check the current system clock time</b>`timedatectl`<br><b>Set the local time of the system clock directly</b>`timedatectl set-time "[yyyy-MM-dd hh:mm:ss]"`<br><b>List available timezones</b>`timedatectl list-timezones`<br><b>Set the system timezone</b>`timedatectl set-timezone [timezone]`<br><b>Enable Network Time Protocol (NTP) synchronization</b>`timedatectl set-ntp on`<br><b>Change the hardware clock time standard to localtime</b>`timedatectl set-local-rtc 1`


title: TLDR
content:
<b>Display a report for the code in a directory and all subdirectories</b>`tokei [path/to/directory]`<br><b>Display a report for a directory excluding .min.js files</b>`tokei [path/to/directory] [[-e|--exclude]] [*.min.js]`<br><b>Display statistics for individual files in a directory</b>`tokei [path/to/directory] [[-f|--files]]`<br><b>Display a report for all files of type Rust and Markdown</b>`tokei [path/to/directory] [[-t|--type]] [Rust],[Markdown]`


title: TLDR
content:
<b>Create a new tomb with an initial size of 100 MB</b>`tomb dig -s [100] [encrypted_directory.tomb]`<br><b>Create a new key file that can be used to lock a tomb; user will be prompted for a password for the key</b>`tomb forge [encrypted_directory.tomb.key]`<br><b>Forcefully create a new key, even if the tomb isn't allowing key forging (due to swap)</b>`tomb forge [encrypted_directory.tomb.key] -f`<br><b>Initialize and lock an empty tomb using a key made with forge</b>`tomb lock [encrypted_directory.tomb] -k [encrypted_directory.tomb.key]`<br><b>Mount a tomb (by default in /media) using its key, making it usable as a regular filesystem directory</b>`tomb open [encrypted_directory.tomb] -k [encrypted_directory.tomb.key]`<br><b>Close a tomb (fails if the tomb is being used by a process)</b>`tomb close [encrypted_directory.tomb]`<br><b>Forcefully close all open tombs, killing any applications using them</b>`tomb slam all`<br><b>List all open tombs</b>`tomb list`


title: TLDR
content:
<b>Run tests on all test environments</b>`tox`<br><b>Create a tox.ini configuration</b>`tox-quickstart`<br><b>List the available environments</b>`tox [[-a|--listenvs-all]]`<br><b>Run tests on a specific environment (e.g. Python 3.6)</b>`tox -e [py36]`<br><b>Force the virtual environment to be recreated</b>`tox [[-r|--recreate]] -e [py27]`


title: TLDR
content:
<b>View a presentation</b>`tpp [path/to/file]`<br><b>Output a presentation</b>`tpp -t [type] -o [path/to/output] [path/to/file]`


title: TLDR
content:
<b>Start the server with the default configuration</b>`traefik`<br><b>Start the server with a custom configuration file</b>`traefik --ConfigFile [config_file.toml]`<br><b>Start the server with cluster mode enabled</b>`traefik --cluster`<br><b>Start server with web UI enabled</b>`traefik --web`


title: TLDR
content:
<b>Translate a word (language is detected automatically)</b>`trans "[word_or_sentence_to_translate]"`<br><b>Get a brief translation</b>`trans [[-b|-brief]] "[word_or_sentence_to_translate]"`<br><b>Translate a word into french</b>`trans :[fr] [word]`<br><b>Translate a word from German to English</b>`trans [de]:[en] [Schmetterling]`<br><b>Behave like a dictionary to get the meaning of a word</b>`trans [[-d|-dictionary]] [word]`


title: TLDR
content:
<b>Create stabilization file to be able to remove camera shakes</b>`transcode -J stabilize -i [input_file]`<br><b>Remove camera shakes after creating stabilization file, transform video using XviD</b>`transcode -J transform -i [input_file] -y xvid -o [output_file]`<br><b>Resize the video to 640x480 pixels and convert to MPEG4 codec using XviD</b>`transcode -Z 640x480 -i [input_file] -y xvid -o [output_file]`


title: TLDR
content:
<b>Download a specific torrent</b>`transmission-cli [url|magnet|path/to/file]`<br><b>Download a torrent to a specific directory</b>`transmission-cli [[-w|--download-dir]] [path/to/download_directory] [url|magnet|path/to/file]`<br><b>Create a torrent file from a specific file or directory</b>`transmission-cli --new [path/to/source_file_or_directory]`<br><b>Specify the download speed limit (in KB/s)</b>`transmission-cli [[-d|--downlimit]] [50] [url|magnet|path/to/file]`<br><b>Specify the upload speed limit (in KB/s)</b>`transmission-cli [[-u|--uplimit]] [50] [url|magnet|path/to/file]`<br><b>Use a specific port for connections</b>`transmission-cli [[-p|--port]] [port_number] [url|magnet|path/to/file]`<br><b>Force encryption for peer connections</b>`transmission-cli [[-er|--encryption-required]] [url|magnet|path/to/file]`<br><b>Use a Bluetack-formatted peer blocklist</b>`transmission-cli [[-b|--blocklist]] [blocklist_url|path/to/blocklist] [url|magnet|path/to/file]`


title: TLDR
content:
<b>Add a torrent file or magnet link to Transmission and download to a specified directory</b>`transmission-remote [hostname] [[-a|--all]] [torrent|url] [[-w|--download-dir]] /[path/to/download_directory]`<br><b>Change the default download directory</b>`transmission-remote [hostname] [[-w|--download-dir]] /[path/to/download_directory]`<br><b>List all torrents</b>`transmission-remote [hostname] [[-l|--list]]`<br><b>Start torrent 1 and 2, stop torrent 3</b>`transmission-remote [hostname] [[-t|--torrent]] "1,2" [[-s|--start]] [[-t|--torrent]] 3 [[-S|--stop]]`<br><b>Remove torrent 1 and 2, and also delete local data for torrent 2</b>`transmission-remote [hostname] [[-t|--torrent]] 1 [[-r|--remove]] [[-t|--torrent]] 2 [[-rad|--remove-and-delete]]`<br><b>Stop all torrents</b>`transmission-remote [hostname] [[-t|--torrent]] [all] [[-S|--stop]]`<br><b>Move torrents 1-10 and 15-20 to a new directory (which will be created if it does not exist)</b>`transmission-remote [hostname] [[-t|--torrent]] "1-10,15-20" --move /[path/to/new_directory]`


title: TLDR
content:
<b>Replace all occurrences of a character in a file, and print the result</b>`tr < [path/to/file] [find_character] [replace_character]`<br><b>Replace all occurrences of a character from another command's output</b>`echo [text] | tr [find_character] [replace_character]`<br><b>Map each character of the first set to the corresponding character of the second set</b>`tr < [path/to/file] '[abcd]' '[jkmn]'`<br><b>Delete all occurrences of the specified set of characters from the input</b>`tr < [path/to/file] [[-d|--delete]] '[input_characters]'`<br><b>Compress a series of identical characters to a single character</b>`tr < [path/to/file] [[-s|--squeeze-repeats]] '[input_characters]'`<br><b>Translate the contents of a file to upper-case</b>`tr < [path/to/file] "[:lower:]" "[:upper:]"`<br><b>Strip out non-printable characters from a file</b>`tr < [path/to/file] [[-cd|--complement --delete]] "[:print:]"`


title: TLDR
content:
<b>Send a file to the trash</b>`trash [path/to/file]`<br><b>List all files in the trash</b>`trash-list`<br><b>Interactively restore a file from the trash</b>`trash-restore`<br><b>Empty the trash</b>`trash-empty`<br><b>Permanently delete all files in the trash which are older than 10 days</b>`trash-empty 10`<br><b>Remove all files in the trash, which match a specific blob pattern</b>`trash-rm "[*.o]"`<br><b>Remove all files with a specific original location</b>`trash-rm /[path/to/file_or_directory]`


title: TLDR
content:
<b>Show column names</b>`trawl -n`<br><b>Filter interface names using a case-insensitive regex</b>`trawl -f wi`<br><b>List available interfaces</b>`trawl -i`<br><b>Include the loopback interface</b>`trawl -l`


title: TLDR
content:
<b>Synchronize and update all AUR packages</b>`trizen -Syua`<br><b>Install a new package</b>`trizen -S [package]`<br><b>Remove a package and its dependencies</b>`trizen -Rs [package]`<br><b>Search the package database for a keyword</b>`trizen -Ss [keyword]`<br><b>Show information about a package</b>`trizen -Si [package]`<br><b>List installed packages and versions</b>`trizen -Qe`


title: TLDR
content:
<b>Initialize a TypeScript project</b>`tsc --init`<br><b>Compile a TypeScript file into a JavaScript file with the same name</b>`tsc [path/to/file.ts]`<br><b>Compile a TypeScript file into JavaScript using a specific target syntax (default is ES3)</b>`tsc [[-t|--target]] [ES5|ES2015|ES2016|ES2017|ES2018|ESNEXT|...] [path/to/file.ts]`<br><b>Compile a TypeScript file into a JavaScript file with a custom name</b>`tsc --outFile [path/to/output_file.js] [path/to/input_file.ts]`<br><b>Compile all .ts files of a TypeScript project defined in a tsconfig.json file (--build can be omitted to build the project in the current working directory)</b>`tsc [[-b|--build]] [path/to/tsconfig.json]`<br><b>Run the compiler using command-line options and arguments fetched from a text file</b>`tsc @[args.txt]`<br><b>Type-check multiple JavaScript files, and output only the errors</b>`tsc --allowJs --checkJs --noEmit [src/**/*.js]`<br><b>Run the compiler in watch mode, which automatically recompiles code when it changes</b>`tsc [[-w|--watch]]`


title: TLDR
content:
<b>Create TSLint config</b>`tslint --init`<br><b>Lint on a given set of files</b>`tslint [path/to/file1.js path/to/file2.js ...]`<br><b>Fix lint issues</b>`tslint --fix`<br><b>Lint with the configuration file in the project root</b>`tslint --project [path/to/project_root]`


title: TLDR
content:
<b>Print the output of a command to the default printer (see lpstat command)</b>`echo "test" | lp`<br><b>Print a file to the default printer</b>`lp [path/to/file]`<br><b>Print a file to a named printer (see lpstat command)</b>`lp -d [printer_name] [path/to/file]`<br><b>Print n copies of a file to the default printer</b>`lp -n [n] [path/to/file]`<br><b>Print only certain pages to the default printer (print pages 1, 3-5, and 16)</b>`lp -P 1,3-5,16 [path/to/file]`<br><b>Resume printing a job</b>`lp -i [job_id] -H resume`


title: TLDR
content:
<b>Simply convert RAW files to JPEG</b>`ufraw-batch --out-type=jpg [input_file(s)]`<br><b>Simply convert RAW files to PNG</b>`ufraw-batch --out-type=png [input_file(s)]`<br><b>Extract the preview image from the raw file</b>`ufraw-batch --embedded-image [input_file(s)]`<br><b>Save the file with size up to the given maximums MAX1 and MAX2</b>`ufraw-batch --size=MAX1,MAX2 [input_file(s)]`


title: TLDR
content:
<b>Extract an archive to the current directory</b>`unar [path/to/archive]`<br><b>Extract an archive to the specified directory</b>`unar [[-o|-output-directory]] [path/to/directory] [path/to/archive]`<br><b>Force overwrite if files to be unpacked already exist</b>`unar [[-f|-force-overwrite]] [path/to/archive]`<br><b>Force rename if files to be unpacked already exist</b>`unar [[-r|-force-rename]] [path/to/archive]`<br><b>Force skip if files to be unpacked already exist</b>`unar [[-s|-force-skip]] [path/to/archive]`


title: TLDR
content:
<b>Convert blanks in each file to tabs, writing to stdout</b>`unexpand [path/to/file]`<br><b>Convert blanks to tabs, reading from stdout</b>`unexpand`<br><b>Convert all blanks, instead of just initial blanks</b>`unexpand [[-a|--all]] [path/to/file]`<br><b>Convert only leading sequences of blanks (overrides -a)</b>`unexpand --first-only [path/to/file]`<br><b>Have tabs a certain number of characters apart, not 8 (enables -a)</b>`unexpand [[-t|--tabs]] [number] [path/to/file]`


title: TLDR
content:
<b>Display each line once</b>`sort [path/to/file] | uniq`<br><b>Display only unique lines</b>`sort [path/to/file] | uniq [[-u|--unique]]`<br><b>Display only duplicate lines</b>`sort [path/to/file] | uniq [[-d|--repeated]]`<br><b>Display number of occurrences of each line along with that line</b>`sort [path/to/file] | uniq [[-c|--count]]`<br><b>Display number of occurrences of each line, sorted by the most frequent</b>`sort [path/to/file] | uniq [[-c|--count]] | sort [[-nr|--numeric-sort --reverse]]`


title: TLDR
content:
<b>Display a summary of the top 10 historical uptime records</b>`uprecords`<br><b>Display the top 25 records</b>`uprecords -m [25]`<br><b>Display the downtime between reboots instead of the kernel version</b>`uprecords -d`<br><b>Show the most recent reboots</b>`uprecords -B`<br><b>Don't truncate information</b>`uprecords -w`


title: TLDR
content:
<b>Create a Vagrantfile in the current directory with the base Vagrant box</b>`vagrant init`<br><b>Create a Vagrantfile with a box from the Vagrant Public Registry</b>`vagrant init [ubuntu/focal64]`<br><b>Start and provision the Vagrant environment</b>`vagrant up`<br><b>Suspend the machine</b>`vagrant suspend`<br><b>Halt the machine</b>`vagrant halt`<br><b>Connect to the machine via SSH</b>`vagrant ssh`<br><b>Output the SSH configuration file of the running Vagrant machine</b>`vagrant ssh-config`<br><b>List all local boxes</b>`vagrant box list`


title: TLDR
content:
<b>Use the (default) Memcheck tool to show a diagnostic of memory usage by program</b>`valgrind [program]`<br><b>Use Memcheck to report all possible memory leaks of program in full detail</b>`valgrind --leak-check=full --show-leak-kinds=all [program]`<br><b>Use the Cachegrind tool to profile and log CPU cache operations of program</b>`valgrind --tool=cachegrind [program]`<br><b>Use the Massif tool to profile and log heap memory and stack usage of program</b>`valgrind --tool=massif --stacks=yes [program]`


title: TLDR
content:
<b>Connect to a Vault server and initialize a new encrypted data store</b>`vault init`<br><b>Unseal (unlock) the vault, by providing one of the key shares needed to access the encrypted data store</b>`vault unseal [key-share-x]`<br><b>Authenticate the CLI client against the Vault server, using an authentication token</b>`vault auth [authentication_token]`<br><b>Store a new secret in the vault, using the generic back-end called "secret"</b>`vault write secret/[hello] value=[world]`<br><b>Read a value from the vault, using the generic back-end called "secret"</b>`vault read secret/[hello]`<br><b>Read a specific field from the value</b>`vault read -field=[field_name] secret/[hello]`<br><b>Seal (lock) the Vault server, by removing the encryption key of the data store from memory</b>`vault seal`


title: TLDR
content:
<b>List all VirtualBox virtual machines</b>`VBoxManage list vms`<br><b>Show information about a particular virtual machine</b>`VBoxManage showvminfo [name|uuid]`<br><b>Start a virtual machine</b>`VBoxManage startvm [name|uuid]`<br><b>Start a virtual machine in headless mode</b>`VBoxManage startvm [name|uuid] --type headless`<br><b>Shutdown the virtual machine and save its current state</b>`VBoxManage controlvm [name|uuid] savestate`<br><b>Shutdown down the virtual machine without saving its state</b>`VBoxManage controlvm [name|uuid] poweroff`<br><b>Update VBox extension packs</b>`VBoxManage extpack install --replace [VboxExtensionPackFileName]`<br><b>Display help</b>`VBoxManage --help`


title: TLDR
content:
<b>Initialize an (empty) repository</b>`vcsh init [repository_name]`<br><b>Clone a repository into a custom directory name</b>`vcsh clone [git_url] [repository_name]`<br><b>List all managed repositories</b>`vcsh list`<br><b>Execute a Git command on a managed repository</b>`vcsh [repository_name] [git_command]`<br><b>Push/pull all managed repositories to/from remotes</b>`vcsh [push|pull]`<br><b>Write a custom .gitignore file for a managed repository</b>`vcsh write-gitignore [repository_name]`


title: TLDR
content:
<b>Launch an attack lasting 30 seconds</b>`echo "[GET https://example.com]" | vegeta attack -duration=[30s]`<br><b>Launch an attack on a server with a self-signed HTTPS certificate</b>`echo "[GET https://example.com]" | vegeta attack -insecure -duration=[30s]`<br><b>Launch an attack with a rate of 10 requests per second</b>`echo "[GET https://example.com]" | vegeta attack -duration=[30s] -rate=[10]`<br><b>Launch an attack and display a report</b>`echo "[GET https://example.com]" | vegeta attack -duration=[30s] | vegeta report`<br><b>Launch an attack and plot the results on a graph (latency over time)</b>`echo "[GET https://example.com]" | vegeta attack -duration=[30s] | vegeta plot > [path/to/results.html]`<br><b>Launch an attack against multiple URLs from a file</b>`vegeta attack -duration=[30s] -targets=[requests.txt] | vegeta report`


title: TLDR
content:
<b>Create a backup containing all resources</b>`velero backup create [backup_name]`<br><b>List all backups</b>`velero backup get`<br><b>Delete a backup</b>`velero backup delete [backup_name]`<br><b>Create a weekly backup, each living for 90 days (2160 hours)</b>`velero schedule create [schedule_name] --schedules="[@every 7d]" --ttl [2160h0m0s]`<br><b>Create a restore from the latest successful backup triggered by specific schedule</b>`velero restore create --from-schedule [schedule_name]`


title: TLDR
content:
<b>Print logged in usernames</b>`users`<br><b>Print logged in usernames according to a given file</b>`users [/var/log/wmtp]`


title: TLDR
content:
<b>View an image</b>`viewnior [path/to/image.ext]`<br><b>View in fullscreen mode</b>`viewnior --fullscreen [path/to/image.ext]`<br><b>View fullscreen in slideshow mode</b>`viewnior --slideshow [path/to/image.ext]`


title: TLDR
content:
<b>Create a new environment</b>`virtualenv [path/to/venv]`<br><b>Customize the prompt prefix</b>`virtualenv --prompt [prompt_prefix] [path/to/venv]`<br><b>Use a different version of Python with virtualenv</b>`virtualenv [[-p|--python]] [path/to/pythonbin] [path/to/venv]`<br><b>Start (select) the environment</b>`source [path/to/venv]/bin/activate`<br><b>Stop the environment</b>`deactivate`


title: TLDR
content:
<b>Return the current VMware software version (exit status determines whether the system is a VM or not)</b>`vmware-checkvm`<br><b>Return the VMware hardware version</b>`vmware-checkvm -h`


title: TLDR
content:
<b>List all the extensions created by a publisher</b>`vsce list [publisher]`<br><b>Publish an extension as major, minor or patch version</b>`vsce publish [major|minor|patch]`<br><b>Unpublish an extension</b>`vsce unpublish [extension_id]`<br><b>Package the current working directory as a .vsix file</b>`vsce package`<br><b>Show the metadata associated with an extension</b>`vsce show [extension_id]`


title: TLDR
content:
<b>Create a new project using one of the default templates</b>`vue init [webpack|webpack-simple|browserify|browserify-simple|simple] [project_name]`<br><b>Create a new project using a local template</b>`vue init [path/to/template_directory] [project_name]`<br><b>Create a new project using a template from GitHub</b>`vue init [username]/[repo] [project_name]`


title: TLDR
content:
<b>Create a new Vue project interactively</b>`vue create [project_name]`<br><b>Create a new project with web UI</b>`vue ui`


title: TLDR
content:
<b>Run a Python web app</b>`waitress-serve [import.path:wsgi_func]`<br><b>Listen on port 8080 on localhost</b>`waitress-serve --listen=[localhost]:[8080] [import.path:wsgi_func]`<br><b>Start waitress on a Unix socket</b>`waitress-serve --unix-socket=[path/to/socket] [import.path:wsgi_func]`<br><b>Use 4 threads to process requests</b>`waitress-serve --threads=[4] [import.path:wsgifunc]`<br><b>Call a factory method that returns a WSGI object</b>`waitress-serve --call [import.path.wsgi_factory]`<br><b>Use the HTTPS URL scheme</b>`waitress-serve --url-scheme=[https] [import.path:wsgi_func]`


title: TLDR
content:
<b>Display the section headers of a given binary</b>`wasm-objdump [[-h|--headers]] [file.wasm]`<br><b>Display the entire disassembled output of a given binary</b>`wasm-objdump [[-d|--disassemble]] [file.wasm]`<br><b>Display the details of each section</b>`wasm-objdump [[-x|--details]] [file.wasm]`<br><b>Display the details of a given section</b>`wasm-objdump [[-j|--section]] '[import]' [[-x|--details]] [file.wasm]`


title: TLDR
content:
<b>Apply default optimizations and write to a given file</b>`wasm-opt -O [input.wasm] [[-o|--output]] [output.wasm]`<br><b>Apply all optimizations and write to a given file (takes more time, but generates optimal code)</b>`wasm-opt -O4 [input.wasm] [[-o|--output]] [output.wasm]`<br><b>Optimize a file for size</b>`wasm-opt -Oz [input.wasm] [[-o|--output]] [output.wasm]`<br><b>Print the textual representation of the binary to console</b>`wasm-opt [input.wasm] --print`


title: TLDR
content:
<b>Convert a file to a C source file and header and display it to the console</b>`wasm2c [file.wasm]`<br><b>Write the output to a given file (file.h gets additionally generated)</b>`wasm2c [file.wasm] [[-o|--output]] [file.c]`


title: TLDR
content:
<b>Convert a file to the text format and display it to the console</b>`wasm2wat [file.wasm]`<br><b>Write the output to a given file</b>`wasm2wat [file.wasm] [[-o|--output]] [file.wat]`


title: TLDR
content:
<b>Parse and check a file for errors</b>`wat2wasm [file.wat]`<br><b>Write the output binary to a given file</b>`wat2wasm [file.wat] [[-o|--output]] [file.wasm]`<br><b>Display simplified representation of every byte</b>`wat2wasm [[-v|--verbose]] [file.wat]`


title: TLDR
content:
<b>Render an HTML file to PDF</b>`weasyprint [path/to/input.html] [path/to/output.pdf]`<br><b>Render an HTML file to PNG, including an additional user stylesheet</b>`weasyprint [path/to/input.html] [path/to/output.png] --stylesheet [path/to/stylesheet.css]`<br><b>Output additional debugging information when rendering</b>`weasyprint [path/to/input.html] [path/to/output.pdf] --verbose`<br><b>Specify a custom resolution when outputting to PNG</b>`weasyprint [path/to/input.html] [path/to/output.png] --resolution [300]`<br><b>Specify a base URL for relative URLs in the input HTML file</b>`weasyprint [path/to/input.html] [path/to/output.png] --base-url [url_or_filename]`


title: TLDR
content:
<b>Run the web extension in the current directory in Firefox</b>`web-ext run`<br><b>Run a web extension from a specific directory in Firefox</b>`web-ext run --source-dir [path/to/directory]`<br><b>Display verbose execution output</b>`web-ext run --verbose`<br><b>Run a web extension in Firefox Android</b>`web-ext run --target firefox-android`<br><b>Lint the manifest and source files for errors</b>`web-ext lint`<br><b>Build and package the extension</b>`web-ext build`<br><b>Display verbose build output</b>`web-ext build --verbose`<br><b>Sign a package for self-hosting</b>`web-ext sign --api-key [api_key] --api-secret [api_secret]`


title: TLDR
content:
<b>Create a single output file from an entry point file</b>`webpack [app.js] [bundle.js]`<br><b>Load CSS files too from the JavaScript file (this uses the CSS loader for CSS files)</b>`webpack [app.js] [bundle.js] --module-bind '[css=css]'`<br><b>Pass a configuration file (with e.g. the entry script and the output filename) and show compilation progress</b>`webpack --config [webpack.config.js] --progress`<br><b>Automatically recompile on changes to project files</b>`webpack --watch [app.js] [bundle.js]`


title: TLDR
content:
<b>Download a torrent</b>`webtorrent download "[torrent_id]"`<br><b>Stream a torrent to VLC media player</b>`webtorrent download "[torrent_id]" --vlc`<br><b>Stream a torrent to a Digital Living Network Alliance (DLNA) device</b>`webtorrent download "[torrent_id]" --dlna`<br><b>Display a list of files for a specific torrent</b>`webtorrent download "[torrent_id]" --select`<br><b>Specify a file index from the torrent to download</b>`webtorrent download "[torrent_id]" --select [index]`<br><b>Seed a specific file or directory</b>`webtorrent seed [path/to/file_or_directory]`<br><b>Create a new torrent file for the specified file path</b>`webtorrent create [path/to/file]`<br><b>Display information for a magnet URI or .torrent file</b>`webtorrent info [path/to/file_or_magnet]`


title: TLDR
content:
<b>Read stdin and perform an action on every line</b>`while read line; do [echo "$line"]; done`<br><b>Execute a command forever once every second</b>`while :; do [command]; sleep 1; done`<br><b>Execute a command until it fails</b>`while [command]; do :; done`


title: TLDR
content:
<b>Start WordGrinder (loads a blank document by default)</b>`wordgrinder`<br><b>Open a given file</b>`wordgrinder [path/to/file]`<br><b>Show the menu</b>`<Alt m>`


title: TLDR
content:
<b>Run a benchmark for 30 seconds, using 12 threads, and keeping 400 HTTP connections open</b>`wrk [[-t|--threads]] [12] [[-c|--connections]] [400] [[-d|--duration]] [30s] "[http://127.0.0.1:8080/index.html]"`<br><b>Run a benchmark with a custom header</b>`wrk [[-t|--threads]] [2] [[-c|--connections]] [5] [[-d|--duration]] [5s] [[-H|--header]] "[Host: example.com]" "[http://example.com/index.html]"`<br><b>Run a benchmark with a request timeout of 2 seconds</b>`wrk [[-t|--threads]] [2] [[-c|--connections]] [5] [[-d|--duration]] [5s] --timeout [2s] "[http://example.com/index.html]"`


title: TLDR
content:
<b>Start wuzz</b>`wuzz`<br><b>Send an HTTP request</b>`<Ctrl r>`<br><b>Switch to the next view</b>`<Ctrl j><Tab>`<br><b>Switch to the previous view</b>`<Ctrl k><Shift Tab>`<br><b>Display help</b>`<F1>`


title: TLDR
content:
<b>Launch a VNC server that allows multiple clients to connect</b>`x11vnc -shared`<br><b>Launch a VNC server in view-only mode, and which won't terminate once the last client disconnects</b>`x11vnc -forever -viewonly`<br><b>Launch a VNC server on a specific display and screen (both starting at index zero)</b>`x11vnc -display :[display].[screen]`<br><b>Launch a VNC server on the third display's default screen</b>`x11vnc -display :[2]`<br><b>Launch a VNC server on the first display's second screen</b>`x11vnc -display :[0].[1]`


title: TLDR
content:
<b>View an XLSX or CSV file</b>`x_x [file.xlsx|file.csv]`<br><b>View an XLSX or CSV file, using the first row as table headers</b>`x_x [[-h|--heading]] [0] [file.xlsx|file.csv]`<br><b>View a CSV file with unconventional delimiters</b>`x_x [[-d|--delimiter]] '[;]' [[-q|--quotechar]] '[|]' [file.csv]`


title: TLDR
content:
<b>Create a xar archive of all files in a given directory</b>`xar -cf [archive.xar] [path/to/directory]`<br><b>List the contents of a given xar archive</b>`xar -tf [archive.xar]`<br><b>Extract the contents of a given xar archive to the current directory</b>`xar -xf [archive.xar]`


title: TLDR
content:
<b>View documentation for installing and updating packages</b>`tldr xbps-install`<br><b>View documentation for removing packages</b>`tldr xbps-remove`<br><b>View documentation for querying for package and repository information</b>`tldr xbps-query`


title: TLDR
content:
<b>Copy the output from a command to the X11 primary selection area (clipboard)</b>`echo 123 | xclip`<br><b>Copy the output from a command to a given X11 selection area</b>`echo 123 | xclip [[-se|-selection]] [primary|secondary|clipboard]`<br><b>Copy the output from a command to the system clipboard, using short notation</b>`echo 123 | xclip [[-se|-selection]] [[c|clipboard]]`<br><b>Copy the contents of a file into the system clipboard</b>`xclip [[-se|-selection]] [[c|clipboard]] [input_file.txt]`<br><b>Copy the contents of a PNG into the system clipboard (can be pasted in other programs correctly)</b>`xclip [[-se|-selection]] [[c|clipboard]] [[-t|-target]] image/png [input_file.png]`<br><b>Copy the user input in the console into the system clipboard</b>`xclip [[-i|-in]]`<br><b>Paste the contents of the X11 primary selection area to the console</b>`xclip [[-o|-out]]`<br><b>Paste the contents of the system clipboard to the console</b>`xclip [[-o|-out]] [[-se|-selection]] [[c|clipboard]]`


title: TLDR
content:
<b>Cut a file</b>`xcv x [input_file]`<br><b>Copy a file</b>`xcv c [input_file]`<br><b>Paste a file</b>`xcv v [output_file]`<br><b>List files available for pasting</b>`xcv l`


title: TLDR
content:
<b>Launch the screenshooter GUI</b>`xfce4-screenshooter`<br><b>Take a screenshot of the entire screen and launch the GUI to ask how to proceed</b>`xfce4-screenshooter [[-f|--fullscreen]]`<br><b>Take a screenshot of the entire screen and save it in the specified directory</b>`xfce4-screenshooter [[-f|--fullscreen]] [[-s|--save]] [path/to/directory]`<br><b>Wait some time before taking the screenshot</b>`xfce4-screenshooter [[-d|--delay]] [seconds]`<br><b>Take a screenshot of a region of the screen (select using the mouse)</b>`xfce4-screenshooter [[-r|--region]]`<br><b>Take a screenshot of the active window, and copy it to the clipboard</b>`xfce4-screenshooter [[-w|--window]] [[-c|--clipboard]]`<br><b>Take a screenshot of the active window, and open it with a chosen program</b>`xfce4-screenshooter [[-w|--window]] [[-o|--open]] [gimp]`


title: TLDR
content:
<b>Open a new terminal window</b>`xfce4-terminal`<br><b>Set the initial title</b>`xfce4-terminal --initial-title "[initial_title]"`<br><b>Open a new tab in the current terminal window</b>`xfce4-terminal --tab`<br><b>Execute a command in a new terminal window</b>`xfce4-terminal --command "[command_with_args]"`<br><b>Keep the terminal around after the executed command finishes executing</b>`xfce4-terminal --command "[command_with_args]" --hold`<br><b>Open multiple new tabs, executing a command in each</b>`xfce4-terminal --tab --command "[command1]" --tab --command "[command2]"`


title: TLDR
content:
<b>Start xman in three-button window</b>`xman`<br><b>Open the manual page output stored in a given file</b>`xman -helpfile [filename]`<br><b>Show both manual page and directory</b>`xman -bothshown`


title: TLDR
content:
<b>Lint files in the "src" directory</b>`xo`<br><b>Lint a given set of files</b>`xo [path/to/file1.js path/to/file2.js ...]`<br><b>Automatically fix any lint issues found</b>`xo --fix`<br><b>Lint using spaces as indentation instead of tabs</b>`xo --space`<br><b>Lint using the "prettier" code style</b>`xo --prettier`


title: TLDR
content:
<b>Use a command's output as input of the clipboard (equivalent to <Ctrl c>)</b>`echo 123 | xsel [[-ib|--input --clipboard]]`<br><b>Use the contents of a file as input of the clipboard</b>`cat [path/to/file] | xsel [[-ib|--input --clipboard]]`<br><b>Output the clipboard's contents into the terminal (equivalent to <Ctrl v>)</b>`xsel [[-ob|--output --clipboard]]`<br><b>Output the clipboard's contents into a file</b>`xsel [[-ob|--output --clipboard]] > [path/to/file]`<br><b>Clear the clipboard</b>`xsel [[-cb|--clear --clipboard]]`<br><b>Output the X11 primary selection's contents into the terminal (equivalent to a mouse <MiddleClick>)</b>`xsel [[-op|--output --primary]]`


title: TLDR
content:
<b>Inspect the headers of a file</b>`xsv headers [path/to/file.csv]`<br><b>Count the number of entries</b>`xsv count [path/to/file.csv]`<br><b>Get an overview of the shape of entries</b>`xsv stats [path/to/file.csv] | xsv table`<br><b>Select a few columns</b>`xsv select [column1,column2] [path/to/file.csv]`<br><b>Show 10 random entries</b>`xsv sample [10] [path/to/file.csv]`<br><b>Join a column from one file to another</b>`xsv join --no-case [column1] [path/to/file1.csv] [column2] [path/to/file2.csv] | xsv table`


title: TLDR
content:
<b>Lock the display and show a padlock instead of the cursor</b>`xtrlock`<br><b>Display a blank screen as well as the padlock cursor</b>`xtrlock -b`<br><b>Fork the xtrlock process and return immediately</b>`xtrlock -f`


title: TLDR
content:
<b>Yank using the default delimiters (\f, \n, \r, \s, \t)</b>`[sudo dmesg] | yank`<br><b>Yank an entire line</b>`[sudo dmesg] | yank -l`<br><b>Yank using a specific delimiter</b>`[echo hello=world] | yank -d [=]`<br><b>Only yank fields matching a specific pattern</b>`[ps ux] | yank -g "[[0-9]+]"`


title: TLDR
content:
<b>Install a module globally</b>`yarn global add [module_name]`<br><b>Install all dependencies referenced in the package.json file (the install is optional)</b>`yarn install`<br><b>Install a module and save it as a dependency to the package.json file (add --dev to save as a dev dependency)</b>`yarn add [module_name]@[version]`<br><b>Uninstall a module and remove it from the package.json file</b>`yarn remove [module_name]`<br><b>Interactively create a package.json file</b>`yarn init`<br><b>Identify whether a module is a dependency and list other modules that depend upon it</b>`yarn why [module_name]`


title: TLDR
content:
<b>Interactively search and install packages from the repos and AUR</b>`yay [package_name|search_term]`<br><b>Synchronize and update all packages from the repos and AUR</b>`yay`<br><b>Install a new package from the repos and AUR and do not ask to confirm transactions</b>`yay -S [package] --noconfirm`<br><b>Remove an installed package and both its dependencies and configuration files</b>`yay -Rns [package]`<br><b>Search the package database for a keyword from the repos and AUR</b>`yay -Ss [keyword]`<br><b>Remove orphaned packages (installed as dependencies but not required by any package)</b>`yay -Yc`<br><b>Clean pacman and yay caches (old package versions kept for rollback and downgrade purposes)</b>`yay -Scc`<br><b>Show statistics for installed packages and system health</b>`yay -Ps`


title: TLDR
content:
<b>Create a new scaffolded site, with SQLite as backend, in the my-project directory</b>`stack new [my-project] [yesod-sqlite]`<br><b>Install the Yesod CLI tool within a Yesod scaffolded site</b>`stack build yesod-bin cabal-install --install-ghc`<br><b>Start development server</b>`stack exec -- yesod devel`<br><b>Touch files with altered Template Haskell dependencies</b>`stack exec -- yesod touch`<br><b>Deploy application using Keter (Yesod's deployment manager)</b>`stack exec -- yesod keter`


title: TLDR
content:
<b>Download a video or playlist</b>`youtube-dl '[https://www.youtube.com/watch?v=oHg5SJYRHA0]'`<br><b>List all formats that a video or playlist is available in</b>`youtube-dl [[-F|--list-formats]] '[https://www.youtube.com/watch?v=Mwa0_nE9H7A]'`<br><b>Download a video or playlist at a specific quality</b>`youtube-dl [[-f|--format]] "[best[height<=480]]" '[https://www.youtube.com/watch?v=oHg5SJYRHA0]'`<br><b>Download the audio from a video and convert it to an MP3</b>`youtube-dl [[-x|--extract-audio]] --audio-format [mp3] '[url]'`<br><b>Download the best quality audio and video and merge them</b>`youtube-dl [[-f|--format]] bestvideo+bestaudio '[url]'`<br><b>Download video(s) as MP4 files with custom filenames</b>`youtube-dl [[-f|--format]] [mp4] [[-o|--output]] "[%(playlist_index)s-%(title)s by %(uploader)s on %(upload_date)s in %(playlist)s.%(ext)s]" '[url]'`<br><b>Download a particular language's subtitles along with the video</b>`youtube-dl --sub-lang [en] --write-sub '[https://www.youtube.com/watch?v=Mwa0_nE9H7A]'`<br><b>Download a playlist and extract MP3s from it</b>`youtube-dl [[-f|--format]] "bestaudio" [[-c|--continue]] [[-w|--no-overwrites]] [[-i|--ignore-errors]] [[-x|--extract-audio]] --audio-format mp3 [[-o|--output]] "%(title)s.%(ext)s" '[url_to_playlist]'`


title: TLDR
content:
<b>Go to a directory that contains string in the name</b>`z string`<br><b>Go to a directory that contains string1 and then string2</b>`z string1 string2`<br><b>Go to the highest-ranked directory matching string</b>`z -r string`<br><b>Go to the most recently accessed directory matching string</b>`z -t string`<br><b>List all directories in z's database matching string</b>`z -l string`<br><b>Remove the current directory from z's database</b>`z -x`<br><b>Restrict matches to subdirectories of the current directory</b>`z -c [string]`


title: TLDR
content:
<b>Compile a Lua source file to Lua bytecode</b>`luac -o [byte_code.luac] [source.lua]`<br><b>Do not include debug symbols in the output</b>`luac -s -o [byte_code.luac] [source.lua]`


title: TLDR
content:
<b>Show detailed configuration of all mounted ZFS zpools</b>`zdb`<br><b>Show detailed configuration for a specific ZFS pool</b>`zdb [[-C|--config]] [poolname]`<br><b>Show statistics about number, size and deduplication of blocks</b>`zdb [[-b|--block-stats]] [poolname]`


title: TLDR
content:
<b>List all available zfs filesystems</b>`zfs list`<br><b>Create a new ZFS filesystem</b>`zfs create [pool_name/filesystem_name]`<br><b>Delete a ZFS filesystem</b>`zfs destroy [pool_name/filesystem_name]`<br><b>Create a Snapshot of a ZFS filesystem</b>`zfs snapshot [pool_name/filesystem_name]@[snapshot_name]`<br><b>Enable compression on a filesystem</b>`zfs set compression=on [pool_name/filesystem_name]`<br><b>Change mountpoint for a filesystem</b>`zfs set mountpoint=/[path/to/mount_point] [pool_name/filesystem_name]`


title: TLDR
content:
<b>Optimize a PNG</b>`zopflipng [input.png] [output.png]`<br><b>Optimize several PNGs and save with given prefix</b>`zopflipng --prefix=[prefix] [image1.png image2.png image3.png ...]`


title: TLDR
content:
<b>Show the configuration and status of all ZFS zpools</b>`zpool status`<br><b>Check a ZFS pool for errors (verifies the checksum of EVERY block). Very CPU and disk intensive</b>`zpool scrub [pool_name]`<br><b>List zpools available for import</b>`zpool import`<br><b>Import a zpool</b>`zpool import [pool_name]`<br><b>Export a zpool (unmount all filesystems)</b>`zpool export [pool_name]`<br><b>Show the history of all pool operations</b>`zpool history [pool_name]`<br><b>Create a mirrored pool</b>`zpool create [pool_name] mirror [disk1] [disk2] mirror [disk3] [disk4]`<br><b>Add a cache (L2ARC) device to a zpool</b>`zpool add [pool_name] cache [cache_disk]`


title: TLDR
content:
<b>Check if zram is enabled</b>`lsmod | grep [[-i|--ignore-case]] zram`<br><b>Enable zram with a dynamic number of devices (use zramctl to configure devices further)</b>`sudo modprobe zram`<br><b>Enable zram with exactly 2 devices</b>`sudo modprobe zram num_devices=[2]`<br><b>Find and initialize the next free zram device to a 2 GB virtual drive using LZ4 compression</b>`sudo zramctl [[-f|--find]] [[-s|--size]] [2GB] [[-a|--algorithm]] [lz4]`<br><b>List currently initialized devices</b>`sudo zramctl`


title: TLDR
content:
<b>List existing pipelines on nf-core</b>`nf-core list`<br><b>Create a new pipeline skeleton</b>`nf-core create`<br><b>Lint the pipeline code</b>`nf-core lint [path/to/directory]`<br><b>Bump software versions in pipeline recipe</b>`nf-core bump-version [path/to/directory] [new_version]`<br><b>Launch an nf-core pipeline</b>`nf-core launch [pipeline_name]`<br><b>Download an nf-core pipeline for offline use</b>`nf-core download [pipeline_name]`


title: TLDR
content:
<b>Get the current screen brightness as a percentage</b>`xbacklight`<br><b>Set the screen brightness to 40%</b>`xbacklight -set [40]`<br><b>Increase current brightness by 25%</b>`xbacklight -inc [25]`<br><b>Decrease current brightness by 75%</b>`xbacklight -dec [75]`<br><b>Increase backlight to 100%, over 60 seconds (value given in ms), using 60 steps</b>`xbacklight -set [100] -time [60000] -steps [60]`


title: TLDR
content:
<b>Compute and display the WPA-PSK key for a given SSID reading the passphrase from stdin</b>`wpa_passphrase [SSID]`<br><b>Compute and display WPA-PSK key for a given SSID specifying the passphrase as an argument</b>`wpa_passphrase [SSID] [passphrase]`


title: TLDR
content:
<b>Create a wordlist file from the given URL up to 2 links depth</b>`cewl [[-d|--depth]] 2 [[-w|--write]] [path/to/wordlist.txt] [url]`<br><b>Output an alphanumeric wordlist from the given URL with words of minimum 5 characters</b>`cewl --with-numbers [[-m|--min_word_length]] 5 [url]`<br><b>Output a wordlist from the given URL in debug mode including email addresses</b>`cewl --debug [[-e|--email]] [url]`<br><b>Output a wordlist from the given URL using HTTP Basic or Digest authentication</b>`cewl --auth_type [basic|digest] --auth_user [username] --auth_pass [password] [url]`<br><b>Output a wordlist from the given URL through a proxy</b>`cewl --proxy_host [host] --proxy_port [port] [url]`


title: TLDR
content:
<b>Get the list of libraries and their dependencies</b>`pkg-config --libs [library1 library2 ...]`<br><b>Get the list of libraries, their dependencies, and proper cflags for gcc</b>`pkg-config --cflags --libs [library1 library2 ...]`<br><b>Compile your code with libgtk-3, libwebkit2gtk-4.0 and all their dependencies</b>`c++ example.cpp $(pkg-config --cflags --libs gtk+-3.0 webkit2gtk-4.0) -o example`


title: TLDR
content:
<b>Display the search path used to find man pages</b>`manpath`<br><b>Show the entire global manpath</b>`manpath [[-g|--global]]`


title: TLDR
content:
<b>List available scanners to ensure the target device is connected and recognized</b>`scanimage [[-L|--list-devices]]`<br><b>Scan an image and save it to a file</b>`scanimage --format [pnm|tiff|png|jpeg|pdf|...] > [path/to/new_image]`<br><b>Specify the device to scan from</b>`scanimage [[-d|--device]] [device_name] > [path/to/new_image]`<br><b>Specify resolution for the scanned image (default resolution is 75dpi)</b>`scanimage --resolution [300] > [path/to/new_image]`


title: TLDR
content:
<b>Display virtual memory statistics</b>`vmstat`<br><b>Display reports every 2 seconds for 5 times</b>`vmstat [2] [5]`


title: TLDR
content:
<b>Change the current user's SMB password</b>`smbpasswd`<br><b>Add a specified user to Samba and set password (user should already exist in system)</b>`sudo smbpasswd -a [username]`<br><b>Modify an existing Samba user's password</b>`sudo smbpasswd [username]`<br><b>Delete a Samba user (use pdbedit instead if the Unix account has been deleted)</b>`sudo smbpasswd -x [username]`


title: TLDR
content:
<b>Print the security context of the current execution context</b>`runcon`<br><b>Specify the domain to run a command in</b>`runcon [[-t|--type]] [domain]_t [command]`<br><b>Specify the context role to run a command with</b>`runcon [[-r|--role]] [role]_r [command]`<br><b>Specify the full context to run a command with</b>`runcon [user]_u:[role]_r:[domain]_t [command]`


title: TLDR
content:
<b>Open a text file</b>`gedit [path/to/file]`<br><b>Open multiple text files</b>`gedit [file1 file2 ...]`<br><b>Open a text file with a specific encoding</b>`gedit --encoding [UTF-8] [path/to/file]`<br><b>Display a list of supported encodings</b>`gedit --list-encodings`


title: TLDR
content:
<b>Get current setting</b>`ctrlaltdel`<br><b>Set CTRL+ALT+DEL to reboot immediately, without any preparation</b>`sudo ctrlaltdel hard`<br><b>Set CTRL+ALT+DEL to reboot "normally", giving processes a chance to exit first (send SIGINT to PID1)</b>`sudo ctrlaltdel soft`


title: TLDR
content:
<b>List all process IDs with given name</b>`pidof [bash]`<br><b>List a single process ID with given name</b>`pidof -s [bash]`<br><b>List process IDs including scripts with given name</b>`pidof -x [script.py]`<br><b>Kill all processes with given name</b>`kill $(pidof [name])`


title: TLDR
content:
<b>Set the keyboard in French AZERTY</b>`setxkbmap [fr]`<br><b>Set multiple keyboard layouts, their variants and switching option</b>`setxkbmap -layout [us,de] -variant [,qwerty] -option '[grp:alt_caps_toggle]'`<br><b>List all layouts</b>`localectl list-x11-keymap-layouts`<br><b>List variants for the layout</b>`localectl list-x11-keymap-variants [de]`<br><b>List available switching options</b>`localectl list-x11-keymap-options | grep grp:`<br><b>Display help</b>`setxkbmap -help`


title: TLDR
content:
<b>List network interfaces and their associated IP addresses</b>`ip [[a|address]]`<br><b>Filter to show only active network interfaces</b>`ip [[a|address]] [[s|show]] up`<br><b>Display information about a specific network interface</b>`ip [[a|address]] [[s|show]] [ethX]`<br><b>Add an IP address to a network interface</b>`sudo ip [[a|address]] [[a|add]] [ip_address] dev [ethX]`<br><b>Remove an IP address from a network interface</b>`sudo ip [[a|address]] [[d|delete]] [ip_address] dev [ethX]`<br><b>Delete all IP addresses in a given scope from a network interface</b>`sudo ip [[a|address]] [[f|flush]] [ethX] scope [global|host|link]`


title: TLDR
content:
<b>List enabled services and the runlevels they are added to</b>`rc-update`<br><b>List all services</b>`rc-update [[-v|--verbose]]`<br><b>Add a service to a runlevel</b>`sudo rc-update add [service_name] [runlevel]`<br><b>Delete a service from a runlevel</b>`sudo rc-update [[del|delete]] [service_name] [runlevel]`<br><b>Delete a service from all runlevels</b>`sudo rc-update [[-a|--all]] [[del|delete]] [service_name]`


title: TLDR
content:
<b>Scan a domain and save the results to an SQLite database</b>`dnsrecon [[-d|--domain]] [example.com] --db [path/to/database.sqlite]`<br><b>Scan a domain, specifying the nameserver and performing a zone transfer</b>`dnsrecon [[-d|--domain]] [example.com] [[-n|--name_server]] [nameserver.example.com] [[-t|--type]] axfr`<br><b>Scan a domain, using a brute-force attack and a dictionary of subdomains and hostnames</b>`dnsrecon [[-d|--domain]] [example.com] [[-D|--dictionary]] [path/to/dictionary.txt] [[-t|--type]] brt`<br><b>Scan a domain, performing a reverse lookup of IP ranges from the SPF record and saving the results to a JSON file</b>`dnsrecon [[-d|--domain]] [example.com] -s [[-j|--json]]`<br><b>Scan a domain, performing a Google enumeration and saving the results to a CSV file</b>`dnsrecon [[-d|--domain]] [example.com] -g [[-c|--csv]]`<br><b>Scan a domain, performing DNS cache snooping</b>`dnsrecon [[-d|--domain]] [example.com] [[-t|--type]] snoop [[-n|--name_server]] [nameserver.example.com] [[-D|--dictionary]] [path/to/dictionary.txt]`<br><b>Scan a domain, performing zone walking</b>`dnsrecon [[-d|--domain]] [example.com] [[-t|--type]] zonewalk`


title: TLDR
content:
<b>Compile and install terminfo for a terminal</b>`tic -xe [terminal] [path/to/terminal.info]`<br><b>Check terminfo file for errors</b>`tic -c [path/to/terminal.info]`<br><b>Print database locations</b>`tic -D`


title: TLDR
content:
<b>Search block devices by filesystem label</b>`findfs LABEL=[label]`<br><b>Search by filesystem UUID</b>`findfs UUID=[uuid]`<br><b>Search by partition label (GPT or MAC partition table)</b>`findfs PARTLABEL=[partition_label]`<br><b>Search by partition UUID (GPT partition table only)</b>`findfs PARTUUID=[partition_uuid]`


title: TLDR
content:
<b>Show CPU statistics at a 2 second interval for 10 times</b>`pidstat [2] [10]`<br><b>Show page faults and memory utilization</b>`pidstat -r`<br><b>Show input/output usage per process ID</b>`pidstat -d`<br><b>Show information on a specific PID</b>`pidstat -p [PID]`<br><b>Show memory statistics for all processes whose command name include "fox" or "bird"</b>`pidstat -C "[fox|bird]" -r -p ALL`


title: TLDR
content:
<b>Request the identification info of a given device</b>`sudo hdparm -I [/dev/device]`<br><b>Get the Advanced Power Management level</b>`sudo hdparm -B [/dev/device]`<br><b>Set the Advanced Power Management value (values 1-127 permit spin-down, and values 128-254 do not)</b>`sudo hdparm -B [1] [/dev/device]`<br><b>Display the device's current power mode status</b>`sudo hdparm -C [/dev/device]`<br><b>Force a drive to immediately enter standby mode (usually causes a drive to spin down)</b>`sudo hdparm -y [/dev/device]`<br><b>Put the drive into idle (low-power) mode, also setting its standby timeout</b>`sudo hdparm -S [standby_timeout] [device]`<br><b>Test the read speed of a specific device</b>`sudo hdparm -tT [device]`


title: TLDR
content:
<b>Embed data in a PNG, prompting for a passphrase</b>`steghide embed [[-cf|--coverfile]] [path/to/image.png] [[-ef|--embedfile]] [path/to/data.txt]`<br><b>Extract data from a WAV audio file</b>`steghide extract [[-sf|--stegofile]] [path/to/sound.wav]`<br><b>Display file information, trying to detect an embedded file</b>`steghide info [path/to/file.jpg]`<br><b>Embed data in a JPEG image, using maximum compression</b>`steghide embed [[-cf|--coverfile]] [path/to/image.jpg] [[-ef|--embedfile]] [path/to/data.txt] [[-z|--compress]] [9]`<br><b>Get the list of supported encryption algorithms and modes</b>`steghide encinfo`<br><b>Embed encrypted data in a JPEG image, e.g. with Blowfish in CBC mode</b>`steghide embed [[-cf|--coverfile]] [path/to/image.jpg] [[-ef|--embedfile]] [path/to/data.txt] [[-e|--encryption]] [blowfish|...] [cbc|...]`


title: TLDR
content:
<b>Show the current readings of all sensor chips</b>`sensors`<br><b>Show temperatures in degrees Fahrenheit</b>`sensors --fahrenheit`


title: TLDR
content:
<b>Generate font cache files</b>`fc-cache`<br><b>Generate font cache files verbosely</b>`fc-cache [[-v|--verbose]]`<br><b>Force a rebuild of all font cache files, without checking if cache is up-to-date</b>`fc-cache [[-f|--force]]`<br><b>Erase font cache files, then generate new font cache files</b>`fc-cache [[-r|--really-force]]`<br><b>Scan a specific directory</b>`fc-cache [path/to/directory]`<br><b>Scan system-wide directories, skipping the user's home directory</b>`fc-cache [[-s|--system-only]]`<br><b>Display version</b>`fc-cache [[-V|--version]]`


title: TLDR
content:
<b>Show the parameters and statistics of all the interfaces</b>`iwconfig`<br><b>Show the parameters and statistics of the specified interface</b>`iwconfig [interface]`<br><b>Set the ESSID (network name) of the specified interface (e.g. eth0 or wlp2s0)</b>`iwconfig [interface] [new_network_name]`<br><b>Set the operating mode of the specified interface</b>`iwconfig [interface] mode [Ad-Hoc|Managed|Master|Repeater|Secondary|Monitor|Auto]`


title: TLDR
content:
<b>Open the current user home directory</b>`nemo`<br><b>Open specific directories in separate windows</b>`nemo [path/to/directory1 path/to/directory2 ...]`<br><b>Open specific directories in tabs</b>`nemo --tabs [path/to/directory1 path/to/directory2 ...]`<br><b>Open a directory with a specific window size</b>`nemo --geometry=[600]x[400] [path/to/directory]`<br><b>Close all windows</b>`nemo --quit`


title: TLDR
content:
<b>Scan a binary file</b>`binwalk [path/to/binary]`<br><b>Extract files from a binary, specifying the output directory</b>`binwalk [[-e|--extract]] [[-C|--directory]] [output_directory] [path/to/binary]`<br><b>Recursively extract files from a binary limiting the recursion depth to 2</b>`binwalk [[-e|--extract]] [[-M|--matryoshka]] [[-d|--depth]] [2] [path/to/binary]`<br><b>Extract files from a binary with the specified file signature</b>`binwalk [[-D|--dd]] '[png image:png]' [path/to/binary]`<br><b>Analyze the entropy of a binary, saving the plot with the same name as the binary and .png extension appended</b>`binwalk [[-E|--entropy]] [[-J|--save]] [path/to/binary]`<br><b>Combine entropy, signature and opcodes analysis in a single command</b>`binwalk [[-E|--entropy]] [[-B|--signature]] [[-A|--opcodes]] [path/to/binary]`


title: TLDR
content:
<b>Open the terminal with a title of Example</b>`xterm -T [Example]`<br><b>Open the terminal in fullscreen mode</b>`xterm -fullscreen`<br><b>Open the terminal with a dark blue background and yellow foreground (font color)</b>`xterm -bg [darkblue] -fg [yellow]`<br><b>Open the terminal with 100 characters per line and 35 lines, in screen position x=200px, y=20px</b>`xterm -geometry [100]x[35]+[200]+[20]`<br><b>Open the terminal using a Serif font and a font size equal to 20</b>`xterm -fa '[Serif]' -fs [20]`


title: TLDR
content:
<b>Show the bandwidth usage</b>`sudo iftop`<br><b>Show the bandwidth usage of a given interface</b>`sudo iftop -i [interface]`<br><b>Show the bandwidth usage with port information</b>`sudo iftop -P`<br><b>Do not show bar graphs of traffic</b>`sudo iftop -b`<br><b>Do not look up hostnames</b>`sudo iftop -n`<br><b>Display help</b>`<?>`


title: TLDR
content:
<b>Disable a module</b>`sudo a2dismod [module]`<br><b>Don't show informative messages</b>`sudo a2dismod [[-q|--quiet]] [module]`


title: TLDR
content:
<b>List services available on the local network along with their addresses and ports, ignoring ones on the local machine</b>`avahi-browse [[-a|--all]] [[-r|--resolve]] [[-l|--ignore-local]]`<br><b>Quickly list services in the local network in SSV format for scripts</b>`avahi-browse [[-a|--all]] [[-t|--terminate]] [[-p|--parsable]]`<br><b>List domains in the neighbourhood</b>`avahi-browse [[-D|--browse-domains]]`<br><b>Limit the search to a particular domain</b>`avahi-browse [[-a|--all]] --domain=[domain]`


title: TLDR
content:
<b>Display the contents of the file with underlines where applicable</b>`ul [file.txt]`<br><b>Display the contents of the file with underlines made of dashes -</b>`ul [[-i|--indicated]] [file.txt]`


title: TLDR
content:
<b>Display the current settings for an interface</b>`ethtool [eth0]`<br><b>Display the driver information for an interface</b>`ethtool [[-i|--driver]] [eth0]`<br><b>Display all supported features for an interface</b>`ethtool [[-k|--show-features]] [eth0]`<br><b>Display the network usage statistics for an interface</b>`ethtool [[-S|--statistics]] [eth0]`<br><b>Blink one or more LEDs on an interface for 10 seconds</b>`ethtool [[-p|--identify]] [eth0] [10]`<br><b>Set the link speed, duplex mode, and parameter auto-negotiation for a given interface</b>`ethtool [[-s|--change]] [eth0] speed [10|100|1000] duplex [half|full] autoneg [on|off]`


title: TLDR
content:
<b>Generate a random number</b>`mcookie`<br><b>Generate a random number, using the contents of a file as a seed for the randomness</b>`mcookie [[-f|--file]] [path/to/file]`<br><b>Generate a random number, using a specific number of bytes from a file as a seed for the randomness</b>`mcookie [[-f|--file]] [path/to/file] [[-m|--max-size]] [number_of_bytes]`<br><b>Print the details of the randomness used, such as the origin and seed for each source</b>`mcookie [[-v|--verbose]]`


title: TLDR
content:
<b>Enable a module</b>`sudo a2enmod [module]`<br><b>Don't show informative messages</b>`sudo a2enmod [[-q|--quiet]] [module]`


title: TLDR
content:
<b>List all installed modules</b>`medusa -d`<br><b>Show usage example of a specific module (use medusa -d for listing all installed modules)</b>`medusa -M [ssh|http|web-form|postgres|ftp|mysql|...] -q`<br><b>Execute brute force against an FTP server using a file containing usernames and a file containing passwords</b>`medusa -M ftp -h host -U [path/to/username_file] -P [path/to/password_file]`<br><b>Execute a login attempt against an HTTP server using the username, password and user-agent specified</b>`medusa -M HTTP -h host -u [username] -p [password] -m USER-AGENT:"[Agent]"`<br><b>Execute a brute force against a MySQL server using a file containing usernames and a hash</b>`medusa -M mysql -h host -U [path/to/username_file] -p [hash] -m PASS:HASH`<br><b>Execute a brute force against a list of SMB servers using a username and a pwdump file</b>`medusa -M smbnt -H [path/to/hosts_file] -C [path/to/pwdump_file] -u [username] -m PASS:HASH`


title: TLDR
content:
<b>Change the line endings of a file</b>`dos2unix [path/to/file]`<br><b>Create a copy with Unix-style line endings</b>`dos2unix [[-n|--newfile]] [path/to/file] [path/to/new_file]`<br><b>Display file information</b>`dos2unix [[-i|--info]] [path/to/file]`<br><b>Keep/add/remove Byte Order Mark</b>`dos2unix --[keep-bom|add-bom|remove-bom] [path/to/file]`


title: TLDR
content:
<b>View the current and permanent MAC addresses of a interface</b>`macchanger [[-s|--show]] [interface]`<br><b>Set interface to a random MAC</b>`macchanger [[-r|--random]] [interface]`<br><b>Set an interface to a random MAC address, and pretend to be a [b]urned-[i]n-[a]ddress</b>`macchanger [[-r|--random]] [[-b|--bia]] [interface]`<br><b>Set an interface to a specific MAC address</b>`macchanger [[-m|--mac]] [XX:XX:XX:XX:XX:XX] [interface]`<br><b>Print the identifications (the first three bytes of a MAC address) of all known vendors</b>`macchanger [[-l|--list]]`<br><b>Reset an interface to its permanent hardware MAC address</b>`macchanger [[-p|--permanent]] [interface]`


title: TLDR
content:
<b>Display all information about the ELF file</b>`readelf -all [path/to/binary]`<br><b>Display all the headers present in the ELF file</b>`readelf --headers [path/to/binary]`<br><b>Display the entries in symbol table section of the ELF file, if it has one</b>`readelf --symbols [path/to/binary]`<br><b>Display ELF header information</b>`readelf --file-header [path/to/binary]`<br><b>Display ELF section header information</b>`readelf --section-headers [path/to/binary]`


title: TLDR
content:
<b>Build a Linux ext2 filesystem on a partition</b>`sudo mkfs [/dev/sdXY]`<br><b>Build a filesystem of a specified type</b>`sudo mkfs [[-t|--type]] [ext4] [/dev/sdXY]`<br><b>Build a filesystem of a specified type and check for bad blocks</b>`sudo mkfs -c [[-t|--type]] [ntfs] [/dev/sdXY]`


title: TLDR
content:
<b>Run a specific program inside the wine environment</b>`wine [command]`<br><b>Run a specific program in background</b>`wine start [command]`<br><b>Install/uninstall an MSI package</b>`wine msiexec /[i|x] [path/to/package.msi]`<br><b>Run File Explorer, Notepad, or WordPad</b>`wine [explorer|notepad|write]`<br><b>Run Registry Editor, Control Panel, or Task Manager</b>`wine [regedit|control|taskmgr]`<br><b>Run the configuration tool</b>`wine winecfg`


title: TLDR
content:
<b>Trace the route to a host</b>`tcptraceroute [host]`<br><b>Specify the destination port and packet length in bytes</b>`tcptraceroute [host] [destination_port] [packet_length]`<br><b>Specify the local source port and source address</b>`tcptraceroute [host] -p [source_port] -s [source_address]`<br><b>Set the first and maximum TTL</b>`tcptraceroute [host] -f [first_ttl] -m [max_ttl]`<br><b>Specify the wait time and number of queries per hop</b>`tcptraceroute [host] -w [wait_time] -q [number_of_queries]`<br><b>Specify the interface</b>`tcptraceroute [host] -i [interface]`


title: TLDR
content:
<b>Emulate 20 requests based on a given URL list file per second for 60 seconds</b>`http_load -rate [20] -seconds [60] [path/to/urls.txt]`<br><b>Emulate 5 concurrent requests based on a given URL list file for 60 seconds</b>`http_load -parallel [5] -seconds [60] [path/to/urls.txt]`<br><b>Emulate 1000 requests at 20 requests per second, based on a given URL list file</b>`http_load -rate [20] -fetches [1000] [path/to/urls.txt]`<br><b>Emulate 1000 requests at 5 concurrent requests at a time, based on a given URL list file</b>`http_load -parallel [5] -fetches [1000] [path/to/urls.txt]`


title: TLDR
content:
<b>Link your Mullvad account with the specified account number</b>`mullvad account set [account_number]`<br><b>Enable LAN access while VPN is on</b>`mullvad lan set allow`<br><b>Select a server in a specific city</b>`mullvad relay set location [se] [mma]`<br><b>Select a specific server</b>`mullvad relay set location [se-mma-wg-001]`<br><b>Establish the VPN tunnel</b>`mullvad connect`<br><b>Check status of VPN tunnel</b>`mullvad status`<br><b>Check the account expiration date and obtain the device name</b>`mullvad account get`


title: TLDR
content:
<b>Show a notification with a given title and message</b>`dunstify "[Title]" "[Message]"`<br><b>Show a notification with the specified urgency</b>`dunstify "[Title]" "[Message]" [[-u|--urgency]] [low|normal|critical]`<br><b>Specify a message ID (overwrites any previous messages with the same ID)</b>`dunstify "[Title]" "[Message]" [[-r|--replace]] [123]`<br><b>Display help</b>`dunstify [[-?|--help]]`


title: TLDR
content:
<b>Display a menu of the output of the ls command</b>`[ls] | dmenu`<br><b>Display a menu with custom items separated by a new line (\n)</b>`echo -e "[red]\n[green]\n[blue]" | dmenu`<br><b>Let the user choose between multiple items and save the selected one to a file</b>`echo -e "[red]\n[green]\n[blue]" | dmenu > [color.txt]`<br><b>Launch dmenu on a specific monitor</b>`ls | dmenu -m [1]`<br><b>Display dmenu at the bottom of the screen</b>`ls | dmenu -b`


title: TLDR
content:
<h2>List the current settings / bootnums</h2>`efibootmgr`<br><h2>List the filepaths</h2>`efibootmgr -v`<br><h2>Add UEFI Shell v2 as a boot option</h2>`sudo efibootmgr -c -d [/dev/sda1] -l [\EFI\tools\Shell.efi] -L "[UEFI Shell]"`<br><h2>Change the current boot order</h2>`sudo efibootmgr -o [0002,0008,0001,0005]`<br><h2>Delete a boot option</h2>`sudo efibootmgr -b [0008] --delete-bootnum`


title: TLDR
content:
<b>Check cluster health status</b>`ceph status`<br><b>Check cluster usage stats</b>`ceph df`<br><b>Get the statistics for the placement groups in a cluster</b>`ceph pg dump --format [plain]`<br><b>Create a storage pool</b>`ceph osd pool create [pool_name] [page_number]`<br><b>Delete a storage pool</b>`ceph osd pool delete [pool_name]`<br><b>Rename a storage pool</b>`ceph osd pool rename [current_name] [new_name]`<br><b>Self-repair pool storage</b>`ceph pg repair [pool_name]`


title: TLDR
content:
<b>Spawn 4 workers to stress test CPU</b>`stress [[-c|--cpu]] [4]`<br><b>Spawn 2 workers to stress test IO and timeout after 5 seconds</b>`stress [[-i|--io]] [2] [[-t|--timeout]] [5]`<br><b>Spawn 2 workers to stress test memory (each worker allocates 256M bytes)</b>`stress [[-m|--vm]] [2] --vm-bytes [256M]`<br><b>Spawn 2 workers spinning on write()/unlink() (each worker writes 1G bytes)</b>`stress [[-d|--hdd]] [2] --hdd-bytes [1GB]`


title: TLDR
content:
<b>Create an ext4 filesystem inside partition Y on device X</b>`sudo mkfs.ext4 [/dev/sdXY]`<br><b>Create an ext4 filesystem with a volume-label</b>`sudo mkfs.ext4 -L [volume_label] [/dev/sdXY]`


title: TLDR
content:
<b>Display CPU, disk, net, paging and system statistics</b>`dstat`<br><b>Display statistics every 5 seconds and 4 updates only</b>`dstat [5] [4]`<br><b>Display CPU and memory statistics only</b>`dstat [[-c|--cpu]] [[-m|--mem]]`<br><b>List all available dstat plugins</b>`dstat --list`<br><b>Display the process using the most memory and most CPU</b>`dstat --top-mem --top-cpu`<br><b>Display battery percentage and remaining battery time</b>`dstat --battery --battery-remain`


title: TLDR
content:
<b>Run PhotoRec on a specific device</b>`sudo photorec [/dev/sdb]`<br><b>Run PhotoRec on a disk image (image.dd)</b>`sudo photorec [path/to/image.dd]`


title: TLDR
content:
<b>List non-free and contrib packages (and their description)</b>`vrms`<br><b>Only output the package names</b>`vrms --sparse`


title: TLDR
content:
<b>Disable a virtual host</b>`sudo a2dissite [virtual_host]`<br><b>Don't show informative messages</b>`sudo a2dissite [[-q|--quiet]] [virtual_host]`


title: TLDR
content:
<b>Change to a specific runlevel</b>`sudo openrc [runlevel_name]`<br><b>Change to a specific runlevel, but don't stop any existing services</b>`sudo openrc [[-n|--no-stop]] [runlevel_name]`


title: TLDR
content:
<b>List all NetworkManager connections (shows name, UUID, type and device)</b>`nmcli [[c|connection]]`<br><b>Activate a connection</b>`nmcli [[c|connection]] [[u|up]] [uuid]`<br><b>Deactivate a connection</b>`nmcli [[c|connection]] [[d|down]] [uuid]`<br><b>Create an auto-configured dual stack connection</b>`nmcli [[c|connection]] [[a|add]] ifname [interface_name] type [ethernet] ipv4.method [auto] ipv6.method [auto]`<br><b>Create a static IPv6-only connection</b>`nmcli [[c|connection]] [[a|add]] ifname [interface_name] type [ethernet] ip6 [2001:db8::2/64] gw6 [2001:db8::1] ipv6.dns [2001:db8::1] ipv4.method [ignore]`<br><b>Create a static IPv4-only connection</b>`nmcli [[c|connection]] [[a|add]] ifname [interface_name] type [ethernet] ip4 [10.0.0.7/8] gw4 [10.0.0.1] ipv4.dns [10.0.0.1] ipv6.method [ignore]`<br><b>Create a VPN connection using OpenVPN from an OVPN file</b>`nmcli [[c|connection]] [[i|import]] type [openvpn] file [path/to/vpn_config.ovpn]`


title: TLDR
content:
<b>List snapshots</b>`sudo timeshift --list`<br><b>Create a new snapshot (if scheduled)</b>`sudo timeshift --check`<br><b>Create a new snapshot (even if not scheduled)</b>`sudo timeshift --create`<br><b>Restore a snapshot (selecting which snapshot to restore interactively)</b>`sudo timeshift --restore`<br><b>Restore a specific snapshot</b>`sudo timeshift --restore --snapshot '[snapshot]'`<br><b>Delete a specific snapshot</b>`sudo timeshift --delete --snapshot '[snapshot]'`


title: TLDR
content:
<b>Show battery information</b>`acpi`<br><b>Show thermal information</b>`acpi [[-t|--thermal]]`<br><b>Show cooling device information</b>`acpi [[-c|--cooling]]`<br><b>Show thermal information in Fahrenheit</b>`acpi [[-tf|--thermal --fahrenheit]]`<br><b>Show all information</b>`acpi [[-V|--everything]]`<br><b>Extract information from /proc instead of /sys</b>`acpi [[-p|--proc]]`


title: TLDR
content:
<b>Display executable invocations per user (username not displayed)</b>`sudo sa`<br><b>Display executable invocations per user, showing responsible usernames</b>`sudo sa --print-users`<br><b>List resources used recently per user</b>`sudo sa --user-summary`


title: TLDR
content:
<b>Generate ASCII art for a given text</b>`toilet [input_text]`<br><b>Generate ASCII art using a custom font file</b>`toilet [input_text] [[-f|--font]] [font_filename]`<br><b>Generate ASCII art using a filter</b>`toilet [input_text] [[-F|--filter]] [filter_name]`<br><b>Show available toilet filters</b>`toilet [[-F|--filter]] list`


title: TLDR
content:
<b>Change the line endings of a file</b>`mac2unix [path/to/file]`<br><b>Create a copy with Unix-style line endings</b>`mac2unix [[-n|--newfile]] [path/to/file] [path/to/new_file]`<br><b>Display file information</b>`mac2unix [[-i|--info]] [path/to/file]`<br><b>Keep/add/remove Byte Order Mark</b>`mac2unix --[keep-bom|add-bom|remove-bom] [path/to/file]`


title: TLDR
content:
<b>Show the progress of running coreutils</b>`progress`<br><b>Monitor all running coreutils</b>`progress [[-m|--monitor]]`<br><b>Show the progress of running coreutils in quiet mode</b>`progress [[-q|--quiet]]`<br><b>Launch and monitor a single long-running command</b>`[command] & progress [[-m|--monitor]] [[-p|--pid]] $!`<br><b>Include an estimate of time remaining for completion</b>`progress [[-w|--wait]] [[-c|--command]] [firefox]`


title: TLDR
content:
<b>Lock the screen</b>`betterlockscreen [[-l|--lock]]`<br><b>Change the lock screen background</b>`betterlockscreen [[-u|--update]] [path/to/image.png]`<br><b>Lock the screen, showing some custom text</b>`betterlockscreen [[-l|--lock]] pixel --text "[custom lock screen text]"`<br><b>Lock the screen, with a custom monitor off timeout in seconds</b>`betterlockscreen --off [5] [[-l|--lock]]`


title: TLDR
content:
<b>Display suggestions for a given file</b>`hlint [path/to/file] options`<br><b>Check all Haskell files and generate a report</b>`hlint [path/to/directory] [[-r|--report]]`<br><b>Automatically apply most suggestions</b>`hlint [path/to/file] --refactor`<br><b>Display additional options</b>`hlint [path/to/file] --refactor-options`<br><b>Generate a settings file ignoring all outstanding hints</b>`hlint [path/to/file] --default > [.hlint.yaml]`


title: TLDR
content:
<b>Enable a virtual host</b>`sudo a2ensite [virtual_host]`<br><b>Don't show informative messages</b>`sudo a2ensite [[-q|--quiet]] [virtual_host]`


title: TLDR
content:
<b>Run the specified command in a virtual X server</b>`xvfb-run [command]`<br><b>Try to get a free server number, if the default (99) is not available</b>`xvfb-run [[-a|--auto-servernum]] [command]`<br><b>Pass arguments to the Xvfb server</b>`xvfb-run [[-s|--server-args]] "[-screen 0 1024x768x24]" [command]`


title: TLDR
content:
<b>Show the current number lock status</b>`numlockx status`<br><b>Turn the number lock on</b>`numlockx on`<br><b>Turn the number lock off</b>`numlockx off`<br><b>Toggle the current state</b>`numlockx toggle`


title: TLDR
content:
<b>Change the line endings of a file</b>`unix2mac [path/to/file]`<br><b>Create a copy with macOS-style line endings</b>`unix2mac [[-n|--newfile]] [path/to/file] [path/to/new_file]`<br><b>Display file information</b>`unix2mac [[-i|--info]] [path/to/file]`<br><b>Keep/add/remove Byte Order Mark</b>`unix2mac --[keep-bom|add-bom|remove-bom] [path/to/file]`


title: TLDR
content:
<b>Add a new version for a non-maintainer upload to the changelog</b>`debchange [[-n|--nmu]]`<br><b>Add a changelog entry to the current version</b>`debchange [[-a|--append]]`<br><b>Add a changelog entry to close the bug with specified ID</b>`debchange --closes [bug_id]`


title: TLDR
content:
<b>Combine the /etc/shadow and /etc/passwd of the current system</b>`sudo unshadow /etc/passwd /etc/shadow`<br><b>Combine two arbitrary shadow and password files</b>`sudo unshadow [path/to/passwd] [path/to/shadow]`


title: TLDR
content:
<b>Show a summary of services and their status</b>`rc-status`<br><b>Include services in all runlevels in the summary</b>`rc-status [[-a|--all]]`<br><b>List services that have crashed</b>`rc-status [[-c|--crashed]]`<br><b>List manually started services</b>`rc-status [[-m|--manual]]`<br><b>List supervised services</b>`rc-status [[-S|--supervised]]`<br><b>Display the current runlevel</b>`rc-status [[-r|--runlevel]]`<br><b>List all runlevels</b>`rc-status [[-l|--list]]`


title: TLDR
content:
<b>Open a new urxvt window</b>`urxvt`<br><b>Run in a specific directory</b>`urxvt -cd [path/to/directory]`<br><b>Run a command in a new urxvt window</b>`urxvt -e [command]`<br><b>Run a command and keep the window open</b>`urxvt --hold -e [command]`<br><b>Run a command within the sh shell</b>`urxvt -e [sh] -c [command]`


title: TLDR
content:
<b>Print the statuses of all network interfaces</b>`nmcli [[d|device]]`<br><b>Print the available Wi-Fi access points</b>`nmcli [[d|device]] [[w|wifi]]`<br><b>Connect to a Wi-Fi network with the specified SSID (you will be prompted for a password)</b>`nmcli [[d|device]] [[w|wifi]] [[c|connect]] [ssid] [[-a|--ask]]`<br><b>Print the password and QR code for the current Wi-Fi network</b>`nmcli [[d|device]] [[w|wifi]] [[s|show-password]]`<br><b>Print detailed information about a device</b>`nmcli [[d|device]] [[sh|show]] [wlan0]`


title: TLDR
content:
<b>Download a binary package</b>`dget [package]`<br><b>Download and extract a package source from its .dsc file</b>`dget [http://deb.debian.org/debian/pool/main/h/haskell-tldr/haskell-tldr_0.4.0-2.dsc]`<br><b>Download a package source tarball from its .dsc file but don't extract it</b>`dget [[-d|--download-only]] [http://deb.debian.org/debian/pool/main/h/haskell-tldr/haskell-tldr_0.4.0-2.dsc]`


title: TLDR
content:
<b>Create subvolume</b>`sudo btrfs [[su|subvolume]] [[c|create]] [path/to/subvolume]`<br><b>List subvolumes</b>`sudo btrfs [[su|subvolume]] [[l|list]] [path/to/mount_point]`<br><b>Show space usage information</b>`sudo btrfs [[f|filesystem]] df [path/to/mount_point]`<br><b>Enable quota</b>`sudo btrfs [[qu|quota]] [[e|enable]] [path/to/subvolume]`<br><b>Show quota</b>`sudo btrfs [[qg|qgroup]] [[s|show]] [path/to/subvolume]`


title: TLDR
content:
<b>Enable only the primary monitor</b>`mons -o`<br><b>Enable only the secondary monitor</b>`mons -s`<br><b>Duplicate the primary monitor onto the secondary monitor, using the resolution of the primary monitor</b>`mons -d`<br><b>Mirror the primary monitor onto the secondary monitor, using the resolution of the secondary monitor</b>`mons -m`


title: TLDR
content:
<b>Calibrate power usage measurements</b>`sudo powertop --calibrate`<br><b>Generate HTML power usage report in the current directory</b>`sudo powertop --html=[power_report.html]`<br><b>Tune to optimal settings</b>`sudo powertop --auto-tune`<br><b>Generate a report for a specified number of seconds (instead of 20 by default)</b>`sudo powertop --time=[5]`


title: TLDR
content:
<b>List enabled Apache modules</b>`sudo a2query -m`<br><b>Check if a specific module is installed</b>`sudo a2query -m [module_name]`<br><b>List enabled virtual hosts</b>`sudo a2query -s`<br><b>Display the currently enabled Multi Processing Module</b>`sudo a2query -M`<br><b>Display Apache version</b>`sudo a2query -v`


title: TLDR
content:
<b>Enable a configuration file</b>`sudo a2enconf [configuration_file]`<br><b>Don't show informative messages</b>`sudo a2enconf [[-q|--quiet]] [configuration_file]`


title: TLDR
content:
<b>Read a man page for a command that is provided by a specified [p]ackage</b>`debman -p [package] [command]`<br><b>Specify a [p]ackage version to download</b>`debman -p [package]=[version] [command]`<br><b>Read a man page in a .deb [f]ile</b>`debman -f [path/to/file.deb] [command]`


title: TLDR
content:
<b>Change the line endings of a file</b>`unix2dos [path/to/file]`<br><b>Create a copy with DOS-style line endings</b>`unix2dos [[-n|--newfile]] [path/to/file] [path/to/new_file]`<br><b>Display file information</b>`unix2dos [[-i|--info]] [path/to/file]`<br><b>Keep/add/remove Byte Order Mark</b>`unix2dos --[keep-bom|add-bom|remove-bom] [path/to/file]`


title: TLDR
content:
<b>Enable the JSON extension for every SAPI of every PHP version</b>`sudo phpenmod [json]`<br><b>Enable the JSON extension for PHP 7.3 with the cli SAPI</b>`sudo phpenmod -v [7.3] -s [cli] [json]`


title: TLDR
content:
<b>Execute an expect script from a file</b>`expect [path/to/file]`<br><b>Execute a specified expect script</b>`expect -c "[commands]"`<br><b>Enter an [i]nteractive REPL (use exit or <Ctrl d> to exit)</b>`expect -i`


title: TLDR
content:
<b>Run Docker daemon</b>`dockerd`<br><b>Run Docker daemon and configure it to listen to specific sockets (UNIX and TCP)</b>`dockerd [[-H|--host]] unix://[path/to/tmp.sock] [[-H|--host]] tcp://[ip]`<br><b>Run with specific daemon PID file</b>`dockerd [[-p|--pidfile]] [path/to/pid_file]`<br><b>Run in debug mode</b>`dockerd [[-D|--debug]]`<br><b>Run and set a specific log level</b>`dockerd [[-l|--log-level]] [debug|info|warn|error|fatal]`


title: TLDR
content:
<h2>Display system logs</h2>`logcat`<br><h2>Write system logs to a file</h2>`logcat -f [path/to/file]`<br><h2>Display lines that match a regex</h2>`logcat --regex [regex]`


title: TLDR
content:
<b>Print how long the current user has been connected in hours</b>`ac`<br><b>Print how long users have been connected in hours</b>`ac -p`<br><b>Print how long a particular user has been connected in hours</b>`ac -p [username]`<br><b>Print how long a particular user has been connected in hours per [d]ay (with total)</b>`ac -dp [username]`


title: TLDR
content:
<b>Report a bug about the whole system</b>`apport-bug`<br><b>Report a bug about a specific package</b>`apport-bug [package]`<br><b>Report a bug about a specific executable</b>`apport-bug [path/to/executable]`<br><b>Report a bug about a specific process</b>`apport-bug [PID]`


title: TLDR
content:
<b>List all available cameras</b>`uvcdynctrl [[-l|--list]]`<br><b>Use a specific device (defaults to video0)</b>`uvcdynctrl [[-d|--device]] [device_name]`<br><b>List available controls</b>`uvcdynctrl [[-c|--clist]]`<br><b>Set a new control value (for negative values, use -- -value)</b>`uvcdynctrl [[-s|--set]] [control_name] [value]`<br><b>Get the current control value</b>`uvcdynctrl [[-g|--get]] [control_name]`<br><b>Save the state of the current controls to a file</b>`uvcdynctrl [[-W|--save]] [filename]`<br><b>Load the state of the controls from a file</b>`uvcdynctrl [[-L|--load]] [filename]`


title: TLDR
content:
<b>List available PHP versions</b>`sudo phpquery -V`<br><b>List available SAPIs for PHP 7.3</b>`sudo phpquery -v [7.3] -S`<br><b>List enabled extensions for PHP 7.3 with the cli SAPI</b>`sudo phpquery -v [7.3] -s [cli] -M`<br><b>Check if the JSON extension is enabled for PHP 7.3 with the apache2 SAPI</b>`sudo phpquery -v [7.3] -s [apache2] -m [json]`


title: TLDR
content:
<b>List all windows, managed by the window manager</b>`wmctrl -l`<br><b>Switch to the first window whose (partial) title matches</b>`wmctrl -a [window_title]`<br><b>Move a window to the current workspace, raise it and give it focus</b>`wmctrl -R [window_title]`<br><b>Switch to a workspace</b>`wmctrl -s [workspace_number]`<br><b>Select a window and toggle fullscreen</b>`wmctrl -r [window_title] -b toggle,fullscreen`<br><b>Select a window and move it to a workspace</b>`wmctrl -r [window_title] -t [workspace_number]`


title: TLDR
content:
<b>Run command as a different user</b>`runuser [user] [[-c|--command]] '[command]'`<br><b>Run command as a different user and group</b>`runuser [user] [[-g|--group]] [group] [[-c|--command]] '[command]'`<br><b>Start a login shell as a specific user</b>`runuser [user] [[-l|--login]]`<br><b>Specify a shell for running instead of the default shell (also works for login)</b>`runuser [user] [[-s|--shell]] [/bin/sh]`<br><b>Preserve the entire environment of root (only if --login is not specified)</b>`runuser [user] [[-p|--preserve-environment]] [[-c|--command]] '[command]'`


title: TLDR
content:
<b>Display packages whose support is limited, has already ended or will end earlier than the distribution's end of life</b>`check-support-status`<br><b>Display only packages whose support has ended</b>`check-support-status --type [ended]`<br><b>Skip printing a headline</b>`check-support-status --no-heading`


title: TLDR
content:
<b>Try to enumerate using all methods</b>`enum4linux -a [remote_host]`<br><b>Enumerate using given login credentials</b>`enum4linux -u [user_name] -p [password] [remote_host]`<br><b>List usernames from a given host</b>`enum4linux -U [remote_host]`<br><b>List shares</b>`enum4linux -S [remote_host]`<br><b>Get OS information</b>`enum4linux -o [remote_host]`


title: TLDR
content:
<b>Check the configuration</b>`sudo postfix check`<br><b>Check the status of the Postfix daemon</b>`sudo postfix status`<br><b>Start Postfix</b>`sudo postfix start`<br><b>Gracefully stop Postfix</b>`sudo postfix stop`<br><b>Flush the mail queue</b>`sudo postfix flush`<br><b>Reload the configuration files</b>`sudo postfix reload`


title: TLDR
content:
<b>Take an image of a device, creating a log file</b>`sudo ddrescue [/dev/sdb] [path/to/image.dd] [path/to/log.txt]`<br><b>Clone Disk A to Disk B, creating a log file</b>`sudo ddrescue [[-f|--force]] [[-n|--no-scrape]] [/dev/sdX] [/dev/sdY] [path/to/log.txt]`


title: TLDR
content:
<b>Disable the JSON extension for every SAPI of every PHP version</b>`sudo phpdismod [json]`<br><b>Disable the JSON extension for PHP 7.3 with the cli SAPI</b>`sudo phpdismod -v [7.3] -s [cli] [json]`


title: TLDR
content:
<b>Print information about all the commands in the acct (record file)</b>`lastcomm`<br><b>Display commands executed by a given user</b>`lastcomm --user [user]`<br><b>Display information about a given command executed on the system</b>`lastcomm --command [command]`<br><b>Display information about commands executed on a given terminal</b>`lastcomm --tty [terminal_name]`


title: TLDR
content:
<b>Generate a bug report about a specific package, then send it by e-mail</b>`reportbug [package]`<br><b>Report a bug that is not about a specific package (general problem, infrastructure, etc.)</b>`reportbug other`<br><b>Write the bug report to a file instead of sending it by e-mail</b>`reportbug [[-o|--output]] [filename] [package]`


title: TLDR
content:
<b>Build the package in the current directory</b>`debuild`<br><b>Build a binary package only</b>`debuild -b`<br><b>Do not run lintian after building the package</b>`debuild --no-lintian`


title: TLDR
content:
<b>Enter the bluetoothctl shell</b>`bluetoothctl`<br><b>List all known devices</b>`bluetoothctl devices`<br><b>Power the Bluetooth controller on or off</b>`bluetoothctl power [on|off]`<br><b>Pair with a device</b>`bluetoothctl pair [mac_address]`<br><b>Remove a device</b>`bluetoothctl remove [mac_address]`<br><b>Connect to a paired device</b>`bluetoothctl connect [mac_address]`<br><b>Disconnect from a paired device</b>`bluetoothctl disconnect [mac_address]`<br><b>Display help</b>`bluetoothctl help`


title: TLDR
content:
<b>Discard all sectors on a device, removing all data</b>`blkdiscard [/dev/device]`<br><b>Securely discard all blocks on a device, removing all data</b>`blkdiscard [[-s|--secure]] [/dev/device]`<br><b>Discard the first 100 MB of a device</b>`blkdiscard [[-l|--length]] [100MB] [/dev/device]`


title: TLDR
content:
<b>Create a new castle</b>`homeshick generate [castle_name]`<br><b>Add a file to your castle</b>`homeshick track [castle_name] [path/to/file]`<br><b>Go to a castle</b>`homeshick cd [castle_name]`<br><b>Clone a castle</b>`homeshick clone [github_username]/[repository_name]`<br><b>Symlink all files from a castle</b>`homeshick link [castle_name]`


title: TLDR
content:
<b>Show a service's status</b>`rc-service [service_name] status`<br><b>Start a service</b>`sudo rc-service [service_name] start`<br><b>Stop a service</b>`sudo rc-service [service_name] stop`<br><b>Restart a service</b>`sudo rc-service [service_name] restart`<br><b>Simulate running a service's custom command</b>`sudo rc-service [[-Z|--dry-run]] [service_name] [command_name]`<br><b>Actually run a service's custom command</b>`sudo rc-service [service_name] [command_name]`<br><b>Resolve the location of a service definition on disk</b>`sudo rc-service [[-r|--resolve]] [service_name]`


title: TLDR
content:
<b>Trace all program executions occurring on the system</b>`sudo extrace`<br><b>Run a command and only trace descendants of this command</b>`sudo extrace [command]`<br><b>Print the current working [d]irectory of each process</b>`sudo extrace -d`<br><b>Resolve the full path of each executable</b>`sudo extrace -l`<br><b>Display the [u]ser running each process</b>`sudo extrace -u`


title: TLDR
content:
<b>Disable a configuration file</b>`sudo a2disconf [configuration_file]`<br><b>Don't show informative messages</b>`sudo a2disconf [[-q|--quiet]] [configuration_file]`


title: TLDR
content:
<b>Get information about a domain name</b>`whois [example.com]`<br><b>Get information about an IP address</b>`whois [8.8.8.8]`<br><b>Get abuse contact for an IP address</b>`whois -b [8.8.8.8]`


title: TLDR
content:
<b>List all commits on the current branch</b>`git rev-list [HEAD]`<br><b>Print the latest commit that changed (add/edit/remove) a specific file on the current branch</b>`git rev-list [[-n|--max-count]] 1 HEAD -- [path/to/file]`<br><b>List commits more recent than a specific date, on a specific branch</b>`git rev-list --since "[2019-12-01 00:00:00]" [branch_name]`<br><b>List all merge commits on a specific commit</b>`git rev-list --merges [commit]`<br><b>Print the number of commits since a specific tag</b>`git rev-list [tag_name]..HEAD --count`


title: TLDR
content:
<b>Get the commit hash of a branch</b>`git rev-parse [branch_name]`<br><b>Get the current branch name</b>`git rev-parse --abbrev-ref [HEAD]`<br><b>Get the absolute path to the root directory</b>`git rev-parse --show-toplevel`


title: TLDR
content:
<b>Change XDG's DESKTOP directory to the specified directory (must be absolute)</b>`xdg-user-dirs-update --set DESKTOP "[path/to/directory]"`<br><b>Write the result to the specified dry-run-file instead of the user-dirs.dirs file</b>`xdg-user-dirs-update --dummy-output "[path/to/dry_run_file]" --set [xdg_user_directory] "[path/to/directory]"`


title: TLDR
content:
<b>Pack unpacked objects in the current directory</b>`git repack`<br><b>Remove redundant objects after packing</b>`git repack -d`<br><b>Repack all objects into a single pack</b>`git repack -a`<br><b>Limit the repack to local objects only</b>`git repack -l`


title: TLDR
content:
<b>List all notes and the objects they are attached to</b>`git notes list`<br><b>List all notes attached to a given object (defaults to HEAD)</b>`git notes list [[object]]`<br><b>Show the notes attached to a given object (defaults to HEAD)</b>`git notes show [[object]]`<br><b>Append a note to a specified object (opens the default text editor)</b>`git notes append [object]`<br><b>Append a note to a specified object, specifying the message</b>`git notes append --message="[message_text]"`<br><b>Edit an existing note (defaults to HEAD)</b>`git notes edit [[object]]`<br><b>Copy a note from one object to another</b>`git notes copy [source_object] [target_object]`<br><b>Remove all the notes added to a specified object</b>`git notes remove [object]`


title: TLDR
content:
<b>List the contents of the tree on a branch</b>`git ls-tree [branch_name]`<br><b>List the contents of the tree on a commit, recursing into subtrees</b>`git ls-tree -r [commit_hash]`<br><b>List only the filenames of the tree on a commit</b>`git ls-tree --name-only [commit_hash]`<br><b>Print the filenames of the current branch head in a tree structure (Note: tree --fromfile is not supported on Windows)</b>`git ls-tree -r --name-only HEAD | tree --fromfile`


title: TLDR
content:
<b>Print multiple files with a default header and footer</b>`pr [path/to/file1 path/to/file2 ...]`<br><b>Print with a custom centered header</b>`pr [[-h|--header]] "[header]" [path/to/file1 path/to/file2 ...]`<br><b>Print with numbered lines and a custom date format</b>`pr [[-n|--number-lines]] [[-D|--date-format]] "[format]" [path/to/file1 path/to/file2 ...]`<br><b>Print all files together, one in each column, without a header or footer</b>`pr [[-m|--merge]] [[-T|--omit-pagination]] [path/to/file1 path/to/file2 ...]`<br><b>Print, beginning at page 2 up to page 5, with a given page length (including header and footer)</b>`pr +2:5 [[-l|--length]] [page_length] [path/to/file1 path/to/file2 ...]`<br><b>Print with an offset for each line and a truncating custom page width</b>`pr [[-o|--indent]] [offset] [[-W|--page_width]] [width] [path/to/file1 path/to/file2 ...]`


title: TLDR
content:
<b>Scan file and output strings to messages.po</b>`xgettext [path/to/input_file]`<br><b>Use a different output filename</b>`xgettext [[-o|--output]] [path/to/output_file] [path/to/input_file]`<br><b>Append new strings to an existing file</b>`xgettext [[-j|--join-existing]] [[-o|--output]] [path/to/output_file] [path/to/input_file]`<br><b>Don't add a header containing metadata to the output file</b>`xgettext --omit-header [path/to/input_file]`<br><b>Display help</b>`xgettext [[-h|--help]]`


title: TLDR
content:
<b>Archive a file, replacing it with a 7zipped compressed version</b>`p7zip [path/to/file]`<br><b>Archive a file keeping the input file</b>`p7zip [[-k|--keep]] [path/to/file]`<br><b>Decompress a file, replacing it with the original uncompressed version</b>`p7zip [[-d|--decompress]] [compressed.ext].7z`<br><b>Decompress a file keeping the input file</b>`p7zip [[-d|--decompress]] [[-k|--keep]] [compressed.ext].7z`<br><b>Skip some checks and force compression or decompression</b>`p7zip [[-f|--force]] [path/to/file]`


title: TLDR
content:
<b>Add a Git repository as a subtree and squash the commits together</b>`git subtree add [[-P|--prefix]] [path/to/directory] --squash [repository_url] [branch_name]`<br><b>Update subtree repository to its latest commit</b>`git subtree pull [[-P|--prefix]] [path/to/directory] [repository_url] [branch_name]`<br><b>Merge recent changes up to the latest subtree commit into the subtree</b>`git subtree merge [[-P|--prefix]] [path/to/directory] --squash [repository_url] [branch_name]`<br><b>Push commits to a subtree repository</b>`git subtree push [[-P|--prefix]] [path/to/directory] [repository_url] [branch_name]`<br><b>Extract a new project history from the history of a subtree</b>`git subtree split [[-P|--prefix]] [path/to/directory] [repository_url] [[-b|--branch]] [branch_name]`


title: TLDR
content:
<b>Launch a GitWeb server for the current Git repository</b>`git instaweb --start`<br><b>Listen only on localhost</b>`git instaweb --start [[-l|--local]]`<br><b>Listen on a specific port</b>`git instaweb --start [[-p|--port]] [1234]`<br><b>Use a specified HTTP daemon</b>`git instaweb --start [[-d|--httpd]] [lighttpd|apache2|mongoose|plackup|webrick]`<br><b>Also auto-launch a web browser</b>`git instaweb --start [[-b|--browser]]`<br><b>Stop the currently running GitWeb server</b>`git instaweb --stop`<br><b>Restart the currently running GitWeb server</b>`git instaweb --restart`


title: TLDR
content:
<b>Compile a bison definition file</b>`bison [path/to/file.y]`<br><b>Compile in debug mode, which causes the resulting parser to write additional information to stdout</b>`bison [[-t|--debug]] [path/to/file.y]`<br><b>Specify the output filename</b>`bison [[-o|--output]] [path/to/output.c] [path/to/file.y]`<br><b>Be verbose when compiling</b>`bison [[-v|--verbose]]`


title: TLDR
content:
<b>Launch the default merge tool to resolve conflicts</b>`git mergetool`<br><b>List valid merge tools</b>`git mergetool --tool-help`<br><b>Launch the merge tool identified by a name</b>`git mergetool [[-t|--tool]] [tool_name]`<br><b>Don't prompt before each invocation of the merge tool</b>`git mergetool [[-y|--no-prompt]]`<br><b>Explicitly use the GUI merge tool (see the merge.guitool configuration variable)</b>`git mergetool [[-g|--gui]]`<br><b>Explicitly use the regular merge tool (see the merge.tool configuration variable)</b>`git mergetool --no-gui`


title: TLDR
content:
<b>Start reading top-level directory menu</b>`info`<br><b>Start reading at given menu item node from top-level directory</b>`info [menu_item]`<br><b>Start reading at second menu item within first menu item manual</b>`info [first_menu_item] [second_menu_item]`


title: TLDR
content:
<b>Show a summary of the latest commit on a branch</b>`git show-branch [branch_name|ref|commit]`<br><b>Compare commits in the history of multiple commits or branches</b>`git show-branch [branch_name1|ref1|commit1 branch_name2|ref2|commit2 ...]`<br><b>Compare all remote tracking branches</b>`git show-branch [[-r|--remotes]]`<br><b>Compare both local and remote tracking branches</b>`git show-branch [[-a|--all]]`<br><b>List the latest commits in all branches</b>`git show-branch [[-a|--all]] --list`<br><b>Compare a given branch with the current branch</b>`git show-branch --current [commit|branch_name|ref]`<br><b>Display the commit name instead of the relative name</b>`git show-branch --sha1-name --current [current|branch_name|ref]`<br><b>Keep going a given number of commits past the common ancestor</b>`git show-branch --more [5] [branch_name1|ref1|commit1 branch_name2|ref2|commit2 ...]`


title: TLDR
content:
<b>Play a file</b>`vlc [path/to/file]`<br><b>Play in fullscreen</b>`vlc --fullscreen [path/to/file]`<br><b>Play muted</b>`vlc --no-audio [path/to/file]`<br><b>Play repeatedly</b>`vlc --loop [path/to/file]`<br><b>Play video from a URL</b>`vlc [https://www.youtube.com/watch?v=oHg5SJYRHA0]`


title: TLDR
content:
<b>Exit with the exit status of the most recently executed command</b>`exit`<br><b>Exit with a specific exit status</b>`exit [exit_code]`


title: TLDR
content:
<b>Compare 2 files</b>`sdiff [path/to/file1] [path/to/file2]`<br><b>Compare 2 files, ignoring all tabs and whitespace</b>`sdiff [[-W|--ignore-all-space]] [path/to/file1] [path/to/file2]`<br><b>Compare 2 files, ignoring whitespace at the end of lines</b>`sdiff [[-Z|--ignore-trailing-space]] [path/to/file1] [path/to/file2]`<br><b>Compare 2 files in a case-insensitive manner</b>`sdiff [[-i|--ignore-case]] [path/to/file1] [path/to/file2]`<br><b>Compare and then merge, writing the output to a new file</b>`sdiff [[-o|--output]] [path/to/merged_file] [path/to/file1] [path/to/file2]`


title: TLDR
content:
<b>Start an SSH Agent for the current shell</b>`eval $(ssh-agent)`<br><b>Kill the currently running agent</b>`ssh-agent -k`


title: TLDR
content:
<b>Convert a PDF file to JPEG</b>`pdftocairo [path/to/file.pdf] -jpeg`<br><b>Convert to PDF expanding the output to fill the paper</b>`pdftocairo [path/to/file.pdf] [output.pdf] -pdf -expand`<br><b>Convert to SVG specifying the first/last page to convert</b>`pdftocairo [path/to/file.pdf] [output.svg] -svg -f [first_page] -l [last_page]`<br><b>Convert to PNG with 200ppi resolution</b>`pdftocairo [path/to/file.pdf] [output.png] -png -r 200`<br><b>Convert to grayscale TIFF setting paper size to A3</b>`pdftocairo [path/to/file.pdf] -tiff -gray -paper A3`<br><b>Convert to PNG cropping x and y pixels from the top-left corner</b>`pdftocairo [path/to/file.pdf] -png -x [x_pixels] -y [y_pixels]`


title: TLDR
content:
<b>List files contained in an APK archive</b>`aapt list [path/to/app.apk]`<br><b>Display an app's metadata (version, permissions, etc.)</b>`aapt dump badging [path/to/app.apk]`<br><b>Create a new APK archive with files from the specified directory</b>`aapt package -F [path/to/app.apk] [path/to/directory]`


title: TLDR
content:
<b>Start Hydra's wizard</b>`hydra-wizard`<br><b>Guess SSH credentials using a given username and a list of passwords</b>`hydra -l [username] -P [path/to/wordlist.txt] [host_ip] [ssh]`<br><b>Guess HTTPS webform credentials using two specific lists of usernames and passwords ("https_post_request" can be like "username=^USER^&password=^PASS^")</b>`hydra -L [path/to/usernames.txt] -P [path/to/wordlist.txt] [host_ip] [https-post-form] "[url_without_host]:[https_post_request]:[login_failed_string]"`<br><b>Guess FTP credentials using usernames and passwords lists, specifying the number of threads</b>`hydra -L [path/to/usernames.txt] -P [path/to/wordlist.txt] -t [n_tasks] [host_ip] [ftp]`<br><b>Guess MySQL credentials using a username and a passwords list, exiting when a username/password pair is found</b>`hydra -l [username] -P [path/to/wordlist.txt] -f [host_ip] [mysql]`<br><b>Guess RDP credentials using a username and a passwords list, showing each attempt</b>`hydra -l [username] -P [path/to/wordlist.txt] -V [rdp://host_ip]`<br><b>Guess IMAP credentials on a range of hosts using a list of colon-separated username/password pairs</b>`hydra -C [path/to/username_password_pairs.txt] [imap://[host_range_cidr]]`<br><b>Guess POP3 credentials on a list of hosts using usernames and passwords lists, exiting when a username/password pair is found</b>`hydra -L [path/to/usernames.txt] -P [path/to/wordlist.txt] -M [path/to/hosts.txt] -F [pop3]`


title: TLDR
content:
<b>Extract all images from a PDF file and save them as PNGs</b>`pdfimages -png [path/to/file.pdf] [filename_prefix]`<br><b>Extract images from pages 3 to 5</b>`pdfimages -f [3] -l [5] [path/to/file.pdf] [filename_prefix]`<br><b>Extract images from a PDF file and include the page number in the output filenames</b>`pdfimages -p [path/to/file.pdf] [filename_prefix]`<br><b>List information about all the images in a PDF file</b>`pdfimages -list [path/to/file.pdf]`


title: TLDR
content:
<b>Get an IP address for the eth0 interface</b>`sudo dhclient [eth0]`<br><b>Release an IP address for the eth0 interface</b>`sudo dhclient -r [eth0]`


title: TLDR
content:
<b>Pretend that a modified file is unchanged (git status will not show this as changed)</b>`git update-index --skip-worktree [path/to/modified_file]`


title: TLDR
content:
<b>Crack password hashes</b>`john [path/to/hashes.txt]`<br><b>Show passwords cracked</b>`john --show [path/to/hashes.txt]`<br><b>Display users' cracked passwords by user identifier from multiple files</b>`john --show --users=[user_ids] [path/to/hashes1.txt path/to/hashes2.txt ...]`<br><b>Crack password hashes, using a custom wordlist</b>`john --wordlist=[path/to/wordlist.txt] [path/to/hashes.txt]`<br><b>List available hash formats</b>`john --list=formats`<br><b>Crack password hashes, using a specific hash format</b>`john --format=[md5crypt] [path/to/hashes.txt]`<br><b>Crack password hashes, enabling word mangling rules</b>`john --rules [path/to/hashes.txt]`<br><b>Restore an interrupted cracking session from a state file, e.g. mycrack.rec</b>`john --restore=[path/to/mycrack.rec]`


title: TLDR
content:
<b>Print a file to the default printer</b>`lpr [path/to/file]`<br><b>Print 2 copies</b>`lpr -# [2] [path/to/file]`<br><b>Print to a named printer</b>`lpr -P [printer] [path/to/file]`<br><b>Print either a single page (e.g. 2) or a range of pages (e.g. 2-16)</b>`lpr -o page-ranges=[2|2-16] [path/to/file]`<br><b>Print double-sided either in portrait (long) or in landscape (short)</b>`lpr -o sides=[two-sided-long-edge|two-sided-short-edge] [path/to/file]`<br><b>Set page size (more options may be available depending on setup)</b>`lpr -o media=[a4|letter|legal] [path/to/file]`<br><b>Print multiple pages per sheet</b>`lpr -o number-up=[2|4|6|9|16] [path/to/file]`


title: TLDR
content:
<b>Display help about a specific Git subcommand</b>`git help [subcommand]`<br><b>Display help about a specific Git subcommand in a web browser</b>`git help [[-w|--web]] [subcommand]`<br><b>Display a list of all available Git subcommands</b>`git help [[-a|--all]]`<br><b>List the available guides</b>`git help [[-g|--guides]]`<br><b>List all possible configuration variables</b>`git help [[-c|--config]]`


title: TLDR
content:
<b>Check the current repository</b>`git fsck`<br><b>List all tags found</b>`git fsck --tags`<br><b>List all root nodes found</b>`git fsck --root`<br><b>Show all unreachable and dangling objects, ignore reflogs, and perform a full integrity check</b>`git fsck --dangling --no-reflogs --unreachable --full`<br><b>Check connectivity only (skip object integrity verification)</b>`git fsck --connectivity-only`


title: TLDR
content:
<b>Log in or create an account for the Particle CLI</b>`particle setup`<br><b>Display a list of devices</b>`particle list`<br><b>Create a new Particle project interactively</b>`particle project create`<br><b>Compile a Particle project</b>`particle compile [device_type] [path/to/source_code.ino]`<br><b>Update a device to use a specific app remotely</b>`particle flash [device_name] [path/to/program.bin]`<br><b>Update a device to use the latest firmware via serial</b>`particle flash --serial [path/to/firmware.bin]`<br><b>Execute a function on a device</b>`particle call [device_name] [function_name] [function_arguments]`


title: TLDR
content:
<b>Display version</b>`go version`<br><b>Display the Go version used to build a specific executable file</b>`go version [path/to/executable]`


title: TLDR
content:
<b>Extract classes and methods from an APK file</b>`dexdump [path/to/file.apk]`<br><b>Display header information of DEX files contained in an APK file</b>`dexdump -f [path/to/file.apk]`<br><b>Display the dis-assembled output of executable sections</b>`dexdump -d [path/to/file.apk]`<br><b>Output results to a file</b>`dexdump -o [path/to/file] [path/to/file.apk]`


title: TLDR
content:
<b>Go to the highest-ranked directory that contains string in the name</b>`zoxide query string`<br><b>Go to the highest-ranked directory that contains string1 and then string2</b>`zoxide query string1 string2`<br><b>Start an interactive directory search (requires fzf)</b>`zoxide query --interactive`<br><b>Add a directory or increment its rank</b>`zoxide add [path/to/directory]`<br><b>Remove a directory from zoxide's database</b>`zoxide remove [path/to/directory]`<br><b>Generate shell configuration for command aliases (z, zi)</b>`zoxide init [bash|elvish|fish|nushell|posix|powershell|tcsh|xonsh|zsh]`


title: TLDR
content:
<b>Watch a binary file (defaults to .goreload)</b>`goreload [[-b|--bin]] [path/to/binary] [path/to/file.go]`<br><b>Set a custom log prefix (defaults to goreload)</b>`goreload --logPrefix [prefix] [path/to/file.go]`<br><b>Reload whenever any file changes</b>`goreload --all`


title: TLDR
content:
<b>Encrypt a file</b>`sops -e [path/to/file.json] > [path/to/file.enc.json]`<br><b>Decrypt a file to stdout</b>`sops -d [path/to/file.enc.json]`<br><b>Update the declared keys in a sops file</b>`sops updatekeys [path/to/file.enc.yaml]`<br><b>Rotate data keys for a sops file</b>`sops -r [path/to/file.enc.yaml]`<br><b>Change the extension of the file once encrypted</b>`sops -d --input-type json [path/to/file.enc.json]`<br><b>Extract keys by naming them, and array elements by numbering them</b>`sops -d --extract '["an_array"][1]' [path/to/file.enc.json]`<br><b>Show the difference between two sops files</b>`diff <(sops -d [path/to/secret1.enc.yaml]) <(sops -d [path/to/secret2.enc.yaml])`


title: TLDR
content:
<b>Run the calculator in interactive mode</b>`eva`<br><b>Calculate the result of an expression</b>`eva "[(1 + 2) * 2 ^ 2]"`<br><b>Calculate an expression forcing the number of decimal places to 5</b>`eva --fix [5] "[5 / 3]"`<br><b>Calculate an expression with sine and cosine</b>`eva "[sin(1) + cos(1)]"`


title: TLDR
content:
<b>Create a new Django project</b>`django-admin startproject [project_name]`<br><b>Create a new app for the current project</b>`django-admin startapp [app_name]`<br><b>Display help for a specific command</b>`django-admin help [command]`<br><b>Display version</b>`django-admin --version`


title: TLDR
content:
<b>Check if an IP address is allowed to send an e-mail from the specified e-mail address</b>`spfquery -ip [8.8.8.8] -sender [sender@example.com]`<br><b>Turn on debugging output</b>`spfquery -ip [8.8.8.8] -sender [sender@example.com] --debug`


title: TLDR
content:
<b>Create the directory structure used by Zola at the given directory</b>`zola init [my_site]`<br><b>Build the whole site in the public directory after deleting it</b>`zola build`<br><b>Build the whole site into a different directory</b>`zola build --output-dir [path/to/output_directory]/`<br><b>Build and serve the site using a local server (default is 127.0.0.1:1111)</b>`zola serve`<br><b>Build all pages just like the build command would, but without writing any of the results to disk</b>`zola check`


title: TLDR
content:
<b>List all secrets</b>`k8sec list`<br><b>List a specific secret as a base64-encoded string</b>`k8sec list [secret_name] --base64`<br><b>Set a secret's value</b>`k8sec set [secret_name] [key=value]`<br><b>Set a base64-encoded value</b>`k8sec set --base64 [secret_name] [key=encoded_value]`<br><b>Unset a secret</b>`k8sec unset [secret_name]`<br><b>Load secrets from a file</b>`k8sec load [[-f|--filename]] [path/to/file] [secret_name]`<br><b>Dump secrets to a file</b>`k8sec dump [[-f|--filename]] [path/to/file] [secret_name]`


title: TLDR
content:
<b>Fill a fake flash drive with a single partition that matches its real capacity</b>`sudo f3fix [/dev/device_name]`<br><b>Mark the partition as bootable</b>`sudo f3fix --boot [/dev/device_name]`<br><b>Specify the filesystem</b>`sudo f3fix --fs-type=[filesystem_type] [/dev/device_name]`


title: TLDR
content:
<b>Compress a file into a new file with the .lzo suffix</b>`lzop [path/to/file]`<br><b>Decompress a file</b>`lzop [[-d|--decompress]] [path/to/file.lzo]`<br><b>Compress a file, while specifying the compression level. 0 = Worst, 9 = Best (Default level is 3)</b>`lzop -[level] [path/to/file]`<br><b>Compress a file with the best compression level</b>`lzop [[-9|--best]] [path/to/file]`<br><b>Compress a file with the fastest compression level</b>`lzop [[-1|--fast]] [path/to/file]`


title: TLDR
content:
<b>Launch OBS</b>`obs`<br><b>Launch OBS in portable mode</b>`obs [[-p|--portable]]`<br><b>Automatically start recording a video on launch</b>`obs --startrecording`<br><b>Automatically start the replay buffer on launch</b>`obs --startreplaybuffer`<br><b>Automatically start streaming on launch</b>`obs --startstreaming`<br><b>Minimise to the system tray on launch</b>`obs --minimize-to-tray`<br><b>Make the log more verbose (for debugging)</b>`obs --verbose`


