prompt
stringlengths 4
230
| command
stringlengths 1
231
|
---|---|
Set a changeable kernel state variable | sysctl -w {{section.tunable}}={{value}} |
Get currently open file handlers | sysctl fs.file-nr |
Get limit for simultaneous open files | sysctl fs.file-max |
Apply changes from `/etc/sysctl.conf` | /etc/sysctl.conf |
Update all enabled media | urpmi.update -a |
Update specific media (including disabled media) | urpmi.update {{medium1 medium2 ...}} |
Update all media that contain a specific keyword | urpmi.update {{keyword}} |
Update all configured media | urpmi.update e |
Convert a PDF file to an HTML file | pdftohtml {{path/to/file.pdf}} {{path/to/output_file.html}} |
Ignore images in the PDF file | pdftohtml -i {{path/to/file.pdf}} {{path/to/output_file.html}} |
Generate a single HTML file that includes all PDF pages | pdftohtml -s {{path/to/file.pdf}} {{path/to/output_file.html}} |
Convert a PDF file to an XML file | pdftohtml -xml {{path/to/file.pdf}} {{path/to/output_file.xml}} |
Set up a Git repo and perform various setup tasks (run from `/etc`) | /etc |
Commit all changes in `/etc` | /etc |
Run arbitrary Git commands | sudo etckeeper vcs {{status}} |
Check if there are uncommitted changes (only returns an exit code) | sudo etckeeper unclean |
Destroy existing repo and stop tracking changes | sudo etckeeper uninit |
List available power profiles | powerprofilesctl list |
Set a specific power profile | powerprofilesctl set {{profile_name}} |
Connect to a TFTP server specifying its IP address and port | tftp {{server_ip}} {{port}} |
Connect to a TFTP server and execute a TFTP [c]ommand | tftp {{server_ip}} -c {{command}} |
Connect to a TFTP server using IPv6 and force originating port to be in [R]ange | tftp {{server_ip}} -6 -R {{port}}:{{port}} |
Set the transfer mode to binary or ASCIi through the tftp client | mode {{binary|ascii}} |
Download file from a server through the tftp client | get {{file}} |
Upload file to a server through the tftp client | put {{file}} |
Exit the tftp client | quit |
Display system memory | free |
Display memory in Bytes/KB/MB/GB | free -{{b|k|m|g}} |
Display memory in human-readable units | free -h |
Refresh the output every 2 seconds | free -s {{2}} |
Show the system's DNS domain name | dnsdomainname |
Update a PO file according to the modification of its origin file | po4a-updatepo --format {{text}} --master {{path/to/master.txt}} --po {{path/to/result.po}} |
List available formats | po4a-updatepo --help-format |
Update several PO files according to the modification of their origin file | po4a-updatepo --format {{text}} --master {{path/to/master.txt}} --po {{path/to/po1.po}} --po {{path/to/po2.po}} |
Set up a wireless connection interactively | wifi-menu |
Interactively set up a connection to a network and obscure the password | wifi-menu --obscure |
Display help | wifi-menu --help |
Increase/decrease the backlight by a specific percent count | backlight_control {{+|-}}{{5}} |
Set the backlight strength to a specific percent count | backlight_control {{90}} |
Display help | backlight_control |
Decompress from a file to the current directory | lrzuntar {{path/to/archive.tar.lrz}} |
Decompress from a file to the current directory using a specific number of processor threads | lrzuntar -p {{8}} {{path/to/archive.tar.lrz}} |
Decompress from a file to the current directory and silently overwrite items that already exist | lrzuntar -f {{archive.tar.lrz}} |
Specify the output path | lrzuntar -O {{path/to/directory}} {{archive.tar.lrz}} |
Delete the compressed file after decompression | lrzuntar -D {{path/to/archive.tar.lrz}} |
Move the process with a specific PID to the control group student in the CPU hierarchy | cgclassify -g {{cpu:student}} {{1234}} |
Move the process with a specific PID to control groups based on the `/etc/cgrules.conf` configuration file | /etc/cgrules.conf |
Move the process with a specific PID to the control group student in the CPU hierarchy. Note: The daemon of the service `cgred` does not change `cgroups` of the specific PID and its children (based on `/etc/cgrules.conf`) | cgred` does not change `cgroups` of the specific PID and its children (based on `/etc/cgrules.conf |
Remove an installed package | pkgrm {{package}} |
Create a new tomb with an initial size of 100 MB | tomb dig -s {{100}} {{encrypted_directory.tomb}} |
Create a new key file that can be used to lock a tomb; user will be prompted for a password for the key | tomb forge {{encrypted_directory.tomb.key}} |
Forcefully create a new key, even if the tomb isn't allowing key forging (due to swap) | tomb forge {{encrypted_directory.tomb.key}} -f |
Initialize and lock an empty tomb using a key made with `forge` | forge |
Mount a tomb (by default in `/media`) using its key, making it usable as a regular filesystem directory | /media |
Close a tomb (fails if the tomb is being used by a process) | tomb close {{encrypted_directory.tomb}} |
Forcefully close all open tombs, killing any applications using them | tomb slam all |
List all open tombs | tomb list |
Train the bayesian filter to recognise an email as spam | rspamc learn_spam {{path/to/email_file}} |
Train the bayesian filter to recognise an email as ham | rspamc learn_ham {{path/to/email_file}} |
Generate a manual report on an email | rspamc symbols {{path/to/email_file}} |
Show server statistics | rspamc stat |
Mount a file system (image or block device) at `/run/media/system/LABEL` where LABEL is the filesystem label or the device name if there is no label | /run/media/system/LABEL |
Mount a file system (image or block device) at a specific location | systemd-mount {{path/to/file_or_device}} {{path/to/mount_point}} |
List all local, known block devices with file systems that may be mounted | systemd-mount --list |
Create an automount point that mounts the actual file system at the time of first access | systemd-mount --automount=yes {{path/to/file_or_device}} |
Unmount one or more devices | systemd-mount --umount {{path/to/mount_point_or_device1}} {{path/to/mount_point_or_device2}} |
Mount a file system (image or block device) with a specific file system type | systemd-mount --type={{file_system_type}} {{path/to/file_or_device}} {{path/to/mount_point}} |
Mount a file system (image or block device) with additional mount options | systemd-mount --options={{mount_options}} {{path/to/file_or_device}} {{path/to/mount_point}} |
Restore virtual machine from given backup file on the original storage | qmrestore {{path/to/vzdump-qemu-100.vma.lzo}} {{100}} |
Overwrite existing virtual machine from a given backup file on the original storage | qmrestore {{path/to/vzdump-qemu-100.vma.lzo}} {{100}} --force true |
Restore the virtual machine from a given backup file on specific storage | qmrestore {{path/to/vzdump-qemu-100.vma.lzo}} {{100}} --storage {{local}} |
Start virtual machine immediately from the backup while restoring in the background (only on Proxmox Backup Server) | qmrestore {{path/to/vzdump-qemu-100.vma.lzo}} {{100}} --live-restore true |
Activate a service when a specific socket is connected | systemd-socket-activate {{path/to/socket.service}} |
Activate multiple sockets for a service | systemd-socket-activate {{path/to/socket1.service}} {{path/to/socket2.service}} |
Pass environment variables to the service being activated | {{SYSTEMD_SOCKET_ACTIVATION=1}} systemd-socket-activate {{path/to/socket.service}} |
Activate a service along with a notification socket | systemd-socket-activate {{path/to/socket.socket}} {{path/to/service.service}} |
Activate a service with a specified port | systemd-socket-activate {{path/to/socket.service}} -l {{8080}} |
Start QJoyPad | qjoypad |
Start QJoyPad and look for devices in a specific directory | qjoypad --device={{path/to/directory}} |
Start QJoyPad but don't show a system tray icon | qjoypad --notray |
Start QJoyPad and force the window manager to use a system tray icon | qjoypad --force-tray |
Force a running instance of QJoyPad to update its list of devices and layouts | qjoypad --update |
Load the given layout in an already running instance of QJoyPad, or start QJoyPad using the given layout | qjoypad "{{layout}}" |
Create an X cursor file using a configuration file | xcursorgen {{path/to/config.cursor}} {{path/to/output_file}} |
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}} |
Create an X cursor file using a configuration file and write the output to `stdout` | stdout |
List Slurm share information | sshare |
Control the output format | sshare --{{parsable|parsable2|json|yaml}} |
Control the fields to display | sshare --format={{format_string}} |
Display information for the specified users only | sshare --users={{user_id_1,user_id_2,...}} |
Set the absolute priority of a running [p]rocess | renice {{+3}} -p {{pid}} |
Increase/decrease the priority of all processes owned by a [u]ser | renice --relative {{-4}} -u {{uid|user}} |
Set the priority of all processes that belong to a process [g]roup | renice --absolute {{5}} -g {{process_group}} |
Check filesystem, reporting any damaged blocks | sudo e2fsck {{/dev/sdXN}} |
Check filesystem and automatically repair any damaged blocks | sudo e2fsck -p {{/dev/sdXN}} |
Check filesystem in read only mode | sudo e2fsck -c {{/dev/sdXN}} |
Perform an exhaustive, non-destructive read-write test for bad blocks and blacklist them | sudo e2fsck -fccky {{/dev/sdXN}} |
Start `terminator` window | terminator |
Start with a fullscreen window | terminator -f |
Split terminals horizontally | <Ctrl> + <Shift> + O |