RHCE131 Lecture 7

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

 

  1. 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 timestamps
    The inode of a file also contains the file's name
    The command ls -i will show a mapping of file name to inode number
    Filesystems must be mounted before access
  2. Which of the following client-side tools are useful for confirming that an NFS server is properly configured (mark all correct answers)?
    rpcinfo
    service nfs status
    exportfs -r
    showmount
    nfsprobe
    None of the above
  3. 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.
  4. 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 .
  5. True or false: Filesystems mounted on demand using the automounter remain mounted forever once accessed.
    True
    False
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值