mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-24 21:52:17 +00:00
Update cheatsheets
This commit is contained in:
@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Set a profile to audit mode from a specific directory:
|
||||
|
||||
`sudo aa-audit {{[-d|--dir]}} {{/path/to/profiles}} {{profile_name}}`
|
||||
`sudo aa-audit {{[-d|--dir]}} /{{path/to/profiles}} {{profile_name}}`
|
||||
|
||||
- Force audit mode even if already applied:
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Specify the directory containing profiles:
|
||||
|
||||
`sudo aa-cleanprof {{[-d|--dir]}} {{/path/to/profiles}} {{profile_name}}`
|
||||
`sudo aa-cleanprof {{[-d|--dir]}} /{{path/to/profiles}} {{profile_name}}`
|
||||
|
||||
- Run silently without prompts:
|
||||
|
||||
|
||||
@@ -14,11 +14,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Specify a custom directory for profiles:
|
||||
|
||||
`sudo aa-genprof {{[-d|--dir]}} {{/path/to/profiles}} {{program_path}}`
|
||||
`sudo aa-genprof {{[-d|--dir]}} /{{path/to/profiles}} {{program_path}}`
|
||||
|
||||
- Specify a custom logfile for profiling:
|
||||
|
||||
`sudo aa-genprof {{[-f|--file]}} {{/path/to/logfile}} {{program_path}}`
|
||||
`sudo aa-genprof {{[-f|--file]}} /{{path/to/logfile}} {{program_path}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
@@ -14,11 +14,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Use a specific directory for AppArmor profiles:
|
||||
|
||||
`sudo aa-logprof {{[-d|--dir]}} {{/path/to/profiles}}`
|
||||
`sudo aa-logprof {{[-d|--dir]}} /{{path/to/profiles}}`
|
||||
|
||||
- Use a specific log file instead of the default:
|
||||
|
||||
`sudo aa-logprof {{[-f|--file]}} {{/path/to/logfile}}`
|
||||
`sudo aa-logprof {{[-f|--file]}} /{{path/to/logfile}}`
|
||||
|
||||
- Ignore all log entries before the specified mark:
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Merge profile files into a specific directory:
|
||||
|
||||
`sudo aa-mergeprof {{[-d|--dir]}} {{/path/to/profiles}} {{file1 file2 ...}}`
|
||||
`sudo aa-mergeprof {{[-d|--dir]}} /{{path/to/profiles}} {{file1 file2 ...}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Automatic Bug Reporting Tool for Fedora-based systems.
|
||||
> Used to detect, analyze, and report application crashes.
|
||||
> More information: <https://abrt.readthedocs.io/>.
|
||||
> More information: <https://abrt.readthedocs.io/en/latest/usage.html>.
|
||||
|
||||
- List detected problems:
|
||||
|
||||
|
||||
@@ -32,4 +32,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Change the root directory and write a specific fake host into the `utmp` file:
|
||||
|
||||
`agetty {{[-r|--chroot]}} {{/path/to/root_directory}} {{[-H|--host]}} {{fake_host}} -`
|
||||
`agetty {{[-r|--chroot]}} /{{path/to/root_directory}} {{[-H|--host]}} {{fake_host}} -`
|
||||
|
||||
@@ -38,4 +38,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Replace a profile, rebuild cache, and write it to a custom directory:
|
||||
|
||||
`sudo apparmor_parser {{[-r|--replace]}} {{[-W|--write-cache]}} {{[-L|--cache-loc]}} {{/path/to/cache}} {{path/to/profile}}`
|
||||
`sudo apparmor_parser {{[-r|--replace]}} {{[-W|--write-cache]}} {{[-L|--cache-loc]}} /{{path/to/cache}} {{path/to/profile}}`
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Search for packages that contain the specified file or path:
|
||||
|
||||
`apt-file {{search|find}} {{partial_path/to/file}}`
|
||||
`apt-file {{search|find}} {{path/to/file}}`
|
||||
|
||||
- List the contents of a specific package:
|
||||
|
||||
|
||||
@@ -26,11 +26,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Watch a file for changes:
|
||||
|
||||
`sudo auditctl -a always,exit -F arch=b64 -F path={{/path/to/file}} -F perm=wa`
|
||||
`sudo auditctl -a always,exit -F arch=b64 -F path=/{{path/to/file}} -F perm=wa`
|
||||
|
||||
- Recursively watch a directory for changes:
|
||||
|
||||
`sudo auditctl -a always,exit -F arch=b64 -F dir={{/path/to/directory/}} -F perm=wa`
|
||||
`sudo auditctl -a always,exit -F arch=b64 -F dir=/{{path/to/directory}}/ -F perm=wa`
|
||||
|
||||
- Display [h]elp:
|
||||
|
||||
|
||||
@@ -29,6 +29,14 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`aur sync {{[-u|--upgrades]}}`
|
||||
|
||||
- Clean build files after install:
|
||||
|
||||
`aur sync {{[-C|--clean]}} {{package}}`
|
||||
|
||||
- Install a package without viewing changes in Vim and do not confirm dependency installation:
|
||||
|
||||
`aur sync --noview {{[-n|--noconfirm]}} {{package}}`
|
||||
|
||||
- Remove a package form the repository metadata (does not remove the package file itself):
|
||||
|
||||
`repo-remove {{path/to/database.db.tar.gz}} {{package}}`
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Display services and hosts exposed on the local network via mDNS/DNS-SD.
|
||||
> Avahi is compatible with Bonjour (Zeroconf) found in Apple devices.
|
||||
> More information: <https://www.avahi.org/>.
|
||||
> More information: <https://manned.org/avahi-browse>.
|
||||
|
||||
- List services available on the local network along with their addresses and ports, ignoring ones on the local machine:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# avahi-resolve
|
||||
|
||||
> Translate between host names and IP Addresses.
|
||||
> More information: <https://www.avahi.org/>.
|
||||
> More information: <https://manned.org/avahi-resolve>.
|
||||
|
||||
- Resolve a local service to its IPv4:
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Specify the path to the EFI system partition (defaults to `/efi/`, `/boot/` or `/boot/efi`):
|
||||
|
||||
`bootctl --esp-path {{/path/to/efi_system_partition/}}`
|
||||
`bootctl --esp-path /{{path/to/efi_system_partition}}/`
|
||||
|
||||
- Install `systemd-boot` into the EFI system partition:
|
||||
|
||||
|
||||
@@ -16,6 +16,14 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`cage -- {{application}} {{arguments}}`
|
||||
|
||||
- Hide window [d]ecorations (this can lock you from accessing the terminal):
|
||||
|
||||
`cage -d {{application}}`
|
||||
|
||||
- Allow [s]witching terminals with `<Ctrl Alt F2>`:
|
||||
|
||||
`cage -s {{application}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`cage -h`
|
||||
|
||||
13
tldr/linux/chvt
Normal file
13
tldr/linux/chvt
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# chvt
|
||||
|
||||
> Change foreground virtual terminal.
|
||||
> More information: <https://manned.org/chvt>.
|
||||
|
||||
- Change to a specific TTY:
|
||||
|
||||
`sudo chvt {{3}}`
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# datamash
|
||||
|
||||
> Perform basic numeric, textual and statistical operations on input textual data files.
|
||||
> More information: <https://www.gnu.org/software/datamash/manual/html_node/Invoking-datamash.html>.
|
||||
> More information: <https://www.gnu.org/software/datamash/manual/datamash.html#Invoking-datamash>.
|
||||
|
||||
- Get max, min, mean and median of a single column of numbers:
|
||||
|
||||
|
||||
@@ -11,24 +11,24 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Print a specific key value:
|
||||
|
||||
`dconf read {{/path/to/key}}`
|
||||
`dconf read /{{path/to/key}}`
|
||||
|
||||
- Print a specific path sub-directories and sub-keys:
|
||||
|
||||
`dconf list {{/path/to/directory/}}`
|
||||
`dconf list /{{path/to/directory}}/`
|
||||
|
||||
- Write a specific key value:
|
||||
|
||||
`dconf write {{/path/to/key}} "{{value}}"`
|
||||
`dconf write /{{path/to/key}} "{{value}}"`
|
||||
|
||||
- Reset a specific key value:
|
||||
|
||||
`dconf reset {{/path/to/key}}`
|
||||
`dconf reset /{{path/to/key}}`
|
||||
|
||||
- Watch a specific key/directory for changes:
|
||||
|
||||
`dconf watch {{/path/to/key|/path/to/directory/}}`
|
||||
`dconf watch /{{path/to/key|/path/to/directory}}/`
|
||||
|
||||
- Dump a specific directory in INI file format:
|
||||
|
||||
`dconf dump {{/path/to/directory/}}`
|
||||
`dconf dump /{{path/to/directory}}/`
|
||||
|
||||
@@ -11,8 +11,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Print a specific key value:
|
||||
|
||||
`dconf read {{/path/to/key}}`
|
||||
`dconf read /{{path/to/key}}`
|
||||
|
||||
- Print a specific key [d]efault value:
|
||||
|
||||
`dconf read -d {{/path/to/key}}`
|
||||
`dconf read -d /{{path/to/key}}`
|
||||
|
||||
@@ -11,8 +11,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Reset a specific key value:
|
||||
|
||||
`dconf reset {{/path/to/key}}`
|
||||
`dconf reset /{{path/to/key}}`
|
||||
|
||||
- Reset a specific directory:
|
||||
|
||||
`dconf reset -f {{/path/to/directory/}}`
|
||||
`dconf reset -f /{{path/to/directory}}/`
|
||||
|
||||
@@ -11,24 +11,24 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Write a specific key value:
|
||||
|
||||
`dconf write {{/path/to/key}} "{{value}}"`
|
||||
`dconf write /{{path/to/key}} "{{value}}"`
|
||||
|
||||
- Write a specific string key value:
|
||||
|
||||
`dconf write {{/path/to/key}} "'{{string}}'"`
|
||||
`dconf write /{{path/to/key}} "'{{string}}'"`
|
||||
|
||||
- Write a specific integer key value:
|
||||
|
||||
`dconf write {{/path/to/key}} "{{5}}"`
|
||||
`dconf write /{{path/to/key}} "{{5}}"`
|
||||
|
||||
- Write a specific boolean key value:
|
||||
|
||||
`dconf write {{/path/to/key}} "{{true|false}}"`
|
||||
`dconf write /{{path/to/key}} "{{true|false}}"`
|
||||
|
||||
- Write a specific array key value:
|
||||
|
||||
`dconf write {{/path/to/key}} "[{{'first', 'second', ...}}]"`
|
||||
`dconf write /{{path/to/key}} "[{{'first', 'second', ...}}]"`
|
||||
|
||||
- Write a specific empty array key value:
|
||||
|
||||
`dconf write {{/path/to/key}} "@as []"`
|
||||
`dconf write /{{path/to/key}} "@as []"`
|
||||
|
||||
@@ -10,15 +10,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a Debian stable release system inside the `debian-root` directory:
|
||||
|
||||
`sudo debootstrap stable {{path/to/debian-root/}} http://deb.debian.org/debian`
|
||||
`sudo debootstrap stable {{path/to/debian-root}}/ http://deb.debian.org/debian`
|
||||
|
||||
- Create a minimal system including only required packages:
|
||||
|
||||
`sudo debootstrap --variant=minbase stable {{path/to/debian-root/}}`
|
||||
`sudo debootstrap --variant=minbase stable {{path/to/debian-root}}/`
|
||||
|
||||
- Create an Ubuntu 20.04 system inside the `focal-root` directory with a local mirror:
|
||||
|
||||
`sudo debootstrap focal {{path/to/focal-root/}} {{file:///path/to/mirror/}}`
|
||||
`sudo debootstrap focal {{path/to/focal-root}}/ {{file:///path/to/mirror/}}`
|
||||
|
||||
- Switch to a bootstrapped system:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# diff3
|
||||
|
||||
> Compare three files line by line.
|
||||
> More information: <https://www.gnu.org/software/diffutils/manual/html_node/Invoking-diff3.html>.
|
||||
> More information: <https://www.gnu.org/software/diffutils/manual/diffutils.html#Invoking-diff3>.
|
||||
|
||||
- Compare files:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Show the system's DNS domain name.
|
||||
> Note: The tool uses `gethostname` to get the hostname of the system and then `getaddrinfo` to resolve it into a canonical name.
|
||||
> More information: <https://www.gnu.org/software/inetutils/manual/html_node/dnsdomainname-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/inetutils/manual/inetutils.html#dnsdomainname-invocation>.
|
||||
|
||||
- Show the system's DNS domain name:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# etckeeper
|
||||
|
||||
> Track system configuration files in Git.
|
||||
> More information: <https://etckeeper.branchable.com/>.
|
||||
> More information: <https://manned.org/etckeeper>.
|
||||
|
||||
- Set up a Git repo and perform various setup tasks (run from `/etc`):
|
||||
|
||||
|
||||
21
tldr/linux/fbset
Normal file
21
tldr/linux/fbset
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# fbset
|
||||
|
||||
> Show and modify frame buffer device settings.
|
||||
> More information: <https://manned.org/man/fbset.1>.
|
||||
|
||||
- Show current framebuffer settings:
|
||||
|
||||
`sudo fbset {{[-i|--info]}}`
|
||||
|
||||
- Set a framebuffer mode defined in `/etc/fb.modes`:
|
||||
|
||||
`sudo fbset "{{800}}x{{600}}-{{60}}"`
|
||||
|
||||
- Set an arbitrary framebuffer mode:
|
||||
|
||||
`sudo fbset {{TTY_horizontal}} {{TTY_vertical}} {{monitor_horizontal}} {{monitor_vertical}} {{color_depth}}`
|
||||
@@ -10,24 +10,24 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Recursively synchronize a directory to another location:
|
||||
|
||||
`fpsync -v {{/path/to/source/}} {{/path/to/destination/}}`
|
||||
`fpsync -v /{{path/to/source}}/ /{{path/to/destination}}/`
|
||||
|
||||
- Recursively synchronize a directory with the final pass (It enables rsync's `--delete` option with each synchronization job):
|
||||
|
||||
`fpsync -v -E {{/path/to/source/}} {{/path/to/destination/}}`
|
||||
`fpsync -v -E /{{path/to/source}}/ /{{path/to/destination}}/`
|
||||
|
||||
- Recursively synchronize a directory to a destination using 8 concurrent synchronization jobs:
|
||||
|
||||
`fpsync -v -n 8 -E {{/path/to/source/}} {{/path/to/destination/}}`
|
||||
`fpsync -v -n 8 -E /{{path/to/source}}/ /{{path/to/destination}}/`
|
||||
|
||||
- Recursively synchronize a directory to a destination using 8 concurrent synchronization jobs spread over two remote workers (machine1 and machine2):
|
||||
|
||||
`fpsync -v -n 8 -E -w login@machine1 -w login@machine2 -d {{/path/to/shared/directory}} {{/path/to/source/}} {{/path/to/destination/}}`
|
||||
`fpsync -v -n 8 -E -w login@machine1 -w login@machine2 -d /{{path/to/shared/directory}} /{{path/to/source}}/ /{{path/to/destination}}/`
|
||||
|
||||
- Recursively synchronize a directory to a destination using 4 local workers, each one transferring at most 1000 files and 100 MB per synchronization job:
|
||||
|
||||
`fpsync -v -n 4 -f 1000 -s $((100 * 1024 * 1024)) {{/path/to/source/}} {{/path/to/destination/}}`
|
||||
`fpsync -v -n 4 -f 1000 -s $((100 * 1024 * 1024)) /{{path/to/source}}/ /{{path/to/destination}}/`
|
||||
|
||||
- Recursively synchronize any directories but exclude specific `.snapshot*` files (Note: Options and values must be separated by a pipe character):
|
||||
|
||||
`fpsync -v -O "-x|.snapshot*" {{/path/to/source/}} {{/path/to/destination/}}`
|
||||
`fpsync -v -O "-x|.snapshot*" /{{path/to/source}}/ /{{path/to/destination}}/`
|
||||
|
||||
@@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Show what modifications would be made when growing partition `n` in a disk image:
|
||||
|
||||
`growpart {{[-N|--dry-run]}} {{/path/to/disk.img}} {{n}}`
|
||||
`growpart {{[-N|--dry-run]}} /{{path/to/disk.img}} {{n}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# grub-install
|
||||
|
||||
> Install GRUB to a device.
|
||||
> More information: <https://www.gnu.org/software/grub/manual/grub/html_node/Installing-GRUB-using-grub_002dinstall.html>.
|
||||
> More information: <https://www.gnu.org/software/grub/manual/grub/grub.html#Installing-GRUB-using-grub_002dinstall>.
|
||||
|
||||
- Install GRUB on a BIOS system:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# grub-mkconfig
|
||||
|
||||
> Generate a GRUB configuration file.
|
||||
> More information: <https://www.gnu.org/software/grub/manual/grub/html_node/Invoking-grub_002dmkconfig.html>.
|
||||
> More information: <https://www.gnu.org/software/grub/manual/grub/grub.html#Invoking-grub_002dmkconfig>.
|
||||
|
||||
- Do a dry run and print the configuration to `stdout`:
|
||||
|
||||
|
||||
@@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Set the default boot entry to an entry number, name or identifier for an alternative boot directory for the next boot:
|
||||
|
||||
`sudo grub-reboot --boot-directory {{/path/to/boot_directory}} {{entry_number}}`
|
||||
`sudo grub-reboot --boot-directory /{{path/to/boot_directory}} {{entry_number}}`
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> The program `grub-script-check` takes a GRUB script file and checks it for syntax errors.
|
||||
> It may take a path as a non-option argument. If none is supplied, it will read from `stdin`.
|
||||
> More information: <https://www.gnu.org/software/grub/manual/grub/html_node/Invoking-grub_002dscript_002dcheck.html>.
|
||||
> More information: <https://www.gnu.org/software/grub/manual/grub/grub.html#Invoking-grub_002dscript_002dcheck>.
|
||||
|
||||
- Check a specific script file for syntax errors:
|
||||
|
||||
|
||||
@@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Set the default boot entry to an entry number, name or identifier for an alternative boot directory:
|
||||
|
||||
`sudo grub-set-default --boot-directory {{/path/to/boot_directory}} {{entry_number}}`
|
||||
`sudo grub-set-default --boot-directory /{{path/to/boot_directory}} {{entry_number}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# guix package
|
||||
|
||||
> Install, upgrade and remove Guix packages, or rollback to previous configurations.
|
||||
> More information: <https://guix.gnu.org/manual/html_node/Invoking-guix-package.html>.
|
||||
> More information: <https://guix.gnu.org/manual/en/guix.html#Invoking-guix-package>.
|
||||
|
||||
- Install a new package:
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- View images [r]ecursively from a path:
|
||||
|
||||
`imv -r --slideshow {{path/to/path}}`
|
||||
`imv -r --slideshow {{path/to/directory}}`
|
||||
|
||||
- Open multiple images via `stdin`:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Easily build KDE components from its source repositories.
|
||||
> Drop-in replacement for `kdesrc-build`.
|
||||
> More information: <https://kde-builder.kde.org/en/cmdline/cmdline-usage.html>.
|
||||
> More information: <https://kde-builder.kde.org/en/cmdline/supported-cmdline-params.html>.
|
||||
|
||||
- Initialize `kde-builder`:
|
||||
|
||||
@@ -33,9 +33,9 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`kde-builder --run {{executable_name}}`
|
||||
|
||||
- Build all configured components:
|
||||
- Install login session:
|
||||
|
||||
`kde-builder`
|
||||
`kde-builder --install-login-session-only`
|
||||
|
||||
- Use system libraries in place of a component if it fails to build:
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display a cursor to send a window to the system tray with a custom icon when pressing the left mouse button:
|
||||
|
||||
`kdocker -i {{/path/to/icon}}`
|
||||
`kdocker -i /{{path/to/icon}}`
|
||||
|
||||
- Open an application, send it to the system tray and if focus is lost, minimize it:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# links
|
||||
|
||||
> Command-line web browser.
|
||||
> More information: <http://links.twibright.com/>.
|
||||
> More information: <http://links.twibright.com/user_en.html#subch-browser_calibration>.
|
||||
|
||||
- Visit a website:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Command-line web browser.
|
||||
> See also: `links`.
|
||||
> More information: <http://links.twibright.com/>.
|
||||
> More information: <http://links.twibright.com/user_en.html#subch-browser_calibration>.
|
||||
|
||||
- Visit a website in graphics mode:
|
||||
|
||||
|
||||
@@ -39,4 +39,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Load a keymap from the specified file for the console:
|
||||
|
||||
`loadkeys {{[-C|--console]}} {{/dev/ttyN}} {{/path/to/file}}`
|
||||
`loadkeys {{[-C|--console]}} {{/dev/ttyN}} /{{path/to/file}}`
|
||||
|
||||
@@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Check any kernel for LXC support:
|
||||
|
||||
`CONFIG={{/path/to/configuration}} lxc-checkconfig`
|
||||
`CONFIG=/{{path/to/configuration}} lxc-checkconfig`
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a container in a target directory:
|
||||
|
||||
`sudo lxc-create {{[-P|--lxcpath]}} {{/path/to/directory/}} {{[-n|--name]}} {{container_name}} {{[-t|--template]}} download`
|
||||
`sudo lxc-create {{[-P|--lxcpath]}} /{{path/to/directory}}/ {{[-n|--name]}} {{container_name}} {{[-t|--template]}} download`
|
||||
|
||||
- Create a container passing options to a template:
|
||||
|
||||
|
||||
@@ -11,12 +11,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Lookup the persistent security context setting of an absolute path:
|
||||
|
||||
`matchpathcon {{/path/to/file}}`
|
||||
`matchpathcon /{{path/to/file}}`
|
||||
|
||||
- Restrict lookup to settings on a specific file type:
|
||||
|
||||
`matchpathcon -m {{file|dir|pipe|chr_file|blk_file|lnk_file|sock_file}} {{/path/to/file}}`
|
||||
`matchpathcon -m {{file|dir|pipe|chr_file|blk_file|lnk_file|sock_file}} /{{path/to/file}}`
|
||||
|
||||
- [V]erify that the persistent and current security context of a path agree:
|
||||
|
||||
`matchpathcon -V {{/path/to/file}}`
|
||||
`matchpathcon -V /{{path/to/file}}`
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Use a custom directory (defaults to `$TMPDIR`, or `/tmp`):
|
||||
|
||||
`mktemp {{[-p |--tmpdir=]}}{{/path/to/tempdir}}`
|
||||
`mktemp {{[-p |--tmpdir=]}}/{{path/to/tempdir}}`
|
||||
|
||||
- Use a custom path template (`X`s are replaced with random alphanumeric characters):
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a Debian Stable directory chroot:
|
||||
|
||||
`sudo mmdebstrap stable {{path/to/debian-root/}}`
|
||||
`sudo mmdebstrap stable {{path/to/debian-root}}/`
|
||||
|
||||
- Create a Debian Bookworm tarball chroot using a mirror:
|
||||
|
||||
|
||||
17
tldr/linux/modetest
Normal file
17
tldr/linux/modetest
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# modetest
|
||||
|
||||
> Diagnose Direct Rendering Manager and Kernel Mode Setting.
|
||||
> More information: <https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841850/Video_Mixer#modetest>.
|
||||
|
||||
- List connectors and their available modes for a specific driver:
|
||||
|
||||
`modetest -M {{mgag200}} -c`
|
||||
|
||||
- Set the resolution of a connector:
|
||||
|
||||
`sudo modetest -M {{mgag200}} -s {{connector_id}}:{{1600}}x{{1200}}`
|
||||
@@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Pretend to load a module into the kernel, but don't actually do it:
|
||||
|
||||
`sudo modprobe --dry-run {{module_name}}`
|
||||
`sudo modprobe {{[-n|--dry-run]}} {{module_name}}`
|
||||
|
||||
- Load a module into the kernel:
|
||||
|
||||
@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Remove a module from the kernel:
|
||||
|
||||
`sudo modprobe --remove {{module_name}}`
|
||||
`sudo modprobe {{[-r|--remove]}} {{module_name}}`
|
||||
|
||||
- Remove a module and those that depend on it from the kernel:
|
||||
|
||||
@@ -27,4 +27,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Show a kernel module's dependencies:
|
||||
|
||||
`sudo modprobe --show-depends {{module_name}}`
|
||||
`sudo modprobe {{[-D|--show-depends]}} {{module_name}}`
|
||||
|
||||
41
tldr/linux/nerdctl
Normal file
41
tldr/linux/nerdctl
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# nerdctl
|
||||
|
||||
> Docker-compatible CLI for containerd.
|
||||
> More information: <https://github.com/containerd/nerdctl/blob/main/docs/command-reference.md>.
|
||||
|
||||
- List all containers (running and stopped):
|
||||
|
||||
`nerdctl ps {{[-a|--all]}}`
|
||||
|
||||
- Start a container from an image, with a custom name:
|
||||
|
||||
`nerdctl run --name {{container_name}} {{image}}`
|
||||
|
||||
- Start or stop an existing container:
|
||||
|
||||
`nerdctl {{start|stop}} {{container_name}}`
|
||||
|
||||
- Pull an image from a container registry:
|
||||
|
||||
`nerdctl pull {{image}}`
|
||||
|
||||
- Display the list of already downloaded images:
|
||||
|
||||
`nerdctl images`
|
||||
|
||||
- Open an interactive tty with Bourne shell (`sh`) inside a running container:
|
||||
|
||||
`nerdctl exec {{[-it|--interactive --tty]}} {{container_name}} sh`
|
||||
|
||||
- Remove stopped containers:
|
||||
|
||||
`nerdctl rm {{container1 container2 ...}}`
|
||||
|
||||
- Fetch and follow the logs of a container:
|
||||
|
||||
`nerdctl logs {{[-f|--follow]}} {{container_name}}`
|
||||
@@ -34,7 +34,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Find out which package owns a file:
|
||||
|
||||
`opkg search {{/path/to/file}}`
|
||||
`opkg search /{{path/to/file}}`
|
||||
|
||||
- List all files belonging to a package:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> A partition manipulation program.
|
||||
> See also: `parted.interactive`, `partprobe`.
|
||||
> More information: <https://www.gnu.org/software/parted/manual/html_node/Invoking-Parted.html>.
|
||||
> More information: <https://www.gnu.org/software/parted/manual/parted.html#Invoking-Parted>.
|
||||
|
||||
- List partitions on all block devices:
|
||||
|
||||
|
||||
21
tldr/linux/pct-config
Normal file
21
tldr/linux/pct-config
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pct config
|
||||
|
||||
> Print the configuration of a container.
|
||||
> More information: <https://pve.proxmox.com/pve-docs/pct.1.html>.
|
||||
|
||||
- Display the saved configuration:
|
||||
|
||||
`pct config {{100}}`
|
||||
|
||||
- Display the running configuration without pending changes:
|
||||
|
||||
`pct config {{100}} --current`
|
||||
|
||||
- Display configuration of a specific snapshot:
|
||||
|
||||
`pct config {{100}} --snapshot {{snapshot_name}}`
|
||||
21
tldr/linux/pct-destroy
Normal file
21
tldr/linux/pct-destroy
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pct destroy
|
||||
|
||||
> Destroy a container.
|
||||
> More information: <https://pve.proxmox.com/pve-docs/pct.1.html>.
|
||||
|
||||
- Destroy a container:
|
||||
|
||||
`pct {{[des|destroy]}} {{100}}`
|
||||
|
||||
- Destroy a container even if it's running:
|
||||
|
||||
`pct {{[des|destroy]}} {{100}} --force`
|
||||
|
||||
- Also delete all references to this container:
|
||||
|
||||
`pct {{[des|destroy]}} {{100}} --purge`
|
||||
@@ -16,6 +16,18 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`pct set {{100}} --net0 name=eth0,bridge=vmbr0,ip={{10.0.0.100/24}},gw={{10.0.0.1}}`
|
||||
|
||||
- Set container memory limit:
|
||||
- Set container memory and CPU limit:
|
||||
|
||||
`pct set {{100}} --memory {{8192}}`
|
||||
`pct set {{100}} --memory {{8192}} --cpulimit {{4}}`
|
||||
|
||||
- Mount a host file location in a guest:
|
||||
|
||||
`pct set {{100}} --mp{{0}} /{{path/to/host_directory}},mp=/{{path/to/guest_mount_point}}`
|
||||
|
||||
- Set container tags:
|
||||
|
||||
`pct set {{100}} --tags {{tag1,tag2,...}}`
|
||||
|
||||
- Remove an option:
|
||||
|
||||
`pct set {{100}} --delete {{net0,mp0,mp1,...}}`
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Easy security-hardened OpenVPN setup and manager.
|
||||
> Originally designed for the Raspberry Pi, but works on other Linux devices too.
|
||||
> More information: <https://www.pivpn.io/>.
|
||||
> More information: <https://docs.pivpn.io/openvpn/>.
|
||||
|
||||
- Add a new client device:
|
||||
|
||||
|
||||
@@ -10,11 +10,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Apply a wallpaper:
|
||||
|
||||
`plasma-apply-wallpaperimage {{/path/to/image}}`
|
||||
`plasma-apply-wallpaperimage /{{path/to/image}}`
|
||||
|
||||
- Apply a wallpaper with a fill mode:
|
||||
|
||||
`plasma-apply-wallpaperimage --fill-mode {{stretch|preserveAspectFit|preserveAspectCrop|tile|tileVertically|tileHorizontally|pad}} {{/path/to/image}}`
|
||||
`plasma-apply-wallpaperimage --fill-mode {{stretch|preserveAspectFit|preserveAspectCrop|tile|tileVertically|tileHorizontally|pad}} /{{path/to/image}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
@@ -23,3 +23,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- List downloaded templates:
|
||||
|
||||
`pveam {{[l|list]}} {{local}}`
|
||||
|
||||
- List available templates in a specific section:
|
||||
|
||||
`pveam {{[a|available]}} --section {{system|turnkeylinux|mail}}`
|
||||
|
||||
- Remove a template:
|
||||
|
||||
`pveam {{[r|remove]}} {{local}}:{{vztmpl}}/{{template_name}}`
|
||||
|
||||
@@ -20,6 +20,14 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`pvesm add {{[d|dir]}} {{storage_name}} --path {{path/to/directory}}`
|
||||
|
||||
- Set a storage to contain specific content:
|
||||
|
||||
`pvesm set {{storage_name}} --content {{iso,images,backup,vztmpl,...}}`
|
||||
|
||||
- Delete a file from storage:
|
||||
|
||||
`pvesm free {{local:iso/archlinux-2025.08.01-x86_64.iso}}`
|
||||
|
||||
- Remove a storage:
|
||||
|
||||
`pvesm {{[r|remove]}} {{storage_name}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# qjoypad
|
||||
|
||||
> Translate input from gamepads or joysticks into keyboard strokes or mouse actions.
|
||||
> More information: <https://qjoypad.sourceforge.net/>.
|
||||
> More information: <https://qjoypad.sourceforge.net/doc/doc_index.html>.
|
||||
|
||||
- Start QJoyPad:
|
||||
|
||||
|
||||
@@ -13,9 +13,9 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`qm list`
|
||||
|
||||
- Using an ISO file uploaded on the local storage, create a virtual machine with a 4 GB IDE disk on the `local-lvm` storage and an ID of 100:
|
||||
- Using an ISO file uploaded on the local storage, create a virtual machine with a 4 GB SCSI disk on the `local-lvm` storage and an ID of 100:
|
||||
|
||||
`qm {{[cr|create]}} {{100}} --ide0 {{local-lvm:4}} --net0 {{e1000}} --cdrom {{local:iso/proxmox-mailgateway_2.1.iso}}`
|
||||
`qm {{[cr|create]}} {{100}} --scsi0 {{local-lvm:4}} --net0 {{e1000}} --cdrom {{local:iso/proxmox-mailgateway_2.1.iso}}`
|
||||
|
||||
- Show the configuration of a virtual machine, specifying its ID:
|
||||
|
||||
|
||||
@@ -7,20 +7,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Copy files between local and remote systems.
|
||||
> It mimics the behavior of the `cp` command but operates across different machines.
|
||||
> More information: <https://www.gnu.org/software/inetutils/manual/html_node/rcp-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/inetutils/manual/inetutils.html#rcp-invocation>.
|
||||
|
||||
- Copy a file to a remote host:
|
||||
|
||||
`rcp {{path/to/local_file}} {{username}}@{{remote_host}}:{{/path/to/destination/}}`
|
||||
`rcp {{path/to/local_file}} {{username}}@{{remote_host}}:/{{path/to/destination}}/`
|
||||
|
||||
- Copy a directory recursively:
|
||||
|
||||
`rcp {{[-r|--recursive]}} {{path/to/local_directory}} {{username}}@{{remote_host}}:{{/path/to/destination/}}`
|
||||
`rcp {{[-r|--recursive]}} {{path/to/local_directory}} {{username}}@{{remote_host}}:/{{path/to/destination}}/`
|
||||
|
||||
- Preserve the file attributes:
|
||||
|
||||
`rcp {{[-p|--preserve]}} {{path/to/local_file}} {{username}}@{{remote_host}}:{{/path/to/destination/}}`
|
||||
`rcp {{[-p|--preserve]}} {{path/to/local_file}} {{username}}@{{remote_host}}:/{{path/to/destination}}/`
|
||||
|
||||
- Force copy without a confirmation:
|
||||
|
||||
`rcp {{[-f|--from]}} {{path/to/local_file}} {{username}}@{{remote_host}}:{{/path/to/destination/}}`
|
||||
`rcp {{[-f|--from]}} {{path/to/local_file}} {{username}}@{{remote_host}}:/{{path/to/destination}}/`
|
||||
|
||||
13
tldr/linux/remote-viewer
Normal file
13
tldr/linux/remote-viewer
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# remote-viewer
|
||||
|
||||
> View desktops remotely.
|
||||
> More information: <https://manned.org/remote-viewer>.
|
||||
|
||||
- View a remote using a `virt-viewer` file:
|
||||
|
||||
`remote-viewer {{path/to/virt_viewer_file}}`
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Execute a command on a remote host.
|
||||
> Note: Use `rexec` with caution, as it transmits data in plain text. Consider secure alternatives like SSH for encrypted communication.
|
||||
> More information: <https://www.gnu.org/software/inetutils/manual/html_node/rexec-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/inetutils/manual/inetutils.html#rexec-invocation>.
|
||||
|
||||
- Execute a command on a remote host:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# rlogin
|
||||
|
||||
> Log in to a remote host.
|
||||
> More information: <https://www.gnu.org/software/inetutils/manual/html_node/rlogin-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/inetutils/manual/inetutils.html#rlogin-invocation>.
|
||||
|
||||
- Log in to a remote host:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> RPM Package Manager.
|
||||
> For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
|
||||
> More information: <https://rpm.org/>.
|
||||
> More information: <https://rpm-software-management.github.io/rpm/man/rpm.8>.
|
||||
|
||||
- Show version of httpd package:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# rsh
|
||||
|
||||
> Execute commands on a remote host.
|
||||
> More information: <https://www.gnu.org/software/inetutils/manual/html_node/rsh-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/inetutils/manual/inetutils.html#rsh-invocation>.
|
||||
|
||||
- Execute a command on a remote host:
|
||||
|
||||
|
||||
@@ -10,20 +10,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Overwrite free space and inodes of a disk with 38 writes (slow but secure):
|
||||
|
||||
`sfill {{/path/to/mounted_disk_directory}}`
|
||||
`sfill /{{path/to/mounted_disk_directory}}`
|
||||
|
||||
- Overwrite free space and inodes of a disk with 6 writes (fast but [l]ess secure) and show status ([v]erbose):
|
||||
|
||||
`sfill -l -v {{/path/to/mounted_disk_directory}}`
|
||||
`sfill -l -v /{{path/to/mounted_disk_directory}}`
|
||||
|
||||
- Overwrite free space and inodes of a disk with 1 write (very fast but [l]ess secure [v]erbose) and show status:
|
||||
|
||||
`sfill -ll -v {{/path/to/mounted_disk_directory}}`
|
||||
`sfill -ll -v /{{path/to/mounted_disk_directory}}`
|
||||
|
||||
- Overwrite only free space of a d[I]sk:
|
||||
|
||||
`sfill -I {{/path/to/mounted_disk_directory}}`
|
||||
`sfill -I /{{path/to/mounted_disk_directory}}`
|
||||
|
||||
- Overwrite only free [i]nodes of a disk:
|
||||
|
||||
`sfill -i {{/path/to/mounted_disk_directory}}`
|
||||
`sfill -i /{{path/to/mounted_disk_directory}}`
|
||||
|
||||
@@ -34,7 +34,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Upgrade the DSM using a patch file (should be an absolute path):
|
||||
|
||||
`sudo synoupgrade --patch {{/path/to/file.pat}}`
|
||||
`sudo synoupgrade --patch /{{path/to/file.pat}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# systemctl
|
||||
|
||||
> Control the systemd system and service manager.
|
||||
> Some subcommands such as `disable`, `status`, `reboot` etc. have their own usage documentation.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html>.
|
||||
|
||||
- Show all running services:
|
||||
|
||||
33
tldr/linux/systemctl-status
Normal file
33
tldr/linux/systemctl-status
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# systemctl status
|
||||
|
||||
> Display the status of systemd units.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#status%20PATTERN%E2%80%A6%7CPID%E2%80%A6%5D>.
|
||||
|
||||
- Show the status of a systemd unit:
|
||||
|
||||
`systemctl status {{unit}}.{{service|timer|socket|target|...}}`
|
||||
|
||||
- Show the status of failed units:
|
||||
|
||||
`systemctl status --failed`
|
||||
|
||||
- List all running services:
|
||||
|
||||
`systemctl status`
|
||||
|
||||
- List all units in the system:
|
||||
|
||||
`systemctl status --all`
|
||||
|
||||
- List all units of a specific type:
|
||||
|
||||
`systemctl status --type {{service|timer|socket|target|...}}`
|
||||
|
||||
- List all units with a specific state:
|
||||
|
||||
`systemctl status --state {{active|inactive|failed}}`
|
||||
@@ -23,4 +23,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Operate on a disk image instead of a directory tree:
|
||||
|
||||
`systemd-machine-id-setup --image {{/path/to/image}}`
|
||||
`systemd-machine-id-setup --image /{{path/to/image}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# talk
|
||||
|
||||
> A visual communication program which copies lines from your terminal to that of another user.
|
||||
> More information: <https://www.gnu.org/software/inetutils/manual/html_node/talk-invocation.html>.
|
||||
> More information: <https://www.gnu.org/software/inetutils/manual/inetutils.html#talk-invocation>.
|
||||
|
||||
- Start a talk session with a user on the same machine:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# terminator
|
||||
|
||||
> Arrange multiple GNOME terminals in one window.
|
||||
> More information: <https://gnome-terminator.org/>.
|
||||
> More information: <https://gnome-terminator.readthedocs.io/en/latest/advancedusage.html>.
|
||||
|
||||
- Start `terminator` window:
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Start with a fullscreen window:
|
||||
|
||||
`terminator -f`
|
||||
`terminator {{[-f|--fullscreen]}}`
|
||||
|
||||
- Split terminals horizontally:
|
||||
|
||||
|
||||
@@ -34,4 +34,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Remove all files with a specific original location:
|
||||
|
||||
`trash-rm {{/path/to/file_or_directory}}`
|
||||
`trash-rm /{{path/to/file_or_directory}}`
|
||||
|
||||
@@ -11,20 +11,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Unmount a filesystem, by passing the path to the source it is mounted from:
|
||||
|
||||
`umount {{path/to/device_file}}`
|
||||
`sudo umount {{path/to/device_file}}`
|
||||
|
||||
- Unmount a filesystem, by passing the path to the target where it is mounted:
|
||||
|
||||
`umount {{path/to/mounted_directory}}`
|
||||
`sudo umount {{path/to/mounted_directory}}`
|
||||
|
||||
- When an unmount fails, try to remount the filesystem read-only:
|
||||
|
||||
`umount {{[-r|--read-only]}} {{path/to/mounted_directory}}`
|
||||
`sudo umount {{[-r|--read-only]}} {{path/to/mounted_directory}}`
|
||||
|
||||
- Recursively unmount each specified directory:
|
||||
|
||||
`umount {{[-R|--recursive]}} {{path/to/mounted_directory}}`
|
||||
`sudo umount {{[-R|--recursive]}} {{path/to/mounted_directory}}`
|
||||
|
||||
- Unmount all mounted filesystems (except the `proc` filesystem):
|
||||
|
||||
`umount {{[-a|--all]}}`
|
||||
`sudo umount {{[-a|--all]}}`
|
||||
|
||||
@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Add a medium from a hard drive (run `genhdlist2` in the directory first):
|
||||
|
||||
`sudo urpmi.addmedia --distrib HD file:/{{/path/to/repo}}`
|
||||
`sudo urpmi.addmedia --distrib HD file://{{path/to/repo}}`
|
||||
|
||||
- Add important media from a chosen mirror:
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Record including audio, both with mic and system sounds:
|
||||
|
||||
`wf-recorder {{[-a|--audio]}} {{[-f|--file]}} {{/path/to/file_with_audio.webm}}`
|
||||
`wf-recorder {{[-a|--audio]}} {{[-f|--file]}} /{{path/to/file_with_audio.webm}}`
|
||||
|
||||
- Select and record a portion of the screen using `slurp`, outputting to default `recording.mp4`:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# wine
|
||||
|
||||
> Run Windows executables on Unix-based systems.
|
||||
> More information: <https://wiki.winehq.org/>.
|
||||
> More information: <https://gitlab.winehq.org/wine/wine/-/wikis/Commands>.
|
||||
|
||||
- Run a specific program inside the `wine` environment:
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create an X cursor file using a configuration file and specify the path to the image files:
|
||||
|
||||
`xcursorgen --prefix {{path/to/image_directory/}} {{path/to/config.cursor}} {{path/to/output_file}}`
|
||||
`xcursorgen --prefix {{path/to/image_directory}}/ {{path/to/config.cursor}} {{path/to/output_file}}`
|
||||
|
||||
- Create an X cursor file using a configuration file and write the output to `stdout`:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user