Command and Conquer
Introduction
General things to have more information on a certain command
The --help
or -h
flag is a very common command to use for a command help. it’s used to display the help message of a command.
man --help
The man
command is used to display the manual of a command.
man find
If you don’t like to read manuals, you can install tealdeer
apt install tealdeer # For Ubuntupacman -Sy tealdeer # For Arch
tldr find
If you are moving beyond basics you can also use cheat.sh
you need curl
curl cheat.sh/find
You can add this in your bash
or zsh
shell config
cheatsh() { curl cheat.sh/"$1"}
The Filesystem
- pwd - print working directory
- ls - list alternative lsd
- cd - change directory alternative zoxide
- find - find files alternative fd
- less - read large files alternative moar
- cat - read small files alternative bat
- touch - create an empty file
- mkdir - create a directory
- rmdir - remove an empty directory
- rm - remove a file
- mv - move a file or directory
Other Useful commands(WIP)
- uname
- lscpu
- lsblk
- dmidecode
- lsusb