Wednesday 5 February 2020

Basic commands in Linux

Hi All,

Hope you all are doing good.

In this article, we will know about various Linux commands.

Structure of command:

Command <option> <arguments>

here option and arguments are not mandatory.

Help command:
To know how to use particular command in Linux, help command will assist you on it.
Syntax: command --help
Example: cat --help
Output


Man command: We use this command to get the manual of any command.
Syntax: man command-name
Example: man ls
Output:


Below are some of the basic commands.

Command NameDescription
lsLists down the content of a directory.
mkdirCreates a directory
mvMoves or renames file/directory
pwdShows the present working directory
rmRemoves a file/directory
cdChange directory(Enter into directory)
whoamiReturns current logged-in user
clearClears the screen
catDisplays the text of a file
tailDisplays the last few lines text of a file
echoPrints the text
cpCopies a file/directory
TouchCreates a file
dfShows the available disk space
duShows the disk space utilized by files and directories

We will learn each of above commands in-detail in further posts.

Note: Multiple commands can be executed sequentially by separating them with a semicolon ;

Thanks for reading this article!!

No comments:

Post a Comment

Intoduction to Flutter

Hi All, I hope every one is doing good In this article, we will know about the introduction of Flutter.