修改了/etc/profile文件,如何生效()。

题目
多选题
修改了/etc/profile文件,如何生效()。
A

source/etc/profile

B

/etc/profile

C

重启机器

D

/opt/profile

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

RedFlagLinux指定域名服务器位置的文件是()。

A.etc/hosts

B.etc/networks

C.etc/rosolv.conf

D./.profile


正确答案:C

第2题:

Anadministratorcreateda.envfileinauser’shomedirectorytoconfigureanumberofcustomenvironmentvariablesforalocalapplication.However,aftertheuserlogsoutandthenlogsbackintothesystem,thecustomvariablesarenotbeingsetWhatisthemostlikelyreasonthatthecustom.envfileisbeingignored?()

A.Ashellotherthankshisbeingusedbytheuser.

B.Theline’exportENV=$HOME/.env’ismissingfrom/etc/profile.

C.Theline’exportENV=$HOME/.env’ismissingfromtheuser’s.profile.

D.Theenv_profileattributeisnotdefinedfortheuserwithin/etc/security/user.


参考答案:C

第3题:

默认情况下,Linux系统中用户登录密码信息存放在____文件中。

A./etc/group

B./etc/userinfo

C./etc/shadow

D./etc/profile


正确答案:C
/etc/shadow文件用于保存Linux系统中用户登录密码信息,当然是使用加密后的形式。shadow文件仅对root用户可读,保证了用户口令的安全性。

第4题:

在一个终端中修改了环境变量配置文件.bash_profile后,要在此终端中让修改的文件立即生效,可用哪些方法()。

  • A、cat.bash_profile
  • B、..bash_profile
  • C、morE.bash_profile
  • D、sourcE.bash_profile

正确答案:B,D

第5题:

作为一个管理员,你希望在每一个新用户的目录下放一个文件.bashrc,那么你应该在哪个目录下放这个文件,以便于新用户创建主目录时自动将这个文件复制到自己的目录下:()。

  • A、/etc/skel/
  • B、/etc/default/
  • C、/etc/defaults/
  • D、/etc/profile.d/

正确答案:A

第6题:

作为一个管理员,你希望在每一个新用户的目录下放一个文件.bashrc,那么你应该在哪个目录下放这个文件,以便于新用户创建主目录时自动将这个文件复制到自己的目录下。

A./etc/skel/

B./etc/default/

C./etc/defaults/

D./etc/profile.d/


正确答案:A

第7题:

用户的缺省Shell为Csh,此用户登录时,其环境脚本的执行顺序为:()。

A.etc/profile->$HOME/.cshrc->$HOME/.login

B.$HOME/.login->$HOME/.cshrc->etc/profile

C.etc/profile->$HOME/.login->$HOME/..cshrc

D.$HOME/.cshrc->etc/profile->$HOME/.login


参考答案:A

第8题:

Linux系统里,想要设置系统自动注销帐号,需要编辑()文件,确保其中TMOUT参数设置了合适的值。

A./etc/login.defs

B./etc/profile

C./boot/login.defs

D./boot/profile


参考答案:B

第9题:

UNIX操作系统的帐号管理和权限分配主要是通过哪三个文件管理来实现()。

  • A、/etc/passwd,/etc/profile和/etc/group
  • B、/etc/group,/etc/profile和/etc/shadow
  • C、/etc/group,/etc/shadow和/etc/passwd

正确答案:C

第10题:

用户修改了/etc/inetd.conf配置文件,()可以使修改后的inetd.conf生效。

  • A、startsrc-ginetd
  • B、startsrc-sinetd
  • C、refresh-sinetd
  • D、inetd-f/etc/inetconf

正确答案:C

更多相关问题