Show Menu
Cheatography

✶⋆.˚꩜ .ᐟ˙⋆✶ Cheat Sheet (DRAFT) by

stuff i keep forgetting

This is a draft cheat sheet. It is a work in progress and is not finished yet.

System Logs

who
produce inform­­ation on who is logged in
journalctl
view the log of the entire system
Q
quit from journalctl log
journalctl -f
follow the logs in real time
dmesg
view all kernel messages from the last boot of the machine
history
list previous commands used
history | grep keyword
search for a command by keyword in history
ps aux
prints a snapshot of all system processes
df -h
prints the system's storage devices' usage
kill -l
lists the termin­­ation codes available to send the processes
kill -9 [pid]
kills a process with the given pid
xkill
kills a graphical process
lsblk
lists the drives, its partit­­ions, and space
lspci
lists PCI devices
lsusb
lists USB devices

Systemd

systemctl
list running units
halt
Halts the system.
status <un­it>
check status
poweroff
Powers off the system.
(start­|stop) <un­it>
start/stop a service
reboot
Restarts the system.
enable­|di­sable) <un­it>
enable­/di­sable a service at bootup
suspend
Suspends the system.
daemon­-reload
reload systemd

Others

fc-cache -rv
 

Arch

pacman -Syu
update system
pacman -Q
list installed packages
pacman -Qs <na­me>
search installed packages
pacman -Ss <na­me>
search packages
pacman -S <na­me>
install packages
pacman -Rns <na­me>
remove package, its depend­encies and config file backups
pacman -Sc
lean old packages in cache

Files

cat <fi­le>
prints a file's contents
rm -rf
removes a folder and all of its contents
touch
creates a file with the given name

System & Disk Commands

du
Disk usage; shows disk usage of files in directory
lsblk
Report info about block devices
fdisk
Manipulate disk partioning

Hyprctl

dispatch exec <cl­ien­t>
config­errors
reload
rollinglog
kill
layers
switch­xkb­layout
binds
getprop [window] [property]
devices
monitors
clients
workspaces
active­wor­kspace

Identity and change of author­ization

su
Become root and stay in the directory
su -
Become root +Execute the login scripts for root -> Switch to the home directory
sudo -i
Get root without entering a password (only your own password required)