# mkdir /mnt/test
# mount /dev/cdrom /mnt/test [to mount cdrom with the test directory]
# cd /mnt/test
# ls
[ # vi /etc/fstab then write /dev/cdrom /mnt/test iso9660 (for automount) ]
# mount /dev/sda1 [USB]
# mount /dev/fdo [floppy]
# mke2fs -j /dev/hda5 [to format D drive]
# mount /dev/hda5 [ to mount with D drive]
# rpm -ivh package_name [to install package]
# rpm -uvh package_name [to update package]
# rpm -e package_name [to uninstall package]
*RPM-> Redhat Package management.
# date [to show date]
# date monthdayhourminuteyear [to set date]
# at 9:30 [to schudule a task]
[# cp -r /root/a1 /home/a1 (this is a schedule)]
# vi f1
* * * * * command
minute hour day of month month of year day of week
00 10 * * * reboot
*To reboot the system at 10 am everyday.
No comments:
Post a Comment