From b65706ac278d423f551f3bfa726630afc8c61da4 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sat, 14 Sep 2024 00:16:07 +0000 Subject: [PATCH] Update cheatsheets --- tldr/az | 8 ++++++++ tldr/dircolors | 4 ++++ tldr/linux/rpicam-vid | 6 +----- tldr/ls | 14 +++++++------- tldr/xh | 6 ++++++ 5 files changed, 26 insertions(+), 12 deletions(-) diff --git a/tldr/az b/tldr/az index 4b8644a0..a8234051 100644 --- a/tldr/az +++ b/tldr/az @@ -32,3 +32,11 @@ source: https://github.com/tldr-pages/tldr.git - Manage Azure Network resources: `az network` + +- Start in interactive mode: + +`az interactive` + +- Display help: + +`az --help` diff --git a/tldr/dircolors b/tldr/dircolors index 5ed739e1..689a024e 100644 --- a/tldr/dircolors +++ b/tldr/dircolors @@ -12,6 +12,10 @@ source: https://github.com/tldr-pages/tldr.git `dircolors` +- Display each filetype with the color they would appear in `ls`: + +`dircolors --print-ls-colors` + - Output commands to set LS_COLOR using colors from a file: `dircolors {{path/to/file}}` diff --git a/tldr/linux/rpicam-vid b/tldr/linux/rpicam-vid index 9a4c5c1b..6f17925b 100644 --- a/tldr/linux/rpicam-vid +++ b/tldr/linux/rpicam-vid @@ -6,13 +6,9 @@ source: https://github.com/tldr-pages/tldr.git # rpicam-vid > Capture a video using a Raspberry Pi camera. -> Some subcommands such as `vlc` have their own usage documentation. +> See also: `vlc`. > More information: . - Capture a 10 second video: `rpicam-vid -t 10000 -o {{path/to/file.h264}}` - -- Play the video using `vlc`: - -`vlc {{path/to/file.h264}}` diff --git a/tldr/ls b/tldr/ls index 09391e9c..7deef201 100644 --- a/tldr/ls +++ b/tldr/ls @@ -12,30 +12,30 @@ source: https://github.com/tldr-pages/tldr.git `ls -1` -- List all files, including hidden files: +- List [a]ll files, including hidden files: `ls -a` -- List all files, with trailing `/` added to directory names: +- List files with a trailing symbol to indicate file type (directory/, symbolic_link@, executable*, ...): `ls -F` -- Long format list (permissions, ownership, size, and modification date) of all files: +- List [a]ll files in [l]ong format (permissions, ownership, size, and modification date): `ls -la` -- Long format list with size displayed using human-readable units (KiB, MiB, GiB): +- List files in [l]ong format with size displayed using [h]uman-readable units (KiB, MiB, GiB): `ls -lh` -- Long format list sorted by size (descending) recursively: +- List files in [l]ong format, sorted by [S]ize (descending) [R]ecursively: `ls -lSR` -- Long format list of all files, sorted by modification date (oldest first): +- List files in [l]ong format, sorted by [t]ime the file was modified and in [r]everse order (oldest first): `ls -ltr` -- Only list directories: +- Only list [d]irectories: `ls -d */` diff --git a/tldr/xh b/tldr/xh index 1113f4b2..b0793d70 100644 --- a/tldr/xh +++ b/tldr/xh @@ -6,6 +6,8 @@ source: https://github.com/tldr-pages/tldr.git # xh > Friendly and fast tool for sending HTTP requests. +> Note: `xh`, written in rust, serves as an effective drop-in replacement for `http`. +> See also: `http`, `curl`. > More information: . - Send a GET request: @@ -27,3 +29,7 @@ source: https://github.com/tldr-pages/tldr.git - Make a GET request and save the response body to a file: `xh --download {{httpbin.org/json}} --output {{path/to/file}}` + +- Show equivalent `curl` command (this will not send any request): + +`xh --{{curl|curl-long}} {{--follow --verbose get http://example.com user-agent:curl}}`