mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-15 14:48:47 +00:00
Update cheatsheets
This commit is contained in:
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`addr2line {{[-e|--exe]}} {{path/to/executable}} {{address}}`
|
||||
|
||||
- Display the function name, filename and line number:
|
||||
- Display the function name, filename, and line number:
|
||||
|
||||
`addr2line {{[-e|--exe]}} {{path/to/executable}} {{[-f|--functions]}} {{address}}`
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`apt-clone clone {{path/to/directory}}`
|
||||
|
||||
- Create a clone file (`tar.gz`) for backup purposes:
|
||||
- Create a clone file (`.tar.gz`) for backup purposes:
|
||||
|
||||
`apt-clone clone --destination {{path/to/backup.tar.gz}}`
|
||||
|
||||
|
||||
@@ -12,6 +12,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`avifenc {{path/to/input.png}} {{path/to/output.avif}}`
|
||||
|
||||
- Encode with a specific speed (6=default, 0=slowest and 10=fastest):
|
||||
- Encode with a specific speed (6=default, 0=slowest, and 10=fastest):
|
||||
|
||||
`avifenc --speed {{2}} {{path/to/input.png}} {{path/to/output.avif}}`
|
||||
|
||||
@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sudo bootctl reboot-to-firmware true`
|
||||
|
||||
- Specify the path to the EFI system partition (defaults to `/efi/`, `/boot/` or `/boot/efi`):
|
||||
- Specify the path to the EFI system partition (defaults to `/efi/`, `/boot/`, or `/boot/efi`):
|
||||
|
||||
`bootctl --esp-path /{{path/to/efi_system_partition}}/`
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sudo btrfs {{[c|check]}} --check-data-csum {{path/to/partition}}`
|
||||
|
||||
- Use the `n`-th superblock (`n` can be 0, 1 or 2):
|
||||
- Use the `n`-th superblock (`n` can be 0, 1, or 2):
|
||||
|
||||
`sudo btrfs {{[c|check]}} {{[-s|--super]}} {{n}} {{path/to/partition}}`
|
||||
|
||||
|
||||
@@ -28,6 +28,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sudo btrfs {{[i|inspect-internal]}} {{[lo|logical-resolve]}} {{logical_address}} {{path/to/btrfs_mount}}`
|
||||
|
||||
- Print stats of root, extent, csum and fs trees:
|
||||
- Print stats of root, extent, csum, and fs trees:
|
||||
|
||||
`sudo btrfs {{[i|inspect-internal]}} {{[t|tree-stats]}} {{path/to/partition}}`
|
||||
|
||||
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Introspect and monitor the D-Bus bus.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/latest/busctl.html>.
|
||||
|
||||
- Show all peers on the bus, by their service names:
|
||||
- Show all peers on the bus by their service names:
|
||||
|
||||
`busctl list`
|
||||
|
||||
@@ -24,7 +24,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`busctl tree {{service1 service2 ...}}`
|
||||
|
||||
- Show interfaces, methods, properties and signals of the specified object on the specified service:
|
||||
- Show interfaces, methods, properties, and signals of the specified object on the specified service:
|
||||
|
||||
`busctl introspect {{service}} {{path/to/object}}`
|
||||
|
||||
|
||||
@@ -5,10 +5,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# datamash
|
||||
|
||||
> Perform basic numeric, textual and statistical operations on input textual data files.
|
||||
> Perform basic numeric, textual, and statistical operations on input textual data files.
|
||||
> 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:
|
||||
- Get max, min, mean, and median of a single column of numbers:
|
||||
|
||||
`seq 3 | datamash max 1 min 1 mean 1 median 1`
|
||||
|
||||
|
||||
@@ -32,6 +32,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`dex {{[-c|--create]}} {{path/to/file.desktop}}`
|
||||
|
||||
- Execute a single program (with `Terminal=true` in the desktop file) in the given terminal:
|
||||
- Execute a single program (with `Terminal=true` in the `.desktop` file) in the given terminal:
|
||||
|
||||
`dex --term {{terminal}} {{path/to/file.desktop}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# distrobox-create
|
||||
|
||||
> Create a Distrobox container.
|
||||
> The container created will be tightly integrated with the host, allowing sharing of the user's HOME directory, external storage, external USB devices, graphical apps (X11/Wayland), and audio.
|
||||
> The container created will be tightly integrated with the host, allowing sharing of the user's `$HOME` directory, external storage, external USB devices, graphical apps (X11/Wayland), and audio.
|
||||
> See also: `distrobox`.
|
||||
> More information: <https://distrobox.it/usage/distrobox-create/>.
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# distrobox-enter
|
||||
|
||||
> Enter a Distrobox container.
|
||||
> Default command executed is your SHELL, but you can specify different shells or entire commands to execute. If used inside a script, an application, or a service, you can use the `--headless` mode to disable the tty and interactivity.
|
||||
> Default command executed is your `$SHELL`, but you can specify different shells or entire commands to execute. If used inside a script, an application, or a service, you can use the `--headless` mode to disable the tty and interactivity.
|
||||
> See also: `distrobox`.
|
||||
> More information: <https://distrobox.it/usage/distrobox-enter/>.
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# dpkg-deb
|
||||
|
||||
> Pack, unpack and provide information about Debian archives.
|
||||
> Pack, unpack, and provide information about Debian archives.
|
||||
> More information: <https://manned.org/dpkg-deb>.
|
||||
|
||||
- Display information about a package:
|
||||
|
||||
@@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Note: dstat is deprecated and no longer maintained.
|
||||
> More information: <https://github.com/dstat-real/dstat>.
|
||||
|
||||
- Display CPU, disk, net, paging and system statistics:
|
||||
- Display CPU, disk, net, paging, and system statistics:
|
||||
|
||||
`dstat`
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Unmount the partition before running this command using `umount device`.
|
||||
> More information: <https://manned.org/dumpe2fs>.
|
||||
|
||||
- Display ext2, ext3 and ext4 filesystem information:
|
||||
- Display ext2, ext3, and ext4 filesystem information:
|
||||
|
||||
`dumpe2fs {{/dev/sdXN}}`
|
||||
|
||||
|
||||
@@ -36,6 +36,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`ebuild {{path/to/file.ebuild}} qmerge`
|
||||
|
||||
- Fetch, unpack, compile, install and qmerge the specified ebuild file:
|
||||
- Fetch, unpack, compile, install, and qmerge the specified ebuild file:
|
||||
|
||||
`ebuild {{path/to/file.ebuild}} merge`
|
||||
|
||||
@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`eject`
|
||||
|
||||
- Eject a specific device (the default order is cd-rom, scsi, floppy and tape):
|
||||
- Eject a specific device (the default order is cd-rom, scsi, floppy, and tape):
|
||||
|
||||
`eject {{/dev/cdrom}}`
|
||||
|
||||
|
||||
@@ -8,11 +8,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> ZIP archive password cracking utility.
|
||||
> More information: <https://manned.org/fcrackzip>.
|
||||
|
||||
- Brute-force a password with a length of 4 to 8 characters, and contains only alphanumeric characters (order matters):
|
||||
- Brute-force a password with a length of 4 to 8 characters and contains only alphanumeric characters (order matters):
|
||||
|
||||
`fcrackzip {{[-b|--brute-force]}} {{[-l|--length]}} 4-8 {{[-c|--charset]}} aA1 {{archive}}`
|
||||
|
||||
- Brute-force a password in verbose mode with a length of 3 characters that only contains lowercase characters, `$` and `%`:
|
||||
- Brute-force a password in verbose mode with a length of 3 characters that only contains lowercase characters, `$`, and `%`:
|
||||
|
||||
`fcrackzip {{[-v|--verbose]}} {{[-b|--brute-force]}} {{[-l|--length]}} 3 {{[-c|--charset]}} a:$% {{archive}}`
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# flashrom
|
||||
|
||||
> Read, write, verify and erase flash chips.
|
||||
> Read, write, verify, and erase flash chips.
|
||||
> More information: <https://manned.org/flashrom>.
|
||||
|
||||
- Probe the chip, ensuring the wiring is correct:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# flatpak
|
||||
|
||||
> Build, install and run flatpak applications and runtimes.
|
||||
> Build, install, and run flatpak applications and runtimes.
|
||||
> More information: <https://docs.flatpak.org/en/latest/flatpak-command-reference.html#flatpak>.
|
||||
|
||||
- Run an installed application:
|
||||
|
||||
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`fuser {{path/to/file_or_directory}}`
|
||||
|
||||
- Show more fields (`USER`, `PID`, `ACCESS` and `COMMAND`):
|
||||
- Show more fields (`USER`, `PID`, `ACCESS`, and `COMMAND`):
|
||||
|
||||
`fuser {{[-v|--verbose]}} {{path/to/file_or_directory}}`
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sudo genkernel all`
|
||||
|
||||
- Build and install the bzImage|initramfs|kernel|ramdisk only:
|
||||
- Build and install the bzImage, initramfs, kernel, or ramdisk only:
|
||||
|
||||
`sudo genkernel {{bzImage|initramfs|kernel|ramdisk}}`
|
||||
|
||||
|
||||
@@ -8,10 +8,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Set the default boot entry for GRUB, for the next boot only.
|
||||
> More information: <https://manned.org/grub-reboot>.
|
||||
|
||||
- Set the default boot entry to an entry number, name or identifier for the next boot:
|
||||
- Set the default boot entry to an entry number, name, or identifier for the next boot:
|
||||
|
||||
`sudo grub-reboot {{entry_number}}`
|
||||
|
||||
- Set the default boot entry to an entry number, name or identifier for an alternative boot directory for the next boot:
|
||||
- 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}}`
|
||||
|
||||
@@ -8,10 +8,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Set the default boot entry for GRUB.
|
||||
> More information: <https://manned.org/grub-set-default>.
|
||||
|
||||
- Set the default boot entry to an entry number, name or identifier:
|
||||
- Set the default boot entry to an entry number, name, or identifier:
|
||||
|
||||
`sudo grub-set-default {{entry_number}}`
|
||||
|
||||
- Set the default boot entry to an entry number, name or identifier for an alternative boot directory:
|
||||
- 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}}`
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# guix package
|
||||
|
||||
> Install, upgrade and remove Guix packages, or rollback to previous configurations.
|
||||
> Install, upgrade, and remove Guix packages or rollback to previous configurations.
|
||||
> More information: <https://guix.gnu.org/manual/en/guix.html#Invoking-guix-package>.
|
||||
|
||||
- Install a new package:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# homectl
|
||||
|
||||
> Create, remove, change or inspect home directories using the systemd-homed service.
|
||||
> Create, remove, change, or inspect home directories using the systemd-homed service.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/latest/homectl.html>.
|
||||
|
||||
- List user accounts and their associated home directories:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# i7z
|
||||
|
||||
> An Intel CPU (only i3, i5 and i7) realtime reporting tool.
|
||||
> An Intel CPU (only i3, i5, and i7) realtime reporting tool.
|
||||
> More information: <https://manned.org/i7z>.
|
||||
|
||||
- Start i7z (needs to be run in superuser mode):
|
||||
|
||||
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sudo importctl pull-tar {{URL}} {{path/to/directory}}`
|
||||
|
||||
- Pull or download from a remote source that is either raw or qcow2 file, and stores it as a raw file:
|
||||
- Pull or download from a remote source that is either raw or `.qcow2` file, and stores it as a raw file:
|
||||
|
||||
`sudo importctl pull-raw {{https://example.com/source.ext}} {{name}} --class={{machine|portable|sysext|confext}}`
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`ionice {{[-c|--class]}} {{scheduling_class}} {{[-n|--classdata]}} {{priority}} {{command}}`
|
||||
|
||||
- Set I/O scheduling class of a running process with a specific [p]id, [P]gid or [u]id:
|
||||
- Set I/O scheduling class of a running process with a specific [p]id, [P]gid, or [u]id:
|
||||
|
||||
`ionice {{[-c|--class]}} {{scheduling_class}} -{{p|P|u}} {{id}}`
|
||||
|
||||
|
||||
@@ -5,12 +5,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# iptables
|
||||
|
||||
> Configure tables, chains and rules of the Linux kernel IPv4 firewall.
|
||||
> Configure tables, chains, and rules of the Linux kernel IPv4 firewall.
|
||||
> Use `ip6tables` to set rules for IPv6 traffic.
|
||||
> See also: `iptables-save`, `iptables-restore`.
|
||||
> More information: <https://manned.org/iptables>.
|
||||
|
||||
- View chains, rules, packet/byte counters and line numbers for the filter table:
|
||||
- View chains, rules, packet/byte counters, and line numbers for the filter table:
|
||||
|
||||
`sudo iptables {{[-vnL --line-numbers|--verbose --numeric --list --line-numbers]}}`
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# iw dev
|
||||
|
||||
> Show and manipulate wireless devices.
|
||||
> For a list of channels, frequencies and reg information: <https://wireless.docs.kernel.org/en/latest/en/developers/documentation/channellist.html>.
|
||||
> For a list of channels, frequencies, and reg information: <https://wireless.docs.kernel.org/en/latest/en/developers/documentation/channellist.html>.
|
||||
> More information: <https://wireless.docs.kernel.org/en/latest/en/users/documentation/iw.html>.
|
||||
|
||||
- Set device to monitor mode (interface must be down first. See also: `ip link`):
|
||||
|
||||
@@ -24,7 +24,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`jhead -n%Y_%m_%d-%H_%M_%S *.jpg`
|
||||
|
||||
- Rotate losslessly all JPEG images by 90, 180 or 270 based on the EXIF orientation tag:
|
||||
- Rotate losslessly all JPEG images by 90, 180, or 270 degrees based on the EXIF orientation tag:
|
||||
|
||||
`jhead -autorot *.jpg`
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`jpegtran {{[-f|-flip]}} {{horizontal|vertical}} {{path/to/image.jpg}} > {{path/to/output.jpg}}`
|
||||
|
||||
- Rotate an image 90, 180 or 270 degrees clockwise:
|
||||
- Rotate an image 90, 180, or 270 degrees clockwise:
|
||||
|
||||
`jpegtran {{[-ro|-rotate]}} {{90|180|270}} {{path/to/image.jpg}} > {{path/to/output.jpg}}`
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ldapdomaindump
|
||||
|
||||
> Dump users, computers, groups, OS and membership information via LDAP to HTML, JSON and greppable output.
|
||||
> Dump users, computers, groups, OS, and membership information via LDAP to HTML, JSON, and greppable output.
|
||||
> See also: `ldapsearch`.
|
||||
> More information: <https://github.com/dirkjanm/ldapdomaindump#usage>.
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Advanced log file viewer to analyze logs with little to no setup.
|
||||
> More information: <https://docs.lnav.org/en/latest/cli.html>.
|
||||
|
||||
- View logs of a program, specifying log files, directories or URLs:
|
||||
- View logs of a program, specifying log files, directories, or URLs:
|
||||
|
||||
`lnav {{path/to/log_or_directory|url}}`
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`lsipc`
|
||||
|
||||
- Show information about active shared [m]emory segments, message [q]ueues or [s]empahore sets:
|
||||
- Show information about active shared [m]emory segments, message [q]ueues, or [s]empahore sets:
|
||||
|
||||
`lsipc {{--shmems|--queues|--semaphores}}`
|
||||
|
||||
@@ -25,7 +25,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`lsipc {{[-o|--output]}} {{KEY,ID,PERMS,SEND,STATUS,NSEMS,RESOURCE,...}}`
|
||||
|
||||
- Use [r]aw, [J]SON, [l]ist or [e]xport (key="value") format:
|
||||
- Use [r]aw, [J]SON, [l]ist, or [e]xport (key="value") format:
|
||||
|
||||
`lsipc {{--raw|--json|--list|--export}}`
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# lvmdump
|
||||
|
||||
> Collect diagnostic information about LVM2 (Logical Volume Manager).
|
||||
> By default, outputs a compressed tar archive with system and configuration data in the home directory.
|
||||
> By default, outputs a compressed `.tar` archive with system and configuration data in the home directory.
|
||||
> More information: <https://manned.org/lvmdump>.
|
||||
|
||||
- Generate a basic dump:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# machinectl
|
||||
|
||||
> Control the systemd machine manager.
|
||||
> Execute operations on virtual machines, containers and images.
|
||||
> Execute operations on virtual machines, containers, and images.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/latest/machinectl.html>.
|
||||
|
||||
- Start a machine as a service using `systemd-nspawn`:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# microcom
|
||||
|
||||
> A minimalistic terminal program, used to access remote devices via a serial, CAN or telnet connection from the console.
|
||||
> A minimalistic terminal program, used to access remote devices via a serial, CAN, or telnet connection from the console.
|
||||
> More information: <https://manned.org/microcom>.
|
||||
|
||||
- Open a serial port using the specified baud rate:
|
||||
|
||||
@@ -29,7 +29,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`networkctl renew {{interface1 interface2 ...}}`
|
||||
|
||||
- Reload configuration files (.netdev and .network):
|
||||
- Reload configuration files (`.netdev` and `.network`):
|
||||
|
||||
`networkctl reload`
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# nft
|
||||
|
||||
> Allows configuration of tables, chains and rules provided by the Linux kernel firewall.
|
||||
> Allows configuration of tables, chains, and rules provided by the Linux kernel firewall.
|
||||
> Nftables replaces iptables.
|
||||
> More information: <https://wiki.nftables.org/wiki-nftables/index.php/Main_Page>.
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Manage connections with NetworkManager.
|
||||
> More information: <https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nmcli.html#connection>.
|
||||
|
||||
- List all NetworkManager connections (shows name, UUID, type and device):
|
||||
- List all NetworkManager connections (shows name, UUID, type, and device):
|
||||
|
||||
`nmcli {{[c|connection]}}`
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Translate chemistry-related data.
|
||||
> More information: <https://open-babel.readthedocs.io/en/latest/Command-line_tools/babel.html>.
|
||||
|
||||
- Convert a .mol file to XYZ coordinates:
|
||||
- Convert a `.mol` file to XYZ coordinates:
|
||||
|
||||
`obabel {{path/to/file.mol}} -O {{path/to/output_file.xyz}}`
|
||||
|
||||
@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`obabel -:"{{SMILES}}" -O {{path/to/output_file.png}} -xp 500`
|
||||
|
||||
- Convert a file of SMILES string to separate 3D .mol files:
|
||||
- Convert a file of SMILES string to separate 3D `.mol` files:
|
||||
|
||||
`obabel {{path/to/file.smi}} -O {{path/to/output_file.mol}} --gen3D -m`
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`pdfcrop {{path/to/input_file.pdf}} --margins '{{left}} {{top}} {{right}} {{bottom}}' {{path/to/output_file.pdf}}`
|
||||
|
||||
- Set the margins of each page to a specific value, using the same value for left, top, right and bottom:
|
||||
- Set the margins of each page to a specific value, using the same value for left, top, right, and bottom:
|
||||
|
||||
`pdfcrop {{path/to/input_file.pdf}} --margins {{300}} {{path/to/output_file.pdf}}`
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pdftohtml
|
||||
|
||||
> Convert PDF files into HTML, XML and PNG images.
|
||||
> Convert PDF files into HTML, XML, and PNG images.
|
||||
> More information: <https://manned.org/pdftohtml>.
|
||||
|
||||
- Convert a PDF file to an HTML file:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# phar
|
||||
|
||||
> Create, update or extract PHP archives (PHAR).
|
||||
> Create, update, or extract PHP archives (PHAR).
|
||||
> More information: <https://manned.org/phar>.
|
||||
|
||||
- Add one or more files or directories to a Phar file:
|
||||
|
||||
@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`pipewire --config {{path/to/file.conf}}`
|
||||
|
||||
- Set the verbosity level (error, warn, info, debug or trace):
|
||||
- Set the verbosity level (error, warn, info, debug, or trace):
|
||||
|
||||
`pipewire -{{v|vv|...|vvvvv}}`
|
||||
|
||||
|
||||
@@ -21,9 +21,9 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`postconf -d`
|
||||
|
||||
- Display parameters only from the specified class. The class can be one of builtin, service, user or all:
|
||||
- Display parameters only from the specified class:
|
||||
|
||||
`postconf -C {{class}}`
|
||||
`postconf -C {{builtin|service|user|all}}`
|
||||
|
||||
- List available SASL plug-in types for the Postfix SMTP server. The plug-in type is selected with the `smtpd_sasl_type` configuration parameter by specifying `cyrus` or `dovecot` as the name:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pw-cli
|
||||
|
||||
> Manage a PipeWire instance's modules, objects, nodes, devices, links and much more.
|
||||
> Manage a PipeWire instance's modules, objects, nodes, devices, links, and much more.
|
||||
> See also: `wpctl`.
|
||||
> More information: <https://docs.pipewire.org/page_man_pw-cli_1.html>.
|
||||
|
||||
|
||||
@@ -20,6 +20,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`qm {{[di|disk]}} {{[m|move]}} --delete {{vm_id}} {{destination}} {{index}}`
|
||||
|
||||
- Import a VMDK/qcow2/raw disk image using a specific storage name:
|
||||
- Import a VMDK/`.qcow2`/raw disk image using a specific storage name:
|
||||
|
||||
`qm {{[di|disk]}} {{[i|import]}} {{vm_id}} {{path/to/disk}} {{storage_name}} --format {{qcow2|raw|vmdk}}`
|
||||
|
||||
@@ -9,6 +9,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> The supported image formats for `qemu-img`, such as raw, qcow2, qed, vdi, vmdk, and vhd must be used.
|
||||
> More information: <https://pve.proxmox.com/pve-docs/qm.1.html#cli_qm_disk_import>.
|
||||
|
||||
- Import a VMDK/qcow2/raw disk image using a specific storage name:
|
||||
- Import a VMDK/`.qcow2`/raw disk image using a specific storage name:
|
||||
|
||||
`qm {{[di|disk]}} {{[i|import]}} {{vm_id}} {{path/to/disk}} {{storage_name}} --format {{qcow2|raw|vmdk}}`
|
||||
|
||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> See also: `quickemu`.
|
||||
> More information: <https://github.com/quickemu-project/quickemu>.
|
||||
|
||||
- Display the list of all supported guest operating systems, versions and variants:
|
||||
- Display the list of all supported guest operating systems, versions, and variants:
|
||||
|
||||
`quickget list`
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# quotacheck
|
||||
|
||||
> Scan a filesystem for disk usage; create, check and repair quota files.
|
||||
> Scan a filesystem for disk usage; create, check, and repair quota files.
|
||||
> It is best to run quota check with quotas turned off to prevent damage or loss to quota files.
|
||||
> More information: <https://manned.org/quotacheck>.
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# resize2fs
|
||||
|
||||
> Resize an ext2, ext3 or ext4 filesystem.
|
||||
> Resize an ext2, ext3, or ext4 filesystem.
|
||||
> Does not resize the underlying partition. The filesystem may have to be unmounted first, read the man page for more details.
|
||||
> More information: <https://manned.org/resize2fs>.
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sudo restorecond -d`
|
||||
|
||||
- Use alternative restorecond.conf file:
|
||||
- Use alternative `restorecond.conf` file:
|
||||
|
||||
`sudo restorecond -f restorecond_file`
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# rpmconf
|
||||
|
||||
> Handle RPMNEW, RPMSAVE and RPMORIG files left over by package upgrades.
|
||||
> Handle `.rpmnew`, `.rpmsave`, and `.rpmorig` files left over by package upgrades.
|
||||
> See also: `rpm`.
|
||||
> More information: <https://manned.org/rpmconf.8>.
|
||||
|
||||
@@ -13,6 +13,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sudo rpmconf {{[-a|--all]}}`
|
||||
|
||||
- Delete orphaned RPMNEW and RPMSAVE files:
|
||||
- Delete orphaned `.rpmnew` and `.rpmsave` files:
|
||||
|
||||
`sudo rpmconf {{[-a|--all]}} {{[-c|--clean]}}`
|
||||
|
||||
@@ -17,7 +17,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`slapt-src {{[-l|--list]}}`
|
||||
|
||||
- Fetch, build and install the specified slackbuild(s):
|
||||
- Fetch, build, and install the specified slackbuild(s):
|
||||
|
||||
`slapt-src {{[-i|--install]}} {{slackbuild_name}}`
|
||||
|
||||
|
||||
@@ -5,25 +5,25 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sqfstar
|
||||
|
||||
> Create a squashfs filesystem from a tar archive.
|
||||
> Create a squashfs filesystem from a `.tar` archive.
|
||||
> More information: <https://manned.org/sqfstar>.
|
||||
|
||||
- Create a squashfs filesystem (compressed using `gzip` by default) from an uncompressed tar archive:
|
||||
- Create a squashfs filesystem (compressed using `gzip` by default) from an uncompressed `.tar` archive:
|
||||
|
||||
`sqfstar < {{archive.tar}} {{filesystem.squashfs}}`
|
||||
|
||||
- Create a squashfs filesystem from a tar archive compressed with `gzip`, and [comp]ress the filesystem using a specific algorithm:
|
||||
- Create a squashfs filesystem from a `.tar` archive compressed with `gzip`, and [comp]ress the filesystem using a specific algorithm:
|
||||
|
||||
`zcat {{archive.tar.gz}} | sqfstar -comp {{gzip|lzo|lz4|xz|zstd|lzma}} {{filesystem.squashfs}}`
|
||||
|
||||
- Create a squashfs filesystem from a tar archive compressed with `xz`, excluding some of the files:
|
||||
- Create a squashfs filesystem from a `.tar` archive compressed with `xz`, excluding some of the files:
|
||||
|
||||
`xzcat {{archive.tar.xz}} | sqfstar {{filesystem.squashfs}} {{file1 file2 ...}}`
|
||||
|
||||
- Create a squashfs filesystem from a tar archive compressed with `zstd`, excluding files ending with `.gz`:
|
||||
- Create a squashfs filesystem from a `.tar` archive compressed with `zstd`, excluding files ending with `.gz`:
|
||||
|
||||
`zstdcat {{archive.tar.zst}} | sqfstar {{filesystem.squashfs}} "{{*.gz}}"`
|
||||
|
||||
- Create a squashfs filesystem from a tar archive compressed with `lz4`, excluding files matching a `regex`:
|
||||
- Create a squashfs filesystem from a `.tar` archive compressed with `lz4`, excluding files matching a `regex`:
|
||||
|
||||
`lz4cat {{archive.tar.lz4}} | sqfstar {{filesystem.squashfs}} -regex "{{regex}}"`
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# steghide
|
||||
|
||||
> Steganography tool for JPEG, BMP, WAV and AU file formats.
|
||||
> Steganography tool for JPEG, BMP, WAV, and AU file formats.
|
||||
> More information: <https://manned.org/steghide>.
|
||||
|
||||
- Embed data in a PNG, prompting for a passphrase:
|
||||
|
||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> See also: `chroot`, `mount`.
|
||||
> More information: <https://manned.org/switch_root>.
|
||||
|
||||
- Move `/proc`, `/dev`, `/sys` and `/run` to the specified filesystem, use this filesystem as the new root and start the specified init process:
|
||||
- Move `/proc`, `/dev`, `/sys`, and `/run` to the specified filesystem, use this filesystem as the new root and start the specified init process:
|
||||
|
||||
`switch_root {{new_root}} {{/sbin/init}}`
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sysdig
|
||||
|
||||
> System troubleshooting, analysis and exploration.
|
||||
> Capture, filter and store systemcalls.
|
||||
> System troubleshooting, analysis, and exploration.
|
||||
> Capture, filter, and store systemcalls.
|
||||
> More information: <https://github.com/draios/sysdig/wiki>.
|
||||
|
||||
- Capture all the events from the live system and print them to screen:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# systemd-creds
|
||||
|
||||
> List, show, encrypt and decrypt service credentials.
|
||||
> List, show, encrypt, and decrypt service credentials.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemd-creds.html>.
|
||||
|
||||
- Encrypt a file and set a specific name:
|
||||
@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`echo -n {{text}} | systemd-creds encrypt --name {{name}} - {{path/to/output}}`
|
||||
|
||||
- Encrypt the text and append it to the service file (the credentials will be available in `$CREDENTIALS_DIRECTORY`):
|
||||
- Encrypt the text and append it to the `.service` file (the credentials will be available in `$CREDENTIALS_DIRECTORY`):
|
||||
|
||||
`echo -n {{text}} | systemd-creds encrypt --name {{name}} --pretty - - >> {{service}}`
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# systemd-tmpfiles
|
||||
|
||||
> Create, delete and clean up volatile and temporary files and directories.
|
||||
> This command is automatically invoked on boot by systemd services, and running it manually is usually not needed.
|
||||
> Create, delete, and clean up volatile and temporary files and directories.
|
||||
> This command is automatically invoked on boot by systemd services and running it manually is usually not needed.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemd-tmpfiles.html>.
|
||||
|
||||
- Create files and directories as specified in the configuration:
|
||||
|
||||
@@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> It can capture and display TCP connections and data. It can also monitor network traffic on a interface, host, or port.
|
||||
> More information: <https://manned.org/tcpick>.
|
||||
|
||||
- Capture traffic on a specific interface, port and host::
|
||||
- Capture traffic on a specific interface, port, and host:
|
||||
|
||||
`sudo tcpick {{[-i|--interface]}} {{interface}} {{[-C|--colors]}} -h {{host}} -p {{port}}`
|
||||
|
||||
|
||||
@@ -8,6 +8,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Kill specified in-progress TCP connections.
|
||||
> More information: <https://manned.org/tcpkill>.
|
||||
|
||||
- Kill in-progress connections at a specified interface, host and port:
|
||||
- Kill in-progress connections at a specified interface, host, and port:
|
||||
|
||||
`tcpkill -i {{eth1}} host {{192.95.4.27}} and port {{2266}}`
|
||||
|
||||
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> A realtime plotting utility for the command-line with data input from `stdin`.
|
||||
> More information: <https://github.com/tenox7/ttyplot>.
|
||||
|
||||
- Plot the values `1`, `2` and `3` (Note: `cat` prevents `ttyplot` from exiting):
|
||||
- Plot the values `1`, `2`, and `3` (Note: `cat` prevents `ttyplot` from exiting):
|
||||
|
||||
`{ echo {{1 2 3}}; cat; } | ttyplot`
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# tune2fs
|
||||
|
||||
> Adjust parameters of an ext2, ext3 or ext4 filesystem.
|
||||
> Adjust parameters of an ext2, ext3, or ext4 filesystem.
|
||||
> May be used on mounted filesystems.
|
||||
> More information: <https://manned.org/tune2fs>.
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`tuxi -r {{search_terms}}`
|
||||
|
||||
- Display only search results (silences "Did you mean?", greetings and usage):
|
||||
- Display only search results (silences "Did you mean?", greetings, and usage):
|
||||
|
||||
`tuxi -q {{search_terms}}`
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# unsquashfs
|
||||
|
||||
> Uncompress, extract and list files in squashfs filesystems.
|
||||
> Uncompress, extract, and list files in squashfs filesystems.
|
||||
> More information: <https://manned.org/unsquashfs>.
|
||||
|
||||
- Extract a squashfs filesystem to `squashfs-root` in the current working directory:
|
||||
|
||||
@@ -29,7 +29,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`urpmq --list-media --list-url`
|
||||
|
||||
- Search for a package printing [g]roup, version and [r]elease:
|
||||
- Search for a package printing [g]roup, version, and [r]elease:
|
||||
|
||||
`urpmq -g -r {{[-y|--fuzzy]}} {{keyword}}`
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# userdbctl
|
||||
|
||||
> Inspect users, groups and group memberships on the system.
|
||||
> Inspect users, groups, and group memberships on the system.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/latest/userdbctl.html>.
|
||||
|
||||
- List all known user records:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# utmpdump
|
||||
|
||||
> Dump and load btmp, utmp and wtmp accounting files.
|
||||
> Dump and load btmp, utmp, and wtmp accounting files.
|
||||
> More information: <https://manned.org/utmpdump>.
|
||||
|
||||
- Dump the `/var/log/wtmp` file to `stdout` as plain text:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# virt-viewer
|
||||
|
||||
> Minimal graphical interface for a virtual machine (VM).
|
||||
> Note: `domain` refers to the name, UUID or ID for the existing VMs.
|
||||
> Note: `domain` refers to the name, UUID, or ID for the existing VMs.
|
||||
> See also: `virsh`.
|
||||
> More information: <https://manned.org/virt-viewer>.
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`virt-viewer`
|
||||
|
||||
- Launch `virt-viewer` for a specific virtual machine by ID, UUID or name:
|
||||
- Launch `virt-viewer` for a specific virtual machine by ID, UUID, or name:
|
||||
|
||||
`virt-viewer "{{domain}}"`
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# virt-xml
|
||||
|
||||
> Edit libvirt Domain XML files with explicit command-line options.
|
||||
> Note: `domain` refers to the name, UUID or ID for the existing VMs.
|
||||
> Note: `domain` refers to the name, UUID, or ID for the existing VMs.
|
||||
> See also: `virsh`.
|
||||
> More information: <https://github.com/virt-manager/virt-manager/blob/main/man/virt-xml.rst>.
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# vmstat
|
||||
|
||||
> Report information about processes, memory, paging, block IO, traps, disks and CPU activity.
|
||||
> Report information about processes, memory, paging, block IO, traps, disks, and CPU activity.
|
||||
> More information: <https://manned.org/vmstat>.
|
||||
|
||||
- Display virtual memory statistics:
|
||||
|
||||
@@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> See also: `which`, `whatis`, `type`.
|
||||
> More information: <https://manned.org/whereis>.
|
||||
|
||||
- Locate binary, source and man pages for SSH:
|
||||
- Locate binary, source, and man pages for SSH:
|
||||
|
||||
`whereis {{ssh}}`
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`xclock -digital -strftime {{format}}`
|
||||
|
||||
- Display a 24-hour digital clock with the hour, minute and second fields that updates every second:
|
||||
- Display a 24-hour digital clock with the hour, minute, and second fields that updates every second:
|
||||
|
||||
`xclock -digital -strftime '%H:%M:%S' -update 1`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user