Welcome to the first in what I hope will be a series of quick tips and tricks collections. These collections will consist of one and two line commands that don’t warrant entire stand-alone tips to be written for them.
These tips are in no particular order….
Watch a log file as its appended to
tail -f logfile
Redirect a man page to a file
man whatever | col -b > whatever.out
Allow a command to continue execution after logout
nohup mycommand &
Extract tarball when tar has no z option
gzip -dc mytarball.tar.gz | tar xvf -
Display one particular line from a file
set linenumber = 8 # tcsh
linenumber=8 # ksh
sed -n "${linenumber}p" filename
Display current runlevel
who -r
Split lines of text into n-char lines
echo... ... read more >>> linuxguruz.de.wordpress.com