Slide 1 : LINUX KOLLA SANJEEVA RAO MCA
Slide 2 :
Slide 3 : Basic Commands
Slide 4 : ls Command
ls Command : ls Command
Creation of Files : Creation of Files By using three methods we can create files
cat command
touch command
vi editor
Cat command : Cat command
Touch command : Touch command
Creating Directories : Creating Directories
Navigation of Directories : Navigation of Directories
Navigation of Directories : Navigation of Directories
Navigation of Directories : Navigation of Directories
Removing a File or Directory : Removing a File or Directory
Copying a File or Directory : Copying a File or Directory
Moving / Renaming a File or Directory : Moving / Renaming a File or Directory
Slide 16 :
Editors : Editors Editors are used for inserting or deleting text.
Windows : Notepad
DOS : Edit
Linux/Unix
CLI based : EX , ED , VI
GUI based : Emacs, Gedit, nedit, nano, pico
Modes of VI Editor : Modes of VI Editor There are three modes of operations in VI Editor :
Insert Mode
Command Mode
Execute Mode
Modes of VI Editor : Modes of VI Editor
Slide 20 : i - inserts the text at current cursor position
I - inserts the text at beginning of line
a - appends the text after current cursor position
A - appends the text at end of line
o - inserts a line below current cursor position
O - inserts a line above current cursor position
r - replace a single char at current cursor position How to get into Insert Mode
At Execute Mode : At Execute Mode :q - quit without saving
:q! - quit forcefully without saving
:w - save
:wq - save & quit
:wq! - save & quit forcefully
:x - save & quit
Shift+ZZ - save & quit
:sh - Provides temporary shell
At Execute Mode : At Execute Mode :set number - Setting line numbers
:se nu - Setting line numbers
:set nonumber - Removing line numbers
:se nonu - Removing line numbers
:84 - Press enter goes to line 84
Delete/Copy/Paste/Undo in command mode : Delete/Copy/Paste/Undo in command mode dd - Deletes a line
2dd - Deletes 2 lines
yy - Copy a line
2yy - Copies 2 lines
p - After deleting or copying, by pressing
the deleted or copied contents will
be pasted below the position of cursor.
u - Undo (can undo 1000 times)
Ctrl+r - Redo
G - Moves cursor to last line of file
5G - Moves cursor to 5th line of file
Delete/Copy/Paste/Undo in command mode