linux基础-misc目录

misc目录

  • 该目录的作用是,可以自动挂在cdrom
  • 直接进入该目录/misc/cd即可访问cdrom内容
  • centos7一般情况下是没有misc文件的,需要安装RPM包
  • 对应包autofs-5.0.7-83.el7.x86_64.rpm

安装misc

  1. 安装相应rpm包
[root@centos7 Packages]$ls | grep auto*fs
autofs-5.0.7-83.el7.x86_64.rpm
libsss_autofs-1.16.0-19.el7.x86_64.rpm
[root@centos7 Packages]$rpm -ivh autofs-5.0.7-83.el7.x86_64.rpm 
warning: autofs-5.0.7-83.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Preparing...                          ################################# [100%]
	package autofs-1:5.0.7-83.el7.x86_64 is already installed
  1. 设置开机启动
[root@centos7 /]$systemctl enable autofs
Created symlink from /etc/systemd/system/multi-user.target.wants/autofs.service to /usr/lib/systemd/system/autofs.service.
  1. 测试
[root@centos7 ~]#cd /misc/cd
[root@centos7 cd]#ls
CentOS_BuildTag  EULA  images    LiveOS    repodata              RPM-GPG-KEY-CentOS-Testing-7
EFI              GPL   isolinux  Packages  RPM-GPG-KEY-CentOS-7  TRANS.TBL
[root@centos7 cd]#ll
total 1640
-rw-rw-r-- 1 root root      14 May  2 19:28 CentOS_BuildTag
drwxr-xr-x 3 root root    2048 May  4 04:34 EFI
-rw-rw-r-- 1 root root     227 Aug 30  2017 EULA
-rw-rw-r-- 1 root root   18009 Dec 10  2015 GPL
drwxr-xr-x 3 root root    2048 May  4 04:34 images
drwxr-xr-x 2 root root    2048 May  4 04:34 isolinux
drwxr-xr-x 2 root root    2048 May  4 04:34 LiveOS
drwxrwxr-x 2 root root 1640448 May  3 22:24 Packages
drwxrwxr-x 2 root root    4096 May  7 20:41 repodata
-rw-rw-r-- 1 root root    1690 Dec 10  2015 RPM-GPG-KEY-CentOS-7
-rw-rw-r-- 1 root root    1690 Dec 10  2015 RPM-GPG-KEY-CentOS-Testing-7
-r--r--r-- 1 root root    2883 May  7 20:53 TRANS.TBL

你可能感兴趣的:(Linux,linux)