Linux Commands
Linux Commands
less
strings
sh_history
echo $HISTFILESIZE
Figo:510
Pfaff:511
Harry:516
Hermione:517
tr
s
tr
-s
-xjvf
######################Vi Commadn Editor######################
getting to command mode:
Esc
>> set vi(m) in command mode.
a >>start typing after the current character
A >>start typing at the end of the current line
i >>start typing before the current character
I >>start typing at the start of the current line
o >>start typing on a new line after the current line
O >>start typing on a new line before the current line
Replace and delete
x delete the character below the cursor
X delete the character before the cursor
r replace the character below the cursor
p paste after the cursor (here the last deleted character)
xp switch two characters
Undo and repeat
u undo the last action
. repeat the last action
Cut, copy and paste a line
dd cut the current line
yy (yank yank) copy the current line
p paste after the current line
P paste before the current line
3dd cut three lines
4yy copy four lines
Start and
0 jump to
^ jump to
$ jump to
d0 delete
d$ delete
end of line
start of current line
start of current line
end of current line
until start of line
until end of line