Be able to hunt through the history using up/down keys (or J,K)
in the shell:
set -o vi
Search files for a given word:
find ./ -type f | xargs grep -l “ac.jpg”
where ac.jpg is the string being searched for.
or
find ./ -type f | xargs grep -l “\.co\.uk”
to find .co.uk in all pl files:
find ./*.pl -type f| xargs grep -l “\.co\.uk”
VI – line numbers and deletion:
:set nu
delete lines
:17,40d
Will delete lines 17 thru 40 in vi
Search and replace, for example, lines with ^M at the end -
:%s/<ctrl+v><ctrl+m>//
Move to the end of a line
$
Setting up the shell to handle the backspace key:
stty erase <bksp>
Better to configure putty to do this for you. While in putty, configure X11 forwarding as it makes life easier working with Exceed and other X-Windowing products!
Uncompressing a bz2 file
If it is a tar then use the tar command as in the following:
tar -xvjf blender-2.45-linux-glibc236-py24-i386.tar.bz2