The 10 Most-Used Ubuntu Commands
The 10 Most-Used Ubuntu Commands
Ubuntu is a Linux based operating system, and it is free and open-source and has better security.
If you are new
in Ubuntu, then this post about the Ubuntu commands is
going to help you. Ubuntu has all most 3% market share in desktop,
and most of the cloud infrastructure and hosting services run in this operating
system. Most of the professional developers are using this operating system.
Basics
Ubuntu Commands for Beginners:
The easiest
way to launch terminal is to use keyboard shortcut CTRL
+ ALT + T. If this is not working you can search terminal in search bar.
Now let’s discuss about 10 most used
ubuntu commands.
1. 1. ls – This is a list command. This
command show list of all files and folders in the current directory you are
working. You can also see the list of files and folders of other directories.
2. 2. pwd- The full form of the pwd id
“Print Work Directory”. This command show you the directory path in which you
are working.
3. 3. cd- Cd stands for “Change Directory”.
Using this command you can switch the directory you want to work.
cd / - It takes you to the root directory.
cd <directory_name> - It takes you to that directory you want to work.
cd ..
– It takes you up one directory level.
4. 4. cp – This command allows you to copy
a file.
5. 5. mv – This command allows you to move
a file from one directory to another directory.
6. 6. rm – This command remove the
specified file and directories. If you remove file using this way then it’s
very difficult to recover the files.
rm <file_name> - It delete a file.
rm -r <directory_name>/ - If you want to delete an empty
directory.
7. 7. mkdir – To create folders or
directory you can use this command.
mkdir <directory_name>/ - Using this command you can create
new directory.
8. 8. history – This command show all the
previous commands you use up to certain limits.
9. 9. echo – This command display the text you
written in the terminal after the echo command. You have to write the text with
in the double quote.
echo “Hello World!” – This command show Hello World! In the terminal.
10. 10. whoami – This command is display the
current working username.
Summery
All the
given commands help your learning a little bit. These Ubuntu commands are
applicable for Ubuntu and also in Linux. This is not a full tutorial for the
Ubuntu command. This tutorial was to introduce you to Ubuntu commands that will
start you off. There are lots of Ubuntu commands. If you have any command you can comment below.


Comments
Post a Comment