Sudo - A widely used command in the Linux command line, sudo stands for "SuperUser Do". So, if you want any command to be done with administrative or root privileges, you can use the "sudo" command.
Userdel - Delete user.
whoami - Display who is logged on.
whereis - Where you should search programm/package
hostname - Use hostname to know your name in your host or network.
top - Displays the resources being used on your system.
service --status-all - Show all services installed on your Operating system.
df - Use the df command to see the available disk space in each of the partitions in your system.
Example: df -m
uptime - Display time, working hours after loading, users quantity,
w - Display information about working right at moment processes and users.
ifconfig - Network settings (IP-address, Mask, Network address).
traceroute domain - Utility initiates the sending of a packet (using the Internet Control Message Protocol or ICMP)
whois domain - Information about domain.
top - Displays the resources being used on your system.
passwd - Change the password for the system administrator or user.
pwd - When you first open the terminal, you are in the home directory of your user. To know which directory you are in, you can use the “pwd” command.
history - command history.
history -c - clear history.
clear - Clear a command line screen/window for a fresh start.
reboot - System restart.
shutdown - Turn off or restart system (depend of options).
Example: shutdown -r now (Meens: turn off and reboot system now).
cd - Use the "cd" command to go to a directory. Simple "cd" command using to go in home directory.
Example: cd forder (move to forder)
Example: cd .. (move to higher directory)
Example: cd (move to / directory)
cp - copy file
Exmaple: cp file.txt file.backup - where file.txt is original file and file.backup is copy
cd copy - Copy and move files.
Example: cd source where.
ls - Use the "Is" command to know what files are in the directory you are in.
Example: ls - l -
Example: ls -a - You can see all the hidden files
apt - Use apt to work with packages in the Linux command line. Use apt to install, update and remove programm packages.
Example: apt install ...
Example: apt update ...
Example: apt remove ...
P.S. yum command is for CentOS!!!!!
Example: yum install ...
Example: yum update ...
Example: yum remove ...
cat - Create file with content
Example: cat > file
Now write needed information.
CTRL+d
Done.
nano - Debian,Ubuntu text-editor.
vi - CentOS text-editor.
grep - Search files or output for a particular pattern.
more и less - This command can be used to browse the contents of the specified file.
chmod - Use chmod to make a file executable and to change the permissions granted to it in Linux.
chown - Change who owns a file.
find or locate - The locate or find command is used to locate a file in a Linux system, just like the search command in Windows.
Example: find / -name file
Example: locate file
mv - Use the mv command to move files through the command line.
Пример: mv file file1 (rename file, new name is file1).
Пример: mv file.extension forder (move file which this extension to forder forder).
mkdir "name" - Use the mkdir command when you need to create a folder or a directory.
rmdir "name" - Delete directory.
rm file - Delete file
rm file* - Delete all files with name of file
tar - archive file the name of file.tar
Example: tar -cpf file.tar file - archive file(s)
Example: tar -xpf file.tar - extract file(s)
wget - Copy file on server.