Update cheatsheets

This commit is contained in:
ivuorinen
2024-09-14 00:16:07 +00:00
parent b1e1d5e79c
commit b65706ac27
5 changed files with 26 additions and 12 deletions

View File

@@ -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`

View File

@@ -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}}`

View File

@@ -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: <https://www.raspberrypi.com/documentation/computers/camera_software.html#rpicam-vid>.
- Capture a 10 second video:
`rpicam-vid -t 10000 -o {{path/to/file.h264}}`
- Play the video using `vlc`:
`vlc {{path/to/file.h264}}`

14
tldr/ls
View File

@@ -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 */`

View File

@@ -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: <https://github.com/ducaale/xh>.
- 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}}`