Cheatography
https://cheatography.com
Linux and Arch commands important commands, no basic commands
This is a draft cheat sheet. It is a work in progress and is not finished yet.
yay/pacman
yay -S [--noconfirm] <package> |
Install a package |
yay -Ss <package> |
Search a package |
yay -Si <package> |
Package information |
yay -U path |
Install a local package |
yay -Qq package |
List of all package |
yay -Qm |
List of non-oficial package |
yay -Pu |
List of packages that needs to be updated |
yay -R <package> |
Remove a package |
yay -Rnsc <package> |
Remove a package, dependencies and config |
yay -Sya |
Update the system |
redirecting
a > b |
Redirect stdout to b |
$(!!) |
Redirect the last command output in a new one |
|
|
find
find <startingdirectory> <options> <search term> |
Basic structure |
find . -name "file” |
Find by name |
find . -iname "file” |
Find by name, ignoring CL |
find . -name “*.format” |
Find by format |
find . -not -name "file" |
Exclude a name |
find . -type "type" |
f:file, d:directory, l:link... |
find . -empty |
Empty files and directory |
find . -exec |
Find executable programs |
|
|
system and kernel
uname |
Kernel name |
uname -v |
Kernel version |
lscpu |
List CPU information |
screenfetch |
Arch Linux system information |
hwinfo |
All hardware information |
lspci |
List PCI |
lsusb |
List USB |
fdisk -l |
List disk partitions |
top |
System processes monitoring |
inxi -G |
List installed drivers |
ls
-a |
Show all |
-R |
Recursive list |
-S |
Sort by size |
-l |
Long listing |
-d |
Only directories |
-a |
Hidden files/directories |
-lias |
Full listing |
|