RedHat
- Set-up and installation notes.
- Add new yum repo
sudo wget -P /etc/yum.repos.d/ ftp://server1/pub/gls/server1.repo
- Start / Stop a service.
$ sudo /sbin/service httpd stop $ sudo /sbin/chkconfig httpd off OR System->Admin->Services
- YUM
yum localinstall xxxxx.rpm yum clean dbcache / all
- Persistent Kernel Configuration sysctl, add to /proc/sys
sysctl -a sysctl -p << Process sysctl.conf
fdisk & partitions
partprove << reinitializes the kernel's in-memory version of the partition table e2label /dev/sdX MYfsLabel mount LABEL-MYfsLabel /mnt blkid << show all labels tune2fs -o acl,user_xattr /dev/sda2 << set default mount options., check with dumpe2fs
- Files in use
fuser -v /mnt/home << who is using file system fuser -km /mnt/home << kill all actions on a filesystem mount -o remount,rw / mount --bind /something /anotherthing
...