To Keep commonly used unix commands ..
1.extract-tar-files-to-stdout
tar -xOf freedb-complete-20040908.tar|grep DTITLE|less
2.To Send mail with attachment
Only mail:
mailx -s[Subject] to_address [space seperated] -f[from address]
Then type in messages and when finished - enter EOF - [Ctrl+d]
For attachments:
You can encode the source file which can piped to mailx
uuencode sourceFile outputFile
E.g
uuencode attach.txt attach.txt| mailx -s "mail from unix" e026784@mc.com
How to get Host name/ machine implementation
uname -a # to get host name,implementation, release etc
hostname # equivalent to uname -n; just gives the hostname
Sunday, October 14, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment