Kishinchand Chellaram College, Mumbai - 20.: FY / SY / TY B.Sc. (I.T.) Semester
Kishinchand Chellaram College, Mumbai - 20.: FY / SY / TY B.Sc. (I.T.) Semester
Practical 1
Introduction to Basic Linux Commands and Editors
2. cat filename
3. touch
It copies the content of file 1 to file 2 .it overwrites the content of file
It copies the content of file 1 to file 3 .it doesn’t overwrite the content of file.
6. cp file1 file 3
7. rm –i file3
8. rm –rf file2
9. ls –a
10. ls f*
11. ls ?4
It displays the list of file with any character as first character and ‘4’ following it
12. ls [ahf]*
13. ls –l
It removes directory
The VI Editor
When we type the command ‘vi’ on the Terminal and press enter, it will go to the vi editor mode.
In the VI Editor, when you press I, it will take you to ‘Insert Mode’.
When you want to save the contents written in VI editor, press ‘Esc’.
After pressing Esc button, to exit the Editor, press ‘:wq’ (Colon then press w and q)
Kishinchand Chellaram College, Mumbai – 20.
FY / SY / TY B.Sc. (I.T.) Semester_______