Q.6:当用户登录时,默认情况下哪些文件会被调用作为用户配置?
答:在用户的目录下‘.profile’和‘.bashrc’会默认地被调用作为用户配置。
-
[root@tecmint ~]# ls -al -rw-r--r--. 1 tecmint tecmint 176 May 11 2012 .bash_profile -rw-r--r--. 1 tecmint tecmint 124 May 11 2012 .bashrc
Q.7:‘resolve.conf’文件是什么的配置文件?
答:‘/etc/resolve.conf’ 是 DNS 客户端的配置文件。
-
[root@tecmint ~]# cat /etc/resolv.conf nameserver 172.16.16.94
Q.8:哪一条命令是用来创建一个文件的软链接的?
- ln
- ln -s
- link
- link -soft
- 以上都不是
答:在 Linux 环境下,‘ls -s’是被用来创建一个文件的软链接的。
-
[root@tecmint ~]# ln -s /etc/httpd/conf/httpd.conf httpd.original.conf
Q.9:在Linux下,‘pwd’命令是‘passwd’命令的别名吗?
答:不是!默认情况下‘pwd’命令不是‘passwd’命令的别名。‘pwd’是‘print working directory’(显示工作目录)的缩写,也就是输出当前的工作目录,而‘passwd’在 Linux 中是被用来更改用户的帐号密码。
-
[root@tecmint ~]# pwd /home/tecmint [root@tecmint ~]# passwd Changing password for user root. New password: Retype new password:
Q.10:在 Linux 中,你会怎样检测 pci 设备的厂商和版本。
答:我们用的 Linux 命令是‘lspci’。
-
[root@tecmint ~]# lspci 00:00.0 Host bridge: Intel Corporation 5000P Chipset Memory Controller Hub (rev b1) 00:02.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x8 Port 2-3 (rev b1) 00:04.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x8 Port 4-5 (rev b1) 00:06.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x8 Port 6-7 (rev b1) 00:08.0 System peripheral: Intel Corporation 5000 Series Chipset DMA Engine (rev b1) ...
现在就到这里。我希望以上的问题也许对你很有用。在下星期我会再想出一些新的问题。到时请保持好的健康,继续关注我们并且与 Tecmint 保持联系喔!
