Skip to main content

Command Palette

Search for a command to run...

20 basic commands!

Published
2 min read
20 basic commands!

Discover the 20 basic commands that will make your life easier and help you advance your career with Linux.

Commands

Usage

ssh

SSH is used for creating a secure tunnel to another computer from which you can issue commands, transfer data, etc.

netstat

The command is used to see the network status, it shows the status of the network such as TCP, UDP, etc

rm

The command is used to remove a file or directory.

vim

The command is used to edit the files/scripts in Linux.

cat

The command is used to display file content without accessing the file.

hostname

The command is used to find out the machine name in Linux.

whoami

The command is used to see which user is currently logged in.

tar

The command is used to compress the files also known as zip

useradd

The command used to create users in Linux

chmod

The command used to change and set permission to the users, files, and groups

userdel

The command used to delete users in Linux

find

The command used to find content in Linux

head

The command is used to the first lines of one or more files to standard output. Head by default shows the first 10 lines. 

tail

The command used to print the last 10 lines by default of a specific file, then stops.

grep

Global regular expression print Command used to search and find matching content in multiple files.

chown

The command is used to change the file group or the owner.

diff

The command is used to find line-by-line differences in files.

sed

The command is used to quickly edit the file content without opening them

zip

The command is used to create an archive of directories and files.

date

The command is used to check the date, time, and region in Linux.

su

The command used to switch users, is short for switch user.

sudo -i

The command is used when super user action is required for example changing permissions.

apt-get

The command is used to install the software packages.