Mount Windows Shares
mount -t smbfs -o username=will,password=password // /home/will/music

Join Domain
smbpasswd -U will -j aghealth123

To lookup DNS info use dig
dig @ NS
dig soa
dig a

Directory Size
du -sh
du -sk
du -m
du -k
du -b
du -cm
du -cmh
man du
wc -l

lists all IP addresses for that server
netstat -rn

df -k = list systems alloc. %
ls -l = list file size, & date

find / -name core -print = finds all core files
find / -xdev -size +1000000c -print = finds files more than 1 Meg in size

core = deletable temp files ( or cat /dev/null >(filname) )
/var/adm/messages = deletable message. files in this dir
/var/adm/last.log = reset back to zero for more room
/var/cron/log = was at 3 Meg lastime file system was full reset by ( cat /dev/null >log )
/var/adm/wtmp = reset back to zero by ( cat /dev/null >wtmp )
/var/adm/wtmpx = reset back to zero by ( cat /dev/null >wtmpx )

fsck = file system check( cannot be in openwindows )

Tape back up
pwd = shows where you are at
from /export/home/punchline/bin
tar cvf /dev/rst4 . = will back up fms

To setup linux routes (Cubes)
route add -net gw netmask

To UnTar
tar -zxvf ***********.tar.gz

To see which mail servers you have
which ipop3d
which imap

Change Owner of file or files
chown -Rv root *

Change group of file or files
chown -Rv .users *

See what ports are open………….
netstat –inet -an

Remove ^M in Linux
sed ‘s/.$//’ infile.txt > outfile.txt

grep -r ‘pattern’ /var/www/html

Determine kernel version
uname -a

Determine Disk Space Usage
df -h

Determine where that useage is…
du -h –max-depth=0 /home

Auto Start
cd /etc/init.d/rc.5
ls -s ../init.d/mysqld ./s99mysqld

Global replace text in vi