prompt
stringlengths
4
230
command
stringlengths
1
231
Capture a screenshot of a specific selection and copy it to the clipboard
i3-scrot --select-to-clipboard
Capture a screenshot of the active window after a delay of 5 seconds
i3-scrot --window {{5}}
Show information about all network interfaces
ip link
Show information about a specific network interface
ip link show {{ethN}}
Bring a network interface up or down
ip link set {{ethN}} {{up|down}}
Give a meaningful name to a network interface
ip link set {{ethN}} alias "{{LAN Interface}}"
Change the MAC address of a network interface
ip link set {{ethN}} address {{ff:ff:ff:ff:ff:ff}}
Change the MTU size for a network interface to use jumbo frames
ip link set {{ethN}} mtu {{9000}}
List partitions
sudo fdisk -l
Start the partition manipulator
sudo fdisk {{/dev/sdX}}
Once partitioning a disk, create a partition
n
Once partitioning a disk, select a partition to delete
d
Once partitioning a disk, view the partition table
p
Once partitioning a disk, write the changes made
w
Once partitioning a disk, discard the changes made
q
Once partitioning a disk, open a help menu
m
Create a squashfs filesystem (compressed using `gzip` by default) from an uncompressed tar archive
gzip
Create a squashfs filesystem from a tar archive compressed with `gzip`, and [comp]ress the filesystem using a specific algorithm
gzip
Create a squashfs filesystem from a tar archive compressed with `xz`, excluding some of the files
xz
Create a squashfs filesystem from a tar archive compressed with `zstd`, excluding files ending with `.gz`
zstd`, excluding files ending with `.gz
Create a squashfs filesystem from a tar archive compressed with `lz4`, excluding files matching a regular expression
lz4
[M]odify ACL of a file for user with read and write access
setfacl --modify u:{{username}}:rw {{path/to/file_or_directory}}
[M]odify [d]efault ACL of a file for all users
setfacl --modify --default u::rw {{path/to/file_or_directory}}
Remove ACL of a file for a user
setfacl --remove u:{{username}} {{path/to/file_or_directory}}
Remove all ACL entries of a file
setfacl --remove-all {{path/to/file_or_directory}}
Start Waydroid
waydroid
Initialize Waydroid (required on first run or after reinstalling Android)
waydroid init
Install a new Android app from a file
waydroid app install {{path/to/file.apk}}
Launch an Android app by its package name
waydroid app launch {{com.example.app}}
Start or stop the Waydroid session
waydroid session {{start|stop}}
Manage the Waydroid container
waydroid container {{start|stop|restart|freeze|unfreeze}}
Monitor the default PipeWire instance
pw-mon
Monitor a specific remote instance
pw-mon --remote={{remote_name}}
Monitor the default instance specifying a color configuration
pw-mon --color={{never|always|auto}}
Display help
pw-mon --help
Display users in the system
lslogins
Display users belonging to a specific group
lslogins --groups={{groups}}
Display user accounts
lslogins --user-accs
Display last logins
lslogins --last
Display system accounts
lslogins --system-accs
Display supplementary groups
lslogins --supp-groups
Connect with a defined configuration file
sudo vpnc {{config_file}}
Terminate the previously created connection
sudo vpnc-disconnect
Create a Debian Stable directory chroot
sudo mmdebstrap stable {{path/to/debian-root/}}
Create a Debian Bookworm tarball chroot using a mirror
mmdebstrap bookworm {{path/to/debian-bookworm.tar}} {{http://mirror.example.org/debian}}
Create a Debian Sid tarball chroot with additional packages
mmdebstrap sid {{path/to/debian-sid.tar}} --include={{pkg1,pkg2}}
List primary and secondary groups of a specific user
sudo lid {{username}}
List users of a specific group
sudo lid --group {{name}}
Synchronize and update all packages (including AUR)
yaourt -Syua
Install a new package (includes AUR)
yaourt -S {{package}}
Remove a package and its dependencies (includes AUR packages)
yaourt -Rs {{package}}
Search the package database for a keyword (including AUR)
yaourt -Ss {{query}}
List installed packages, versions, and repositories (AUR packages will be listed under the repository name 'local')
yaourt -Q
Synchronize and update all packages
sudo pacman -Syu
Install a new package
sudo pacman -S {{package}}
Remove a package and its dependencies
sudo pacman -Rs {{package}}
Search the database for packages containing a specific file
pacman -F "{{file_name}}"
List installed packages and versions
pacman -Q
List only the explicitly installed packages and versions
pacman -Qe
List orphan packages (installed as dependencies but not actually required by any package)
pacman -Qtdq
Empty the entire `pacman` cache
pacman
Start an interactive view
systemd-cgtop
Change the sort order
systemd-cgtop --order={{cpu|memory|path|tasks|io}}
Show the CPU usage by time instead of percentage
systemd-cgtop --cpu=percentage
Change the update interval in seconds (or one of these time units: `ms`, `us`, `min`)
ms`, `us`, `min
Only count userspace processes (without kernel threads)
systemd-cgtop -P
List user accounts and their associated home directories
homectl list
Create a user account and their associated home directory
sudo homectl create {{username}}
Remove a specific user and the associated home directory
sudo homectl remove {{username}}
Change the password for a specific user
sudo homectl passwd {{username}}
Run a shell or a command with access to a specific home directory
sudo homectl with {{username}} -- {{command}} {{command_arguments}}
Lock or unlock a specific home directory
sudo homectl {{lock|unlock}} {{username}}
Change the disk space assigned to a specific home directory to 100 GiB
sudo homectl resize {{username}} {{100G}}
Display help
homectl --help