Capitolul II Using Essential Tools Utilizarea Instrumentelor Esențiale
Capitolul II Using Essential Tools Utilizarea Instrumentelor Esențiale
Vi editor - #vi i, a
o
Switch from command to input at (i) or after (a)
Open a new line and go to input mode
:wq Write current file and quit
:q! Quit the file (! - force to quit)
:w filename Write current file to new file
Dd Delete current liine
Yy Copy current line
P Paste current selection
V Visual mode which allow to select text block
U Undo last command
Ctrl + R Redo last undo
Gg Go to first line in doc
G Go to last line in doc
/text Search for text from cursor position forward
?text Search for text from cursor position backward
^ Go to first position in current line
$ Go to last position in current line
!ls Add the output of ls i the current file
:%s/old/ne Replace all ocurences of old with new
w/g
HELP
# <command> --help
#man <command> - arata manual despre o comanda
#man -k = #apropos - arata date despre o comanda
#man -k partition = #apropos partition - se arata toate comenzile ce contin info
despre partition