In this topic, we will discuss the
most frequently used Linux commands with their examples. These commands are very useful for a beginner and professional both.
pwd Command
mkdir Command
ll Command
ls Command
cd Command
cd -
cd ..
touch Command
cat Command
cp Command
mv Command
rm Command
pwd :
The pwd command is used to display the location of the current working directory.
mkdir Command :
The mkdir command is used to create a new directory under any directory.
ll Command :
This command is used to list the detail information of files and folder of a current directory
ls Command :
The ls command is used to display a list of content of a directory.
cd Command :
The cd command is used to change the current directory.
cd - :
The cd command is used to change the current directory.
cd .. :
Change Current directory to parent directory
touch Command :
The touch command is used to create empty files. We can create multiple empty files at a time.
cat Command :
It can be used to create a file, display content of the file.
">" We can Use Single greater than for writing file it will show recently updated one. means Over rides the content.
" >> " We can use double grater than for writing file it will show comp[lete content.
cp Command :
The cp command is used to copy a file or directory.
mv Command :
The mv command is used to move a file or a directory form one location to another location