Unix Commands
Nice
I think what you basically want to do is '/usr/bin/nice -n 19 command'.
nice operates on a command, whereas renice operates on a process id that
is already running.
The syntax for tcsh is 'nice +19 command'
Tar
Tar has about a million options which makes it a powerful tool. Here are
my most common uses:
packing up a directory:
cd dir
'tar cvf ~/tmp/newfile.tar .'
(the . refers to current dir, c means create
v means verbose, f means what file to make the archive in)
To list the contents of a tar file:
'tar tvf file.tar'
To unpack a tar file:
'tar xvf file.tar' (x is for extract)
Use the 'gunzip' command, which will replace the compressed file with
an uncompressed version with teh .gz suffix removed, i.e.:
gunzip filename.gz
will replace "filename.gz" with "filename", the uncompressed version.
If you want to keep the compressed version, and run the uncompressed one
through a pipe to e.g. untar it or read it or give it another name, you
can use redirection, e.g.
gunzip < filename.gz | tar xvf -
or
gunzip < filename.gz | more
or
gunzip < filename.gz > filename
ps (on Solaris)
/bin/ps -fu simon
shows all processes being run by simon
f = full listing (?)
u = user
Mounting a floppy on Unix
mount /floppy
You can then copy files to /floppy.
When you are done, type 'umount /floppy'
Who Am I?
id = who you are!
Where Am I Going?
To the top baby, to the top!
zgrep
i.e.
zgrep simon httpd-xfer.*
Redirecting man pages to a text file
setenv TERM dumb
man bash >> bash.txt
Deleting huge files
find . -type f | xargs rm