Manually Partitioning Drives /boot hda1 22mb 22mb native / hda5 800mb 800mb native hda6 32mb 36mb swap /home hda7 1mb 6002mb native (grow to size) Installing an RPM rpm -Uvh blahblah.rpm Uninstalling an RPM rpm -ev blahblah View list of installed packages rpm -qa | grep View Installation of RPM rpm -q -l samba (proftpd-core) Build RPM from SRC RPM rpm --rebuild --target i386 nameofsrc.rpm look in /usr/src/redhat/RPMS/ View contents of a file less Search contents of file for a string and sub directories grep -r searchstring . View who is online w or who View who is online FTP Server ftpwho Send broadcast message wall View what is running netstat -a Kill a locked program killall -9 netscape-communicator Kill Xwindows killall -9 gnome-session (kill all x and gnome things but xfs) View running programs ps aux | more View IP /sbin/ifconfig View if someone has done (su) session less /var/log/messages (or watch it live by:) tail -f /var/log/messages tail = show me the last part of the file -f = follow the file Rename file mv Move file mv Add a user adduser adduser -s Add a group groupadd /etc/group and /etc/passwd username:password:userid:groupid:full name:home:shell Configuring X windows Xconfigurator Hard Drive Space df Show RAM free Search find . -name '**' Remove Directory rm -rf Using .tar.gz .tgz tar -xzvf Using .tar.bz2 tar -xjvf Sound Configuration sndconfig Serial Mouse Problems (gpm) general purpose mouse service gpm stop comment out of /etc/init.d Change Date date --set 'Mon Nov 18 10:15:30 EDT 2002' Symlink ln -s test.php test.phps LInux Version /etc/issue - RH 7.2 uname -a for kernel version Disallow Root Access via SSH Edit /etc/ssh/sshd_config set "PermitRootLogin no" or "PermitRootLogin without-password" to use pubkey authentication Remote Shutdown/Reboot a Windows machine net rpc shutdown -r -f -S HOSTNAME.EXAMPLE.COM -U Administrator -w for WORKGROUP, I believe -r for reboot and -f for force Make ISO from CD/DVD dd if=/dev/cdrom of=/path/to/iso Modprobe notes: modprobe -r or rmmod both will work to remove a module. > /dev/null makes anything going to STDOUT disappear 2>&1 redirects STDERR to STDOUT Loopmount an ISO mount -o loop foo.iso /mnt/path