Basic Ubuntu command tutorial for beginners

Today my topic is “Basic ubuntu command for beginners”
How to access Terminal
Terminal will be under Applications menu -> Accessories -> Terminal Or you can access it with shortcut key ctrl+alt+T
To access the Home Folder which you can find under places in the first place in Graphical User Interface:
Type the ls which will bring up the files or folders in home folder as:
Here the home folder is accessed through terminal using the command ls which is the same as you open the home folder from Places. You can see the different colour combination. The blue colour folders represents the directory and the plain whiterepresent a normal file. There also can be another colour defining the respective characteristic of the folder.
The first information that you see in the command line is your username which is sachit in my case and @ubuntu is the name of the computer. After that information The ~ sign denotes the home which is same location as you go in the place>>>home. $sign is a symbol for regular user that means you are login as regular user not the root user. The full information is like this in my ubuntu: sachit@ubuntu:~$(which you can see screenshot below)
To copy:
Let’s learn how to copy though the terminal. I am going to make the copy of the file words.txt which I am going to save as words-new.txt.
As, you can see in the picture above the backup of the text file words.txt is created in the Home Folder using the command cp.
To Rename:
To rename, it’s like same as copying the files. I am going to rename the file words-new.txt as rename.txt.
As, you can see in the picture the files words-new.txt is renamed as rename.txt using the command mv.
Creating a new folder:
Let me create a folder name: ubuntu_rules which I am going to do as:
Folder:ubuntu_rules is create using the command mkdir.
Moving the files:
Now, I want to move all the text files in the Home Folder that I created to a newly created folder ubuntu_rules.
Here the “*” stands for all which means I am moving the all text files into the folder
To view the text file:
Go the the specific folder where the text files are located using the command cd and typeless filename.txt. I am going to open the text file rename.txt.
As, I enter this command text file rename is executed as:
You can also use the tab completion which means if there is a file name text and you want to access it then, type the word te and press tab which will build rest of the command.
This much on this tutorial. I will be bringing up how to launch the applications, view the system logs and others much more linux commands in the upcoming tutorials.
ubuntu_folder which is nicely done.
Changing the directory:
Now, I want to make sure that the all text files are copied properly in the folder ubuntu_rules. For this, you have to get into the ubuntu_rules directory and see the files in it.
To get back into the Home Folder you can either type cd ~ or cd ..
To view the text file:
Go the the specific folder where the text files are located using the command cd and typeless filename.txt. I am going to open the text file rename.txt.
As, I enter this command text file rename is executed as:
You can also use the tab completion which means if there is a file name text and you want to access it then, type the word te and press tab which will build rest of the command.

Tags: Basic Ubuntu command tutorial for beginners,How do I open aterminal in Ubuntu?,What is the use of terminal in Ubuntu?,How do I navigate to a folder in Terminal?
How do I change my command prompt directory?,ubuntu tutorial command line,ubuntu command line list

Leave a Reply

Your email address will not be published. Required fields are marked *