20 Basic Command in Linux


The following 20 Basic commands show be remembered by every one trying to advance their career or want to make their life easier 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

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

rm

Command is used to remove a file or directory.

vim

Command is used to edit the files/scripts in Linux.

cat

Command is used to display file content without accessing the file.

hostname

Command is used to find out the machine name in linux.

whoami

Command is used to see which user is currently logged in.

tar

Command is used to compress the files also know as zip

useradd

Command use to create users in Linux

chmod

Command use to change, set permission to the users, file and groups

userdel

Command used to delete users in linux

find

Command used to find content in linux

head

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

tail

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

Command is used to change the file group or the owner.

diff

Command used to find line by line differences in files.

sed

Command used to quickly edit the file content without opening them

zip

Command used to create create archive of directories and files.

date

Command used to check the date, time and region in linux.

su

Command used to switch users, short for switch user.

sudo -i

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

apt-get

Command used to install the software packages.



Comments