Lecture 7
find / -user root /( -perm -4000 -o -perm -2000 /) find firm
find / -perm +6000 -user root >root.lst
find / -perm -222 >world.lst
find /etc/ -ctime -720 ? wrong
common:
watch demesg
cp install.log /media/disk -2/
cd /media/disk -2/
umount /dev/sdb1
mount /dev/sdb1 /mnt
mkdir /myusb
mount -t vfat /dev/sdb1 /myusb
cd /myusb
df -h
umount /dev/sdb1
df -h
NFS : network file share using NFS
service nfs restart
chkconfig
showmount -e 192.168.0.254
mkdir /nfs
mount 192.168.0.254:/var/ftp/pub /nfs/
df -h
cd nfs
umount /nfs
现在有内核更新包用NFS服务 IP 192.268.0.254 共享 共享路径为 /var/ftp/pub/errata
安装并启用新内核
rpm -ivh kernel-2.6.18-164.1.gls.el5.i686.rpm or yum -y install kernel-2.6.18-164.1.gls.el5.i686.rpm
vim /etc/fstab
192.168.0.254:/var/ftp/pub/ /nfs nfs default 0 0
df -h
cd nat
cd 192.168.0.254
/usr/sbin/showmount -e 192.168.0.254
cd misc
cd cd
ls
进入CD光盘目录!
vim /etc/auto.master
service autofs restart
- Which of the following is true about Linux filesystems (mark all correct answers)?
The default filesystem of Red Hat Enterprise Linux is
ext3
The inode of a file contains metadata like the permissions, ownership, size and timestampsThe inode of a file also contains the file's nameThe command ls -i will show a mapping of file name to inode numberFilesystems must be mounted before access - Which of the following client-side tools are useful for confirming that an NFS server is properly configured (mark all correct answers)?
rpcinfoservice nfs statusexportfs -rshowmountnfsprobeNone of the above
- Which of the following statements are true (mark all correct answers)?
To automatically mount NFS shares at boot time, place an appropriate entry in
/etc/nfstab
.To automatically mount NFS shares at boot time, place an appropriate entry in/etc/fstab
.NFS shares cannot be automatically mounted at boot time.The filesystem type field in the file used to automatically mount shares should specify the type of the underlying filesystem on the remote NFS server (for example, ext3 or vfat).The mountpoint being linked to by automatic mounting at boot time must exist. - Which of the following statements are true (mark all correct answers)?
Neither users nor system administrators need to issue mount commands to access NFS shares configured to work through the automounter.Mounting filesystems on demand using the automounter requires special configuration on both the client and server systems.The main configuration file for the automounter is
/etc/autofs.conf
.The main configuration file for the automounter is/etc/auto.master
. - True or false: Filesystems mounted on demand using the automounter remain mounted forever once accessed.
TrueFalse