Main commands:

CommandsShort description
ls -lLists files in a long format showing permissions, owner, and size.
ls -aLists all files, including hidden ones (those starting with a dot).
ls -ldLists details of the directory itself rather than its contents.
ls -lhLists files in long format with file sizes in human-readable format (KB, MB).
ls -ltLists files sorted by modification time, newest first.
ls -ltrLists files sorted by modification time in reverse order (oldest first).
ls -RLists all files in the current directory and all subdirectories recursively.
pwdPrints the full path of the current working directory.
cd ..Moves one level up into the parent directory
cd dir_nameChanges the current directory to the specified folder
cd ~Moves directly to the current user’s home directory.
cd -Switches back to the previous directory you were in.
cdShortcut to return to the home directory.
tree -aDisplays all files and directories in a tree structure, including hidden ones.
tree -dDisplays only directories in the tree structure.
tree -hDisplays the tree structure along with human-readable file sizes.
tree -fDisplays the full path prefix for each file in the tree.
tree -pDisplays the tree structure along with file permissions.
ttyPrints the file name of the terminal connected to standard input.
uptimeShows how long the system has been running and the current load.
clearClears the terminal screen for a fresh workspace.
which command_nameShows the full path of the executable for a command.
whereis command_nameLocates the binary, source, and manual page files for a command.
type command_nameExplains how a command name would be interpreted (alias, builtin, or file).
unamePrints the name of the operating system kernel.
uname -aPrints all available system information in one line.
uname -sDisplays the kernel name.
uname -nDisplays the network node hostname.
uname -rDisplays the kernel release version.
uname -vDisplays the kernel version date and build info.
uname -mDisplays the machine hardware architecture (e.g., x86_64).
uname -pDisplays the processor type or “unknown”.
uname -iDisplays the hardware platform or “unknown”.
uname -oDisplays the operating system name (e.g., GNU/Linux).
lscpuDisplays detailed information about the CPU architecture.
man cmd_nameOpens the official manual page for a specific command.
man -k cmd_nameSearches the manual descriptions for a specific keyword.
appropos cmd_nameSearches the manual pages for a keyword (same as man -k).
cmd_name --helpDisplays a brief summary of a command’s options and usage.
cmd_name -?An alternative flag used by some programs to show help.
ls -l /usr/share/doc/cmd_nameChecks for additional offline documentation files for a program.