*: fix errors reported by languagetool (#6069)
This commit is contained in:
@@ -7,10 +7,10 @@
|
||||
|
||||
`aplay {{path/to/file}}`
|
||||
|
||||
- Play the first 10 seconds of a specific file at 2500Hz:
|
||||
- Play the first 10 seconds of a specific file at 2500 Hz:
|
||||
|
||||
`aplay --duration={{10}} --rate={{2500}} {{path/to/file}}`
|
||||
|
||||
- Play the raw file as a 22050Hz, mono, 8-bit, Mu-Law `.au` file:
|
||||
- Play the raw file as a 22050 Hz, mono, 8-bit, Mu-Law `.au` file:
|
||||
|
||||
`aplay --channels={{1}} --file-type {{raw}} --rate={{22050}} --format={{mu_law}} {{path/to/file}}`
|
||||
|
@@ -23,7 +23,7 @@
|
||||
|
||||
`aptitude remove {{package}}`
|
||||
|
||||
- Upgrade installed packages to newest available versions:
|
||||
- Upgrade installed packages to the newest available versions:
|
||||
|
||||
`aptitude upgrade`
|
||||
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
`arecord -vv --format=cd --duration={{10}} {{path/to/file.wav}}`
|
||||
|
||||
- Record a snippet and save it as mp3 (finish with Ctrl-C when done):
|
||||
- Record a snippet and save it as an MP3 (finish with Ctrl-C when done):
|
||||
|
||||
`arecord -vv --format=cd --file-type raw | lame -r - {{path/to/file.mp3}}`
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
`aspell dicts`
|
||||
|
||||
- Run aspell with different language (takes two letter ISO 639 language code):
|
||||
- Run aspell with a different language (takes two-letter ISO 639 language code):
|
||||
|
||||
`aspell --lang={{cs}}`
|
||||
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
`at {{hh:mm}}`
|
||||
|
||||
- Execute the commands and email the result using a local mailing program such as sendmail:
|
||||
- Execute the commands and email the result using a local mailing program such as Sendmail:
|
||||
|
||||
`at {{hh:mm}} -m`
|
||||
|
||||
|
@@ -11,6 +11,6 @@
|
||||
|
||||
`blkdiscard --secure /dev/{{device}}`
|
||||
|
||||
- Discard the first 100MB of a device:
|
||||
- Discard the first 100 MB of a device:
|
||||
|
||||
`blkdiscard --length {{100MB}} /dev/{{device}}`
|
||||
|
@@ -1,6 +1,6 @@
|
||||
# bluetoothctl
|
||||
|
||||
> Handling bluetooth devices from the shell.
|
||||
> Manage Bluetooth devices from the command-line.
|
||||
> More information: <https://www.npmjs.com/package/bluetoothctl>.
|
||||
|
||||
- Enter the bluetoothctl shell:
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
`sudo bpftrace -l`
|
||||
|
||||
- Run a one-liner program (e.g syscall count by program):
|
||||
- Run a one-liner program (e.g. syscall count by program):
|
||||
|
||||
`sudo bpftrace -e '{{tracepoint:raw_syscalls:sys_enter { @[comm] = count(); }}}'`
|
||||
|
||||
|
@@ -3,15 +3,15 @@
|
||||
> Ethernet bridge administration.
|
||||
> More information: <https://manned.org/brctl>.
|
||||
|
||||
- Show a list with information about currently existing ethernet bridges:
|
||||
- Show a list with information about currently existing Ethernet bridges:
|
||||
|
||||
`sudo brctl show`
|
||||
|
||||
- Create a new ethernet bridge interface:
|
||||
- Create a new Ethernet bridge interface:
|
||||
|
||||
`sudo brctl add {{bridge_name}}`
|
||||
|
||||
- Delete an existing ethernet bridge interface:
|
||||
- Delete an existing Ethernet bridge interface:
|
||||
|
||||
`sudo brctl del {{bridge_name}}`
|
||||
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
`cal -3`
|
||||
|
||||
- Use monday as the first day of the week:
|
||||
- Use Monday as the first day of the week:
|
||||
|
||||
`cal --monday`
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
# compgen
|
||||
|
||||
> A built-in command for auto-completion in bash, which is called on pressing TAB key twice.
|
||||
> A built-in command for auto-completion in Bash, which is called on pressing TAB key twice.
|
||||
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-compgen>.
|
||||
|
||||
- List all commands that you could run:
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
`compgen -A function`
|
||||
|
||||
- Show shell reserved key words:
|
||||
- Show shell reserved keywords:
|
||||
|
||||
`compgen -k`
|
||||
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
`conky -C > ~/.conkyrc`
|
||||
|
||||
- Launch conky with a given config file:
|
||||
- Launch Conky with a given config file:
|
||||
|
||||
`conky -c {{path/to/config}}`
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
`conky -d`
|
||||
|
||||
- Align conky on the desktop:
|
||||
- Align Conky on the desktop:
|
||||
|
||||
`conky -a {{{top,bottom,middle}_{left,right,middle}}}`
|
||||
|
||||
|
@@ -12,7 +12,7 @@
|
||||
|
||||
`sudo cpufreq-aperf -c {{1}}`
|
||||
|
||||
- Start calculating with a 3 seconds refresh interval for all CPU cores:
|
||||
- Start calculating with a 3 second refresh interval for all CPU cores:
|
||||
|
||||
`sudo cpufreq-aperf -i {{3}}`
|
||||
|
||||
|
@@ -23,10 +23,10 @@
|
||||
|
||||
`create_ap -m bridge {{wlan0}} {{br0}} {{access_point_ssid}} {{passphrase}}`
|
||||
|
||||
- Create an access port for Internet sharing from the same WiFi interface:
|
||||
- Create an access port for Internet sharing from the same Wi-Fi interface:
|
||||
|
||||
`create_ap {{wlan0}} {{wlan0}} {{access_point_ssid}} {{passphrase}}`
|
||||
|
||||
- Choose a different WiFi adapter driver:
|
||||
- Choose a different Wi-Fi adapter driver:
|
||||
|
||||
`create_ap --driver {{wifi_adapter}} {{wlan0}} {{eth0}} {{access_point_ssid}} {{passphrase}}`
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
`daemonize {{command}} {{command_arguments}}`
|
||||
|
||||
- Write the pid to the specified file:
|
||||
- Write the PID to the specified file:
|
||||
|
||||
`daemonize -p {{path/to/pidfile}} {{command}} {{command_arguments}}`
|
||||
|
||||
|
@@ -19,7 +19,7 @@
|
||||
|
||||
`dbus-daemon --address {{address}}`
|
||||
|
||||
- Output the process id to stdout:
|
||||
- Output the process ID to stdout:
|
||||
|
||||
`dbus-daemon --print-pid`
|
||||
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
`dockerd`
|
||||
|
||||
- Run docker daemon and config it to listen to specific sockets(unix,tcp):
|
||||
- Run docker daemon and config it to listen to specific sockets (UNIX and TCP):
|
||||
|
||||
`dockerd --host unix://{{path/to/tmp.sock}} --host tcp://{{ip}}`
|
||||
|
||||
|
@@ -11,6 +11,6 @@
|
||||
|
||||
`faketime '{{yesterday}}' {{bash}}`
|
||||
|
||||
- Simulate how any program would act next friday night:
|
||||
- Simulate how a program would act next Friday night:
|
||||
|
||||
`faketime '{{next Friday 1 am}}' {{path/to/any/program}}`
|
||||
`faketime '{{next Friday 1 am}}' {{path/to/program}}`
|
||||
|
@@ -4,14 +4,14 @@
|
||||
> The utility allocates space without zeroing.
|
||||
> More information: <https://manned.org/fallocate>.
|
||||
|
||||
- Reserve a file taking up 700MB of disk space:
|
||||
- Reserve a file taking up 700 MiB of disk space:
|
||||
|
||||
`fallocate --length {{700M}} {{path/to/file}}`
|
||||
|
||||
- Shrink an already allocated file by 200MB:
|
||||
- Shrink an already allocated file by 200 MiB:
|
||||
|
||||
`fallocate --collapse-range --length {{200M}} {{path/to/file}}`
|
||||
|
||||
- Shrink 20MB of space after 100MB in a file:
|
||||
- Shrink 20 MB of space after 100 MiB in a file:
|
||||
|
||||
`fallocate --collapse-range --offset {{100M}} --length {{20M}} {{path/to/file}}`
|
||||
|
@@ -1,6 +1,6 @@
|
||||
# fc-cache
|
||||
|
||||
> Scan font directories in order to build font cache files.
|
||||
> Scan font directories to build font cache files.
|
||||
> More information: <https://manned.org/fc-cache>.
|
||||
|
||||
- Generate font cache files:
|
||||
|
@@ -1,10 +1,10 @@
|
||||
# flameshot
|
||||
|
||||
> Screenshot utility with a gui interface.
|
||||
> Screenshot utility with a GUI.
|
||||
> Supports basic image editing, such as text, shapes, colors, and imgur.
|
||||
> More information: <https://flameshot.js.org>.
|
||||
|
||||
- Launch flameshot in gui mode:
|
||||
- Launch flameshot in GUI mode:
|
||||
|
||||
`flameshot launcher`
|
||||
|
||||
|
@@ -19,6 +19,6 @@
|
||||
|
||||
`flashrom -p {{programmer}} --verify {{path/to/file}}`
|
||||
|
||||
- Probe the chip using RaspberryPi:
|
||||
- Probe the chip using Raspberry Pi:
|
||||
|
||||
`flashrom -p {{linux_spi:dev=/dev/spidev0.0}}`
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
`free -{{b|k|m|g}}`
|
||||
|
||||
- Display memory in human readable units:
|
||||
- Display memory in human-readable units:
|
||||
|
||||
`free -h`
|
||||
|
||||
|
@@ -19,6 +19,6 @@
|
||||
|
||||
`sudo genkernel --kernname={{custom_name}} all`
|
||||
|
||||
- Use a kernel source outside of the default directory `/usr/src/linux`:
|
||||
- Use a kernel source outside the default directory `/usr/src/linux`:
|
||||
|
||||
`sudo genkernel --kerneldir={{path/to/directory}} all`
|
||||
|
@@ -19,7 +19,7 @@
|
||||
|
||||
`hashcat --hash-type {{hash_type_id}} --attack-mode {{0}} {{hash_value}} {{/usr/share/wordlists/rockyou.txt}}`
|
||||
|
||||
- Perform a rule based dictionary attack (mode 0) using the RockYou wordlist mutated with common password variations:
|
||||
- Perform a rule-based dictionary attack (mode 0) using the RockYou wordlist mutated with common password variations:
|
||||
|
||||
`hashcat --hash-type {{hash_type_id}} --attack-mode {{0}} --rules-file {{/usr/share/hashcat/rules/best64.rule}} {{hash_value}} {{/usr/share/wordlists/rockyou.txt}}`
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
# http_load
|
||||
|
||||
> A HTTP benchmarking tool.
|
||||
> An HTTP benchmarking tool.
|
||||
> Runs multiple HTTP fetches in parallel to test the throughput of a web server.
|
||||
> More information: <http://www.acme.com/software/http_load/>.
|
||||
|
||||
|
@@ -14,7 +14,7 @@
|
||||
|
||||
`http {{https://example.com}} < {{file.json}}`
|
||||
|
||||
- Send a PUT request with a given json body:
|
||||
- Send a PUT request with a given JSON body:
|
||||
|
||||
`http PUT {{https://example.com/todos/7}} {{hello=world}}`
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
`i3lock -u`
|
||||
|
||||
- Display mouse pointer instead of hiding it ('default' for default pointer, 'win' for a MS Windows pointer):
|
||||
- Display mouse pointer instead of hiding it ('default' for default pointer, 'win' for an MS Windows pointer):
|
||||
|
||||
`i3lock -p {{default|win}}`
|
||||
|
||||
|
@@ -2,6 +2,6 @@
|
||||
|
||||
> An Intel CPU (only i3, i5 and i7) realtime reporting tool.
|
||||
|
||||
- Start i7z (needs to be run in super user mode):
|
||||
- Start i7z (needs to be run in superuser mode):
|
||||
|
||||
`sudo i7z`
|
||||
|
@@ -1,6 +1,6 @@
|
||||
# imgp
|
||||
|
||||
> Command-line image resizer and rotator for JPEG and PNG images.
|
||||
> Command-line image resizer and rotator for JPEGs and PNGs.
|
||||
|
||||
- Convert single images and/or whole directories containing valid image formats:
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
> Print a summary of system information and resources for debugging purposes.
|
||||
|
||||
- Print a short summary of CPU, memory, hard drive and kernel information:
|
||||
- Print a summary of CPU, memory, hard drive and kernel information:
|
||||
|
||||
`inxi`
|
||||
|
||||
|
@@ -27,7 +27,7 @@
|
||||
|
||||
`ip link set {{interface}} up/down`
|
||||
|
||||
- Add/Delete an ip address to an interface:
|
||||
- Add/Delete an IP address to an interface:
|
||||
|
||||
`ip addr add/del {{ip}}/{{mask}} dev {{interface}}`
|
||||
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
`iwconfig {{interface}}`
|
||||
|
||||
- Set the ESSID (network name) of the specified interface (e.g., eth0 or wlp2s0):
|
||||
- Set the ESSID (network name) of the specified interface (e.g. eth0 or wlp2s0):
|
||||
|
||||
`iwconfig {{interface}} {{new_network_name}}`
|
||||
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
`iwctl --help`
|
||||
|
||||
- Display your wifi stations:
|
||||
- Display your Wi-Fi stations:
|
||||
|
||||
`iwctl station list`
|
||||
|
||||
|
@@ -6,7 +6,7 @@
|
||||
|
||||
`jobs`
|
||||
|
||||
- List jobs and their process ids:
|
||||
- List jobs and their process IDs:
|
||||
|
||||
`jobs -l`
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
`jobs -n`
|
||||
|
||||
- Display process id of process group leader:
|
||||
- Display process ID of process group leader:
|
||||
|
||||
`jobs -p`
|
||||
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
`jpegtran -rotate {{90|180|270}} {{path/to/image.jpg}} > {{path/to/output.jpg}}`
|
||||
|
||||
- Transpose the image across the upper left to lower right axis:
|
||||
- Transpose the image across the upper-left to lower right axis:
|
||||
|
||||
`jpegtran -transpose {{path/to/image.jpg}} > {{path/to/output.jpg}}`
|
||||
|
||||
@@ -23,10 +23,10 @@
|
||||
|
||||
`jpegtran -grayscale {{path/to/image.jpg}} > {{path/to/output.jpg}}`
|
||||
|
||||
- Crop the image to a rectangular region of width `W` and height `H` from the upper left corner, saving the output to a specific file:
|
||||
- Crop the image to a rectangular region of width `W` and height `H` from the upper-left corner, saving the output to a specific file:
|
||||
|
||||
`jpegtran -crop {{W}}x{{H}} -outfile {{path/to/output.jpg}} {{path/to/image.jpg}}`
|
||||
|
||||
- Crop the image to a rectangular region of width `W` and height `H`, starting at point `X` and `Y` from the upper left corner:
|
||||
- Crop the image to a rectangular region of width `W` and height `H`, starting at point `X` and `Y` from the upper-left corner:
|
||||
|
||||
`jpegtran -crop {{W}}x{{H}}+{{X}}+{{Y}} {{path/to/image.jpg}} > {{path/to/output.jpg}}`
|
||||
|
@@ -10,6 +10,6 @@
|
||||
|
||||
`kde-inhibit --screenSaver {{command}} {{command_arguments}}`
|
||||
|
||||
- Launch vlc, and inhibit colour correction (night mode) while it's running:
|
||||
- Launch VLC, and inhibit color correction (night mode) while it's running:
|
||||
|
||||
`kde-inhibit --colorCorrect {{vlc}}`
|
||||
|
@@ -3,7 +3,7 @@
|
||||
> Show last commands executed.
|
||||
> More information: <https://manpages.debian.org/stable/acct/lastcomm.1.en.html>.
|
||||
|
||||
- Print information about all of the commands in the acct (record file):
|
||||
- Print information about all the commands in the acct (record file):
|
||||
|
||||
`lastcomm`
|
||||
|
||||
|
@@ -10,7 +10,7 @@
|
||||
|
||||
`lastlog -u {{username}}`
|
||||
|
||||
- Display records before than 7 days:
|
||||
- Display records before 7 days ago:
|
||||
|
||||
`lastlog -b {{7}}`
|
||||
|
||||
|
@@ -15,6 +15,6 @@
|
||||
|
||||
`libreoffice --pt {{printer_name}} {{path/to/file1}} {{path/to/file2}}`
|
||||
|
||||
- Convert all `.doc` files in current directory to pdf:
|
||||
- Convert all `.doc` files in current directory to PDF:
|
||||
|
||||
`libreoffice --convert-to {{pdf}} {{*.doc}}`
|
||||
|
@@ -1,8 +1,8 @@
|
||||
# logwatch
|
||||
|
||||
> Summarizes many different logs for common services (e.g., apache, pam_unix, sshd, etc.) in a single report.
|
||||
> Summarizes many different logs for common services (e.g. apache, pam_unix, sshd, etc.) in a single report.
|
||||
|
||||
- Analyze logs for a range of dates at certain level of detail:
|
||||
- Analyze logs for a range of dates at a certain level of detail:
|
||||
|
||||
`logwatch --range {{yesterday|today|all|help}} --detail {{low|medium|others}}'`
|
||||
|
||||
|
@@ -6,7 +6,7 @@
|
||||
|
||||
`sudo lshw -X`
|
||||
|
||||
- List all hardwares in tabular format:
|
||||
- List all hardware in tabular format:
|
||||
|
||||
`sudo lshw -short`
|
||||
|
||||
|
@@ -18,6 +18,6 @@
|
||||
|
||||
`lslocks --pid {{PID}}`
|
||||
|
||||
- List locks with json output to stdout:
|
||||
- List locks with JSON output to stdout:
|
||||
|
||||
`lslocks --json`
|
||||
|
@@ -1,6 +1,6 @@
|
||||
# lsmod
|
||||
|
||||
> Shows the status of linux kernel modules.
|
||||
> Shows the status of Linux kernel modules.
|
||||
> See also `modprobe`, which loads kernel modules.
|
||||
|
||||
- List all currently loaded kernel modules:
|
||||
|
@@ -10,6 +10,6 @@
|
||||
|
||||
`lsscsi -L`
|
||||
|
||||
- List all SCSI devices with human readable disk capacity:
|
||||
- List all SCSI devices with human-readable disk capacity:
|
||||
|
||||
`lsscsi -s`
|
||||
|
@@ -18,6 +18,6 @@
|
||||
|
||||
`lsusb -D {{device}}`
|
||||
|
||||
- List devices with a specified vendor and product id only:
|
||||
- List devices with a specified vendor and product ID only:
|
||||
|
||||
`lsusb -d {{vendor}}:{{product}}`
|
||||
|
@@ -16,6 +16,6 @@
|
||||
|
||||
`lvcreate -l {{60%VG}} -n {{mylv}} {{vg1}}`
|
||||
|
||||
- Create a logical volume called mylv that uses all of the unallocated space in the volume group vg1:
|
||||
- Create a logical volume called mylv that uses all the unallocated space in the volume group vg1:
|
||||
|
||||
`lvcreate -l {{100%FREE}} -n {{mylv}} {{vg1}}`
|
||||
|
@@ -4,11 +4,11 @@
|
||||
> See also: `lvm`.
|
||||
> More information: <https://man7.org/linux/man-pages/man8/lvextend.8.html>.
|
||||
|
||||
- Increase a volume's size to 120GB:
|
||||
- Increase a volume's size to 120 GB:
|
||||
|
||||
`lvextend --size {{120G}} {{logical_volume}}`
|
||||
|
||||
- Increase a volume's size by 40GB as well as the underlying filesystem:
|
||||
- Increase a volume's size by 40 GB as well as the underlying filesystem:
|
||||
|
||||
`lvextend --size +{{40G}} -r {{logical_volume}}`
|
||||
|
||||
|
@@ -4,10 +4,10 @@
|
||||
> See also: `lvm`.
|
||||
> More information: <https://man7.org/linux/man-pages/man8/lvreduce.8.html>.
|
||||
|
||||
- Reduce a volume's size to 120GB:
|
||||
- Reduce a volume's size to 120 GB:
|
||||
|
||||
`lvreduce --size {{120G}} {{logical_volume}}`
|
||||
|
||||
- Reduce a volume's size by 40GB as well as the underlying filesystem:
|
||||
- Reduce a volume's size by 40 GB as well as the underlying filesystem:
|
||||
|
||||
`lvreduce --size -{{40G}} -r {{logical_volume}}`
|
||||
|
@@ -4,11 +4,11 @@
|
||||
> See also: `lvm`.
|
||||
> More information: <https://man7.org/linux/man-pages/man8/lvresize.8.html>.
|
||||
|
||||
- Change the size of a logical volume to 120GB:
|
||||
- Change the size of a logical volume to 120 GB:
|
||||
|
||||
`lvresize --size {{120G}} {{volume_group}}/{{logical_volume}}`
|
||||
|
||||
- Extend the size of a logical volume as well as the underlying filesystem by 120GB:
|
||||
- Extend the size of a logical volume as well as the underlying filesystem by 120 GB:
|
||||
|
||||
`lvresize --size +{{120G}} --resizefs {{volume_group}}/{{logical_volume}}`
|
||||
|
||||
@@ -16,6 +16,6 @@
|
||||
|
||||
`lvresize --size {{100}}%FREE {{volume_group}}/{{logical_volume}}`
|
||||
|
||||
- Reduce the size of a logical volume as well as the underlying filesystem by 120GB:
|
||||
- Reduce the size of a logical volume as well as the underlying filesystem by 120 GB:
|
||||
|
||||
`lvresize --size -{{120G}} --resizefs {{volume_group}}/{{logical_volume}}`
|
||||
|
@@ -1,6 +1,6 @@
|
||||
# mcookie
|
||||
|
||||
> Generates random 128 bit hexadecimal numbers.
|
||||
> Generates random 128-bit hexadecimal numbers.
|
||||
|
||||
- Generate a random number:
|
||||
|
||||
|
@@ -6,7 +6,7 @@
|
||||
|
||||
`medusa -M ftp -h host -U {{path/to/username_file}} -P {{path/to/password_file}}`
|
||||
|
||||
- Execute a login attempt against a HTTP server using the username, password and user-agent specified:
|
||||
- Execute a login attempt against an HTTP server using the username, password and user-agent specified:
|
||||
|
||||
`medusa -M HTTP -h host -u {{username}} -p {{password}} -m USER-AGENT:"{{Agent}}"`
|
||||
|
||||
|
@@ -3,11 +3,11 @@
|
||||
> Connection management with NetworkManager.
|
||||
> More information: <https://man.archlinux.org/man/nmcli.1>.
|
||||
|
||||
- List all NetworkManager connections (shows name, uuid, type and device):
|
||||
- List all NetworkManager connections (shows name, UUID, type and device):
|
||||
|
||||
`nmcli connection`
|
||||
|
||||
- Activate a connection by specifying an uuid:
|
||||
- Activate a connection by specifying a UUID:
|
||||
|
||||
`nmcli connection up uuid {{uuid}}`
|
||||
|
||||
|
@@ -24,7 +24,7 @@
|
||||
|
||||
`select {{/dev/sdX}}`
|
||||
|
||||
- Create a 16GB partition with the specified filesystem in interactive mode:
|
||||
- Create a 16 GB partition with the specified filesystem in interactive mode:
|
||||
|
||||
`mkpart {{primary|logical|extended}} {{btrfs|ext2|ext3|ext4|fat16|fat32|hfs|hfs+|linux-swap|ntfs|reiserfs|udf|xfs}} {{0%}} {{16G}}`
|
||||
|
||||
|
@@ -2,6 +2,6 @@
|
||||
|
||||
> Temporarily suspends `pulseaudio` while another command is running to allow access to alsa.
|
||||
|
||||
- Suspend pulseaudio while running `jackd`:
|
||||
- Suspend PulseAudio while running `jackd`:
|
||||
|
||||
`pasuspender -- {{jackd -d alsa --device hw:0}}`
|
||||
|
@@ -10,7 +10,7 @@
|
||||
|
||||
`pdfgrep --with-filename --page-number {{pattern}} {{file.pdf}}`
|
||||
|
||||
- Do a case insensitive search for lines that begin with "foo" and return the first 3 matches:
|
||||
- Do a case-insensitive search for lines that begin with "foo" and return the first 3 matches:
|
||||
|
||||
`pdfgrep --max-count {{3}} --ignore-case {{'^foo'}} {{file.pdf}}`
|
||||
|
||||
|
@@ -1,12 +1,12 @@
|
||||
# perf
|
||||
|
||||
> Framework for linux performance counter measurements.
|
||||
> Framework for Linux performance counter measurements.
|
||||
|
||||
- Display basic performance counter stats for a command:
|
||||
|
||||
`perf stat {{gcc hello.c}}`
|
||||
|
||||
- Display system-wide real time performance counter profile:
|
||||
- Display system-wide real-time performance counter profile:
|
||||
|
||||
`sudo perf top`
|
||||
|
||||
|
@@ -2,10 +2,10 @@
|
||||
|
||||
> Disable PHP extensions on Debian-based OSes.
|
||||
|
||||
- Disable the json extension for every SAPI of every PHP version:
|
||||
- Disable the JSON extension for every SAPI of every PHP version:
|
||||
|
||||
`sudo phpdismod {{json}}`
|
||||
|
||||
- Disable the json extension for PHP 7.3 with the cli SAPI:
|
||||
- Disable the JSON extension for PHP 7.3 with the cli SAPI:
|
||||
|
||||
`sudo phpdismod -v {{7.3}} -s {{cli}} {{json}}`
|
||||
|
@@ -2,10 +2,10 @@
|
||||
|
||||
> Enable PHP extensions on Debian-based OSes.
|
||||
|
||||
- Enable the json extension for every SAPI of every PHP version:
|
||||
- Enable the JSON extension for every SAPI of every PHP version:
|
||||
|
||||
`sudo phpenmod {{json}}`
|
||||
|
||||
- Enable the json extension for PHP 7.3 with the cli SAPI:
|
||||
- Enable the JSON extension for PHP 7.3 with the cli SAPI:
|
||||
|
||||
`sudo phpenmod -v {{7.3}} -s {{cli}} {{json}}`
|
||||
|
@@ -14,6 +14,6 @@
|
||||
|
||||
`sudo phpquery -v {{7.3}} -s {{cli}} -M`
|
||||
|
||||
- Check if the json extension is enabled for PHP 7.3 with the apache2 SAPI:
|
||||
- Check if the JSON extension is enabled for PHP 7.3 with the apache2 SAPI:
|
||||
|
||||
`sudo phpquery -v {{7.3}} -s {{apache2}} -m {{json}}`
|
||||
|
@@ -20,7 +20,7 @@
|
||||
|
||||
`pkgfile --list --binaries {{package_name}}`
|
||||
|
||||
- Search for a package that owns a specific file using case insensitive matching:
|
||||
- Search for a package that owns a specific file using case-insensitive matching:
|
||||
|
||||
`pkgfile --ignorecase {{filename}}`
|
||||
|
||||
|
@@ -15,6 +15,6 @@
|
||||
|
||||
`protontricks {{appid}} {{winetricks_args}}`
|
||||
|
||||
- Run a command within a games installation directory:
|
||||
- Run a command within a game's installation directory:
|
||||
|
||||
`protontricks -c {{command}} {{appid}}`
|
||||
|
@@ -1,17 +1,17 @@
|
||||
# pulseaudio
|
||||
|
||||
> The pulseaudio sound system daemon and manager.
|
||||
> The PulseAudio sound system daemon and manager.
|
||||
> More information: <https://www.freedesktop.org/wiki/Software/PulseAudio/>.
|
||||
|
||||
- Check if pulseaudio is running (a non-zero exit code means it is not running):
|
||||
- Check if PulseAudio is running (a non-zero exit code means it is not running):
|
||||
|
||||
`pulseaudio --check`
|
||||
|
||||
- Start the pulseaudio daemon in the background:
|
||||
- Start the PulseAudio daemon in the background:
|
||||
|
||||
`pulseaudio --start`
|
||||
|
||||
- Kill the running pulseaudio daemon:
|
||||
- Kill the running PulseAudio daemon:
|
||||
|
||||
`pulseaudio --kill`
|
||||
|
||||
|
@@ -23,6 +23,6 @@
|
||||
|
||||
`rdesktop -u {{username}} -p {{password}} -d {{domainname}} {{host:port}}`
|
||||
|
||||
- Use the 16 bit color (speed up):
|
||||
- Use the 16-bit color (speed up):
|
||||
|
||||
`rdesktop -u {{username}} -p {{password}} -a 16 {{host:port}}`
|
||||
|
@@ -1,12 +1,12 @@
|
||||
# rtcwake
|
||||
|
||||
> Enter a system sleep state until specified wakeup time relative to your bios clock.
|
||||
> Enter a system sleep state until specified wakeup time relative to your BIOS clock.
|
||||
|
||||
- Show whether an alarm is set or not:
|
||||
|
||||
`sudo rtcwake -m show -v`
|
||||
|
||||
- Suspend to ram and wakeup after 10 seconds:
|
||||
- Suspend to RAM and wakeup after 10 seconds:
|
||||
|
||||
`sudo rtcwake -m mem -s {{10}}`
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
`sudo rtcwake -m disk --date +{{15}}min`
|
||||
|
||||
- Freeze the system (more efficient than suspend-to-ram but linux > 3.9 required) and wakeup at a given date and time:
|
||||
- Freeze the system (more efficient than suspend-to-RAM but version 3.9 or newer of the Linux kernel is required) and wakeup at a given date and time:
|
||||
|
||||
`sudo rtcwake -m freeze --date {{YYYYMMDDhhmm}}`
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
`schroot --all {{command}}`
|
||||
|
||||
- Start an interactive shell with in a specific chroot as a specific user:
|
||||
- Start an interactive shell within a specific chroot as a specific user:
|
||||
|
||||
`schroot --chroot {{chroot}} --user {{user}}`
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
# silentcast
|
||||
|
||||
> Silent screencast creator. Saves in `.mkv` and animated gif formats.
|
||||
> Silent screencast creator. Saves in `.mkv` and animated GIF formats.
|
||||
> More information: <https://github.com/colinkeenan/silentcast>.
|
||||
|
||||
- Launch silentcast:
|
||||
|
@@ -19,7 +19,7 @@
|
||||
|
||||
`slapt-get --upgrade`
|
||||
|
||||
- Locate packages of interest by the package name, disk set, or version:
|
||||
- Locate packages by the package name, disk set, or version:
|
||||
|
||||
`slapt-get --search {{package_name}}`
|
||||
|
||||
|
@@ -16,7 +16,7 @@
|
||||
|
||||
`slapt-src --install {{slackbuild_name}}`
|
||||
|
||||
- Locate slackbuilds of interest by their name or description:
|
||||
- Locate slackbuilds by their name or description:
|
||||
|
||||
`slapt-src --search {{search_term}}`
|
||||
|
||||
|
@@ -7,18 +7,18 @@
|
||||
|
||||
`snmpwalk -v1 -c {{community}} {{ip}}`
|
||||
|
||||
- Query specific system information on a remote host by OID using SNMPv2 on a specified port:
|
||||
- Query system information on a remote host by OID using SNMPv2 on a specified port:
|
||||
|
||||
`snmpwalk -v2c -c {{community}} {{ip}}:{{port}} {{oid}}`
|
||||
|
||||
- Query specific system information on a remote host by OID using SNMPv3 and authentication without encryption:
|
||||
- Query system information on a remote host by OID using SNMPv3 and authentication without encryption:
|
||||
|
||||
`snmpwalk -v3 -l {{authNoPriv}} -u {{username}} -a {{MD5|SHA}} -A {{passphrase}} {{ip}} {{oid}}`
|
||||
|
||||
- Query specific system information on a remote host by OID using SNMPv3, authentication, and encryption:
|
||||
- Query system information on a remote host by OID using SNMPv3, authentication, and encryption:
|
||||
|
||||
`snmpwalk -v3 -l {{authPriv}} -u {{username}} -a {{MD5|SHA}} -A {{auth_passphrase}} -x {{DES|AES}} -X {{enc_passphrase}} {{ip}} {{oid}}`
|
||||
|
||||
- Query specific system information on a remote host by OID using SNMPv3 without authentication or encryption:
|
||||
- Query system information on a remote host by OID using SNMPv3 without authentication or encryption:
|
||||
|
||||
`snmpwalk -v3 -l {{noAuthNoPriv}} -u {{username}} {{ip}} {{oid}}`
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
`sudo spectre-meltdown-checker`
|
||||
|
||||
- Check the currently running kernel and show an explanation of the actions to take in order to mitigate a vulnerability:
|
||||
- Check the currently running kernel and show an explanation of the actions to take to mitigate a vulnerability:
|
||||
|
||||
`sudo spectre-meltdown-checker --explain`
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
`spi --upgrade`
|
||||
|
||||
- Locate packages or slackbuilds of interest by package name or description:
|
||||
- Locate packages or slackbuilds by package name or description:
|
||||
|
||||
`spi {{search_terms}}`
|
||||
|
||||
|
@@ -11,6 +11,6 @@
|
||||
|
||||
`sreport job sizes printjobcount`
|
||||
|
||||
- Show users with highest cpu time use:
|
||||
- Show users with the highest CPU time use:
|
||||
|
||||
`sreport user topuser`
|
||||
|
@@ -3,7 +3,7 @@
|
||||
> Steganography tool for JPEG, BMP, WAV and AU file formats.
|
||||
> More information: <https://github.com/StefanoDeVuono/steghide>.
|
||||
|
||||
- Embed data in a PNG image, prompting for a passphrase:
|
||||
- Embed data in a PNG, prompting for a passphrase:
|
||||
|
||||
`steghide embed --coverfile {{path/to/image.png}} --embedfile {{path/to/data.txt}}`
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
> Package management utility for Clear Linux.
|
||||
> More information: <https://docs.01.org/clearlinux/latest/guides/clear/swupd.html>.
|
||||
|
||||
- Update to latest version:
|
||||
- Update to the latest version:
|
||||
|
||||
`sudo swupd update`
|
||||
|
||||
|
@@ -6,7 +6,7 @@
|
||||
|
||||
`systemd-analyze blame`
|
||||
|
||||
- Print a tree of the time critical chain of units:
|
||||
- Print a tree of the time-critical chain of units:
|
||||
|
||||
`systemd-analyze critical-chain`
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
> Manage encrypted storage directories that can be safely transported and hidden in a filesystem.
|
||||
> More information: <https://www.dyne.org/software/tomb/>.
|
||||
|
||||
- Create a new tomb with an initial size of 100MB:
|
||||
- Create a new tomb with an initial size of 100 MB:
|
||||
|
||||
`tomb dig -s {{100}} {{encrypted_directory.tomb}}`
|
||||
|
||||
|
@@ -19,7 +19,7 @@
|
||||
|
||||
`xclip -sel clip {{input_file.txt}}`
|
||||
|
||||
- Copy the contents of a PNG image into the system clipboard (can be pasted in other programs correctly):
|
||||
- Copy the contents of a PNG into the system clipboard (can be pasted in other programs correctly):
|
||||
|
||||
`xclip -sel clip -t image/png {{input_file.png}}`
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
# xcursorgen
|
||||
|
||||
> Create an X cursor file from a collection of PNG images.
|
||||
> Create an X cursor file from a collection of PNGs.
|
||||
> If `--prefix` is omitted, the image files must be located in the current working directory.
|
||||
> More information: <https://manned.org/xcursorgen.1>.
|
||||
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
`xdg-mime query filetype {{path/to/file}}`
|
||||
|
||||
- Display the default application for opening PNG images:
|
||||
- Display the default application for opening PNGs:
|
||||
|
||||
`xdg-mime query default {{image/png}}`
|
||||
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
`xdg-open .`
|
||||
|
||||
- Open an URL in the default browser:
|
||||
- Open a URL in the default browser:
|
||||
|
||||
`xdg-open {{https://example.com}}`
|
||||
|
||||
|
@@ -10,11 +10,11 @@
|
||||
|
||||
`xdotool click {{3}}`
|
||||
|
||||
- Get the id of the currently active window:
|
||||
- Get the ID of the currently active window:
|
||||
|
||||
`xdotool getactivewindow`
|
||||
|
||||
- Focus on the window with id of 12345:
|
||||
- Focus on the window with ID of 12345:
|
||||
|
||||
`xdotool windowfocus --sync {{12345}}`
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
> Command-line tool to change settings for Wacom pen tablets at runtime.
|
||||
|
||||
- List all the available wacom devices. The device name is in the first column:
|
||||
- List all the available Wacom devices. The device name is in the first column:
|
||||
|
||||
`xsetwacom list`
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
> Clone of the game Tetris in the terminal.
|
||||
> More information: <https://github.com/alexdantas/yetris>.
|
||||
|
||||
- Start a tetris game:
|
||||
- Start a Tetris game:
|
||||
|
||||
`yetris`
|
||||
|
||||
|
@@ -23,6 +23,6 @@
|
||||
|
||||
`yum check-update`
|
||||
|
||||
- Upgrade installed packages to newest available versions:
|
||||
- Upgrade installed packages to the newest available versions:
|
||||
|
||||
`yum upgrade`
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
`sudo modprobe zram num_devices={{2}}`
|
||||
|
||||
- Find and initialise the next free zram device to a 2GB virtual drive using LZ4 compression:
|
||||
- Find and initialise the next free zram device to a 2 GB virtual drive using LZ4 compression:
|
||||
|
||||
`sudo zramctl --find --size {{2GB}} --algorithm {{lz4}}`
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
`zypper remove {{package}}`
|
||||
|
||||
- Upgrade installed packages to newest available versions:
|
||||
- Upgrade installed packages to the newest available versions:
|
||||
|
||||
`zypper update`
|
||||
|
||||
|
Reference in New Issue
Block a user