手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

Linux 面试基础问题 - 第2部分

[日期:2013-12-13] 来源:Linux中国   作者:Linux [字体:大 中 小]

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 保持联系喔!

linux
相关资讯       Linux面试 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款