Commands in Linux are utilities that allow users to perform basic and advanced tasks on the operating system. These commands are executed on the Linux terminal, which provides a command-line interface for users to interact with the system. The terminal in Linux is similar to the command prompt in Windows OS. It's worth noting that the commands in Linux are case-sensitive, and users must be careful with the spelling and capitalization of the commands they enter.
Whenever you want a quick reference, just review the below table:
Command | Usage |
---|---|
ls | Lists the content of a directory |
alias | Define or display aliases |
unalias | Remove alias definitions |
pwd | Prints the working directory |
cd | Changes directory |
cp | Copies files and directories |
rm | Remove files and directories |
mv | Moves (renames) files and directories |
mkdir | Creates directories |
man | Displays manual page of other commands |
touch | Creates empty files |
chmod | Changes file permissions |
./ | Runs an executable |
exit | Exits the current shell session |
sudo | Executes commands as superuser |
shutdown | Shutdowns your machine |
htop | Displays processes and resources information |
unzip | Extracts compressed ZIP files. |
apt , yum , pacman | Package managers |
echo | Displays lines of text |
cat | Prints file contents |
ps | Reports shell processes status |
kill | Terminates programs |
ping | Tests network connectivity |
vim | Efficient text editing |
history | Shows a list of previous commands |
passwd | Changes user password |
which | Returns the full binary path of a program |
shred | Overwrites a file to hide its contents |
less | Inspects files interactively |
tail | Displays last lines of a file |
head | Displays first lines of a file |
grep | Prints lines that match patterns |
whoami | Outputs username |
whatis | Shows single-line descriptions |
wc | Word count files |
uname | Displays OS information |
neofetch | Displays OS and hardware information |
find | Searches for files that follow a pattern |
wget | Retrieves files from the internet |
Comments
Post a Comment