Update cheatsheets

This commit is contained in:
ivuorinen
2026-01-09 00:22:15 +00:00
parent 4c849cfc8a
commit ffe393201e
18 changed files with 43 additions and 40 deletions

View File

@@ -6,12 +6,12 @@ source: https://github.com/tldr-pages/tldr.git
# atrm
> Remove jobs scheduled by `at` or `batch` commands.
> To find job numbers use `atq`.
> Note: To find job numbers use `atq`.
> More information: <https://manned.org/atrm>.
- Remove job number 10:
`atrm {{10}}`
`atrm 10`
- Remove many jobs, separated by spaces:

View File

@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
- Install only production dependencies (skips `devDependencies`):
`bun {{[i|install]}} --production`
`bun {{[i|install]}} {{[-p|--production]}}`
- Install dependencies exactly from the `bun.lockb` lockfile (frozen lockfile):

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# delta
> A viewer for Git and diff output.
> See also: `diff`, `difft`.
> More information: <https://dandavison.github.io/delta/full---help-output.html>.
- Compare files or directories:

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# diff
> Compare files and directories.
> See also: `delta`, `difft`.
> More information: <https://manned.org/diff>.
- Compare files (lists changes to turn `old_file` into `new_file`):

View File

@@ -10,12 +10,12 @@ source: https://github.com/tldr-pages/tldr.git
- Generate an RSA private key of 2048 bits, saving it to a specific file:
`openssl genpkey -algorithm rsa -pkeyopt rsa_keygen_bits:{{2048}} -out {{filename.key}}`
`openssl genpkey -algorithm rsa -pkeyopt rsa_keygen_bits:{{2048}} -out {{path/to/private.key}}`
- Generate an elliptic curve private key using the curve `prime256v1`, saving it to a specific file:
`openssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:{{prime256v1}} -out {{filename.key}}`
`openssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:{{prime256v1}} -out {{path/to/private.key}}`
- Generate an `ED25519` elliptic curve private key, saving it to a specific file:
`openssl genpkey -algorithm {{ED25519}} -out {{filename.key}}`
`openssl genpkey -algorithm {{ED25519}} -out {{path/to/private.key}}`

View File

@@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git
> To specify a remote path, use `user@host:path/to/file_or_directory`.
> More information: <https://download.samba.org/pub/rsync/rsync.1>.
- Transfer a file:
- Transfer a file (use `--dry-run` to simulate the transfer):
`rsync {{path/to/source}} {{path/to/destination}}`
@@ -21,9 +21,9 @@ source: https://github.com/tldr-pages/tldr.git
`rsync {{[-zvhP|--compress --verbose --human-readable --partial --progress]}} {{path/to/source}} {{path/to/destination}}`
- Recursively copy directories:
- Recursively copy directories and ensure each file is fully committed to disk rather than remaining in RAM:
`rsync {{[-r|--recursive]}} {{path/to/source}} {{path/to/destination}}`
`rsync {{[-r|--recursive]}} --fsync {{path/to/source}} {{path/to/destination}}`
- Transfer directory contents, but not the directory itself:

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Shred a file:
`bleachbit_console.exe --shred {{path/to/file}}`
`bleachbit_console.exe --shred {{path o ile}}`
- List available cleaner options:

View File

@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
- Create a new package in a custom output directory:
`choco new {{package}} {{[--out|--output-directory]}} {{path/to/directory}}`
`choco new {{package}} {{[--out|--output-directory]}} {{path o\directory}}`
- Create a new package with specific 32-bit and 64-bit installer URLs:

View File

@@ -10,28 +10,28 @@ source: https://github.com/tldr-pages/tldr.git
- Compile a source file:
`cl {{path/to/source.c}}`
`cl {{path o\source.c}}`
- Compile and create an executable with a custom name:
`cl /Fe {{path/to/output_executable}} {{path/to/source.c}}`
`cl /Fe {{path o\output_executable}} {{path o\source.c}}`
- Compile a source file with optimization enabled:
`cl /O2 {{path/to/source.c}}`
`cl /O2 {{path o\source.c}}`
- Compile a source file and create a debug executable:
`cl /Zi {{path/to/source.c}}`
`cl /Zi {{path o\source.c}}`
- Compile multiple source files:
`cl {{path/to/source1.c path/to/source2.c ...}}`
`cl {{path o\source1.c path o\source2.c ...}}`
- Specify the output directory for compiled files:
`cl /Fo {{path/to/output_directory}}/ {{path/to/source.c}}`
`cl /Fo {{path o\output_directory}}/ {{path o\source.c}}`
- Compile with warnings as errors:
`cl /WX {{path/to/source.c}}`
`cl /WX {{path o\source.c}}`

View File

@@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git
- Set the associated program for a specific file type:
`ftype {{file_type}}="{{path/to/executable_file}}"`
`ftype {{file_type}}="{{path oxecutable_file}}"`

View File

@@ -10,24 +10,24 @@ source: https://github.com/tldr-pages/tldr.git
- Create a static library from object files:
`lib /OUT :{{path/to/library.lib}} {{path/to/file1.obj path/to/file2.obj ...}}`
`lib /OUT :{{path o\library.lib}} {{path o ile1.obj path o ile2.obj ...}}`
- List the contents of a library:
`lib /LIST {{path/to/library.lib}}`
`lib /LIST {{path o\library.lib}}`
- Add an object file to an existing library:
`lib {{path/to/library.lib}} {{path/to/file.obj}}`
`lib {{path o\library.lib}} {{path o ile.obj}}`
- Remove an object file from a library:
`lib /REMOVE :{{path/to/file.obj}} {{path/to/library.lib}}`
`lib /REMOVE :{{path o ile.obj}} {{path o\library.lib}}`
- Extract an object file from a library:
`lib /EXTRACT :{{path/to/file.obj}} {{path/to/library.lib}}`
`lib /EXTRACT :{{path o ile.obj}} {{path o\library.lib}}`
- Create an import library from a DLL:
`lib /DEF :{{path/to/definition.def}} /OUT:{{path/to/import.lib}}`
`lib /DEF :{{path o\definition.def}} /OUT:{{path o\import.lib}}`

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Build targets using a specific makefile:
`nmake /F {{path/to/makefile}}`
`nmake /F {{path o\makefile}}`
- Build a specific target:

View File

@@ -24,7 +24,7 @@ source: https://github.com/tldr-pages/tldr.git
- Execute a specific script:
`powershell -File {{path/to/script.ps1}}`
`powershell -File {{path o\script.ps1}}`
- Start a session with a specific version of PowerShell:

View File

@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
- Execute a specific Python file:
`py {{path/to/file.py}}`
`py {{path o ile.py}}`
- Run specific Python version. If the version is missing, and `PYLAUNCHER_ALLOW_INSTALL` environment variable is set, auto-install via Microsoft Store or Winget:

View File

@@ -11,20 +11,21 @@ source: https://github.com/tldr-pages/tldr.git
- Rename a file:
`Rename-Item -Path "{{path/to/file}}" -NewName "{{new_file_name}}"`
`Rename-Item -Path "{{path o ile}}" -NewName "{{new_file_name}}"`
- Rename a directory:
`Rename-Item -Path "{{path/to/directory}}" -NewName "{{new_directory_name}}"`
`Rename-Item -Path "{{path o\directory}}" -NewName "{{new_directory_name}}"`
- Rename and move a file:
`Rename-Item -Path "{{path/to/file}}" -NewName "{{path/to/new_file_name}}"`
`Rename-Item -Path "{{path o ile}}" -NewName "{{path o
ew_file_name}}"`
- Rename a file by force:
`Rename-Item -Path "{{path/to/file}}" -NewName "{{new_file_name}}" -Force`
`Rename-Item -Path "{{path o ile}}" -NewName "{{new_file_name}}" -Force`
- Prompt confirmation before renaming a file:
`Rename-Item -Path "{{path/to/file}}" -NewName "{{new_file_name}}" {{[-Confirm|-cf]}}`
`Rename-Item -Path "{{path o ile}}" -NewName "{{new_file_name}}" {{[-Confirm|-cf]}}`

View File

@@ -11,19 +11,19 @@ source: https://github.com/tldr-pages/tldr.git
- Get information about a memory dump file:
`python3 vol.py {{[-f|--filename]}} {{path/to/memory_dump_file}} windows.info`
`python3 vol.py {{[-f|--filename]}} {{path o\memory_dump_file}} windows.info`
- List active processes:
`python3 vol.py {{[-f|--filename]}} {{path/to/memory_dump_file}} windows.pslist`
`python3 vol.py {{[-f|--filename]}} {{path o\memory_dump_file}} windows.pslist`
- List hashes of users on system:
`python3 vol.py {{[-f|--filename]}} {{path/to/memory_dump_file}} windows.hashdump`
`python3 vol.py {{[-f|--filename]}} {{path o\memory_dump_file}} windows.hashdump`
- List active network connections:
`python3 vol.py {{[-f|--filename]}} {{path/to/memory_dump_file}} windows.netstat`
`python3 vol.py {{[-f|--filename]}} {{path o\memory_dump_file}} windows.netstat`
- Display help:

View File

@@ -34,8 +34,8 @@ source: https://github.com/tldr-pages/tldr.git
- Import packages from a file, or export installed packages to a file:
`winget {{import|export}} {{--import-file|--output}} {{path/to/file}}`
`winget {{import|export}} {{--import-file|--output}} {{path o ile}}`
- Validate manifests before submitting a PR to the winget-pkgs repository:
`winget validate {{path/to/manifest}}`
`winget validate {{path o\manifest}}`

View File

@@ -30,7 +30,7 @@ source: https://github.com/tldr-pages/tldr.git
- Import a distribution from a `.tar` file:
`wsl --import {{distribution}} {{path o\install_location}} {{path/to/distro_file.tar}}`
`wsl --import {{distribution}} {{path o\install_location}} {{path o\distro_file.tar}}`
- Change the version of wsl used for the specified distribution: