InfoClusters
Information at sight.

Basic Linux Commands

83
Reading time: 2 min

Linux is one of the popular Operating System in this world. Almost all the companies use Linux for their servers because Linux provides better performance than competitive Operating Systems. Linux has one main powerful tool called Terminal which lets the user execute commands. With terminal commands, you can do almost anything. You can also create a matrix like an effect in the terminal. The exact working of the terminal is complex but in simple words, it takes user input from the keyboard and passes it to the OS.

Commands

Linux supports a huge range of commands. If you are a Linux beginner than you should know these basic Linux commands:

mkdir

mkdir allows users to create a new directory/folder.

The syntax of mkdir: mkdir folder_name.


ls

using ls you can view all the files and folder.


ls -l

The ls-l command will show all files and folder with permissions.


cd

The most simple thing we can do in Linux is to move between directories. To move to a directory let’s say Downloads we will use: cd Download

To move out of a directory: cd ..


touch

The touch command is used to create a new file.

Syntax: touch filename.txt

you can create files with different extensions as per your choice.


cat

This will allow you to view contents inside the file.

Syntax: cat filename.txt


man

Having a manual of everything can be great. Linux provides manual of each command to access them use: man command.


nano

Nano is a text editor of Linux, to use it type: nano

To open a file in nano: nano filename.txt


rmdir

To remove an empty directory from Linux we use rmdir

But if we have to delete a non-empty directory we will use rmdir -r


All the best people in life seem to like LINUX

%d bloggers like this: