Linux Notes
RPMs
Mount RPM CD: mount nashostname:/vol/NixVol/CDimages /mnt
cd /mnt/os/5.1_32/Server
cd /mnt/os/5.2_32/Server
Get Server Info
more /etc/redhat-release
Red Hat Enterprise Linux Server release 5.1 (Tikanga)
uname -a
Linux serverhostname 2.6.18-53.el5PAE #1 SMP Wed Oct 10
16:48:18 EDT 2007 i686 i686 i386 GNU/Linux
32 bit
x86_x64 = 64 bit
i368 = 32 bit
Mount NAS
Add entry to /etc/fstab on IPADDRESS
11.224.22.52:/vol/FtpVol/MountName /var/www/html nfs defaults
run
mount /var/www/html
addiing it to the fstab will assure that it will be reloaded the next time the box is rebooted
Sym Link
ln -s /original/file /new/link
Find whats taking up space
du -ks -h *
Reboot and Shutdown Command
Reboot
shutdown -r 0
Shutdown
halt -p
Find things
Files
locate somefile
updatedb – this will update the locate db
ls -l | grep somestring
text strings
cat somefile | grep somestring