The best that I have found for quickly calculating numerical permissions:
http://www.javascriptkit.com/script/script2/chmodcal.shtml
This is a repository of all of my Linux/Unix writings as well as useful tips and tricks for systems administration, engineering, and programming.
Showing posts with label command line. Show all posts
Showing posts with label command line. Show all posts
Tuesday, August 25, 2009
Wednesday, June 17, 2009
Remove old files
If you don't use logrotate to remove or archive old logs, here is a way to remove old logs using the -ctime directive within the bash command find.
/usr/bin/find /var/log/tomcat -name *.tgz -ctime +15 | xargs rm -rf
/usr/bin/find /var/log/tomcat -name *.tgz -ctime +15 | xargs rm -rf
Tuesday, May 27, 2008
Mount a cdrom from the command line
To mount a cdrom (or DVD) from the command line, do the following:
#mount -t iso9660 -o ro <device> <mountedDirectory>
Example:
# mount -t iso9660 -o ro /dev/cdrom /media/cdrom
Note: make sure that /media/cdrom exists.
#mount -t iso9660 -o ro <device> <mountedDirectory>
Example:
# mount -t iso9660 -o ro /dev/cdrom /media/cdrom
Note: make sure that /media/cdrom exists.
Monday, May 26, 2008
Configure a wireless connection from the command line
Here is how to configure a wireless network interface from the command line in Ubuntu.
http://www.stoltenow.com/archives/2006/12/ubuntu_configur.html
http://www.stoltenow.com/archives/2006/12/ubuntu_configur.html
Subscribe to:
Posts (Atom)