Lesson 1 – How to work with terminal

This Page for the new Linux Users…
Basically we know , In the Linux OS we use commands in terminal to do functions of the Operating systems .

How to open the terminal

Menu->Terminal

1.) Create a Folder(Directory)

Type in Terminal

 mkdir newfolder 

n1
2) Check the created folder
Type the “ls” command to show the files and folders in current directory

n2

See the created folder in current directory

Screenshot from 2013-05-27 10:09:24

3) Then go into “newfolder”

 cd newfolder 

Screenshot from 2013-05-27 10:09:49

You are now in “newfolder”

Screenshot from 2013-05-27 10:10:05

4) Create a text file  (“test.txt”) in “newfolder”

 touch test.txt  

blogfile1

5) Check the created file
Type the “ls” command to show the files and folders in current directory

blogfile2ff

See the created file in current directory

blogfile2

6) Edit the “test.txt” file using the Terminal

 vim test.txt  

new1

Then you can see the terminal as below

new2

Then you have to press key “i” in the keybord to insert the text into “test.txt” file , now you can insert the text as below .

new2,3

After you insert the text, you have to follow 2 steps to save the file..

i.) Press key “Esc”
ii) Pres “:”(colon) and key “w” with the key “q”  in the keyboard as below…

new3

2 thoughts on “Lesson 1 – How to work with terminal”

Leave a Comment