Top 25 Very Useful Linux Commands

Here, i’ll tell you about linux commands, Linux is a unix like, open source operating system. It is much faster than windows, people use linux, because it is more secure than windows and viruses that can effect linux are too much rare. Hackers also used linux operating system, the main reason is to used by hackers, it is open source and source code of linux is freely available. There are many linux operating system avaiable online like, Ubuntu Linux, Kali Linux, Parrot OS, Backbox linux, etc… If you want to use linux OS, it is very important to learn Linux terminal commands. Because without commands, you can’t operate Linux operating system.

 

Check below the list of Linux Commands.

1) whoami

It simply prints the user id, or you can say, it prints the user name,

 

2) pwd

pwd(print working directory) is simply prints the location or address of present directory.

 

3) ls

ls command is stands for lists. It is one of the most used command in Linux OS(Operating system). It shows the content of directories. It shows list of all the directories or files which exist in current directory.

If you want show hidden files or directories you can use -a attribute

You can use -l attribute, If you want to see more details of directories & files like date, time, etc..

 

4) cd

cd (change directory) it is very useful command, it is used to change directory.  If you want to come back in your previous directory you can use (cd ..) .

 

5) cat

cat (concatenate) command is very useful command to create files and to display files content.

To create a file using cat, you can simply enter command like this cat > filename.file_extention , after entering this command type your desired txt and press CTRL+D or CTRL+C to exit

 

To show the content from the file you can use cat like the cat filename.file_extention

 

6) cp

cp (copy) command is used to copy files from one directory to another directory

 

7) mv

mv (move) command is used to move a file from one directory to another.

We can also use move command to rename the file

 

8) mkdir

mkdir (make directory) is used to create a new folder or directory

 

9) rm

rm (remove), it is used to delete files

you can also use following attributes with rm command

-r : is used for deleting folders and files and sub-directories ( directories inside the directory)

-f: is used for ignoring the prompts

 

10) rmdir

rmdir (remove directory) command is used to remove a directory or folder

 

11) uname

uname command display the information of system

if you use -a attribute, then it display more info about the system

 

12) touch

touch command create a new blank file

 

13) uptime

uptime command returns the time for which the system has been up.

you can also use -p attribute, to convert time into easy readable format.

 

14) find

find command is used to search or find a file in given directory

 

15) users

This shows the name of the currently logged in users

 

16) more

more command is used to show the file content

 

17) free

free command display the information of the ram

 

18) date

date command shows the system date and time

it is also used to set system date and time

 

19) cal

cal (calendar) command is used to print calendar

 

20) clear

clear command use to clear or clean the terminal.

 

21) sudo

sudo (super user do) command is to use perform a task which require root or administration permission

 

22) df

df (disk free) command is used to check the system disk space usage report

 

23) du

du (disk usage) command is used to check the , how much space a file or directory takes

-h attribute is used to show details in byte, kilo bytes or mega bytes

 

24) top

top command is same like task manager in windows. it show a list of running processes and how much CPU is using in each process

 

25) history

it will return the list of all previous commands who you put in the terminal

 

Read about Cyber Threats

Cyber Security and Cyber Threats