web analytics

Archive

Posts Tagged ‘Linux’

Linux find Commands

November 20th, 2009 admin No comments

Here are some useful commands on SecurePlatform to find specific files. They are generic across linux so they are not limited to just SPLAT.

find / -size +10000k (Find any file larger than 10000K)

find $FWDIR -name ‘*.elg’ -size -500k (Find *.elg files smaller than 500k)

find /home/david -mtime -2 -name ‘*.c’ (Find files modified less than 2 days ago)

find /home/david -mmin -10 -name ‘*.c’ (Find files modified less than 10 mins ago)

find $FWDIR -name *.C -exec grep “pattern” ‘{}’ /dev/null ; -print
(Find ”pattern” in *.C files under $FWDIR)

du –k | sort –nr | head -20
This will display the size find / -size +10000k (Find any file larger than 10000K)

find $FWDIR -name ‘*.elg’ -size -500k (Find *.elg files smaller than 500k)

find /home/david -mtime -2 -name ‘*.c’ (Find files modified less than 2 days ago)

find /home/david -mmin -10 -name ‘*.c’ (Find files modified less than 10 mins ago)

find $FWDIR -name *.C -exec grep “pattern” ‘{}’ /dev/null ; -print
(Find ”pattern” in *.C files under $FWDIR)

du –k | sort –nr | head -20
This will display the size of all folders beneath on the system, sort them in numerical order and display the 20 largest entries. ”/” will show all directories on all filesystems. ”$FWDIR” will only show directories therein.

The man page contains more information and there are several very good online tutorials for find available.of all folders beneath on the system, sort them in numerical order and display the
20 largest entries. ”/” will show all directories on all filesystems. ”$FWDIR” will only show directories therein.

VN:F [1.9.3_1094]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)

How to mount usb drive on Splat

November 20th, 2009 admin No comments

The easy way to mount a USB drive on SPLAT

modprobe usb-storage Load the module for usb mass storage (once per re-boot):

(Plug in the USB key)

dmesg | more Look in dmesg for the device node to mount from. Likely to be SDB1 or SDD1)

mount -t vfat /dev/sdb1 /mnt/usb

Mount the volume (/dev/whatever designation from above)
(Copy files to or from /mnt/usb)

umount /mnt/usb Unmount when finished

VN:F [1.9.3_1094]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)

Fedora 12 Countdown

November 16th, 2009 admin No comments

VN:F [1.9.3_1094]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)
Categories: NSS Tags: ,