Thursday, February 09, 2006

linux commands

# mount and unmount cdrom
as root, eject /dev/hdc will eject the cd-rom
mount /dev/hdc will mount the cd-rom

# how to automate sftp sessions without having to type in the password
http://www.atmos.albany.edu/facstaff/rmctc/ssh2/

# string replacement using comand line stream editor
sed -e 's/35934/39690/g' index.html >index1.html

#command line web browsing and retrivel
-r for recursive, -x for retain directory structure
wget -r -x http://www.google.com

# vncserver setup
vncserver :1 geometry 1280x1024

No comments: