User manual

1
Linux Commands – Red Hat Specific
Windows Linux
General Commands
dir
dir /ad
attrib –h
sorting
ls
ls filename or file*
ls directory or dir*
ls –l - Directory listing with long filenames, owner, and permissions
ls –ld - Show only the directories matching the search
ls – R - Show subdirectories also ( just like dir /s )
ls –al
ls –Sharl – sort by size, all files, including hidden
ls –lart – sort by date, reverse order (newest @ the bottom of list)
-S - sorts by size, largest first
-r - reverses any sort command, i.e. ls –rS sorts smallest first
-t - sorts by modification time, recent first
-u - sort by last accessed time
-x - sort by file extension
Remember – Linux is case sensitive, so if you’re looking for a file beginning
with Vol, type ls Vol*
Colors:
Blue = directory
Green = script
Grey = file
dir filename* /s | more
find –depth –iname “filename*” | less - this will find anything starting
with filename, with the –iname switch allowing it to be case insensitive, and
will pipe the results to the less screen so you can page through the results
using [Page Up] and [Page Down] keys. Pretty cool!
Press Q to quit
attrib chmod
md mkdir
rd rmdir
del
rm –i (without the –i, rm will not ask for confirmation)
deltree rm –rf *
copy
cp –i (without the –i, cp will not prompt for destructive actions like file
replacement - if the file exists, it is overwritten)
How to copy all files from a CD and then change the files to read/write
mount /dev/cdrom /mnt/cdrom
mkdir /root/snortinstall
cp –r -v /mnt/cdrom/* /root/snortinstall
cd /root/snortinstall
chmod –R +wr /root/snortinstall/*
umount /mnt/cdrom

Summary of content (60 pages)