An administrator created a .env file in a user‘s home directory to configure a number of custom environment variables for a local application. However, after the user logs out and then logs back into the system, the custom variables are not being set.What

题目

An administrator created a .env file in a user‘s home directory to configure a number of custom environment variables for a local application. However, after the user logs out and then logs back into the system, the custom variables are not being set.What is the most likely reason that the custom .env file is being ignored?()

A.A shell other than ksh is being used by the user.

B.The line ‘export ENV=$HOME/.env‘ is missing from /etc/profile.

C.The line ‘export ENV=$HOME/.env‘ is missing from the user‘s .profile.

D.The env_profile attribute is not defined for the user within /etc/security/user.


相似考题
参考答案和解析
参考答案:C
更多“An administrator created a .env file in a user‘s home directory to configure a number of c ”相关问题
  • 第1题:

    Abankinguserwiththeuseridof’joe’isunabletorshfromSYSTEMAtoSYSTEMBwithouthavingtoretypetheirpassword,buttheycanrshfromSYSTEMBtoSYSTEMA.Nootherusersareexperiencingthesameissue.Bothsystemshavea/home/joe/.rhostsfilethatcontaintheproperreferencestotheotherhost.The/home/joe/.rhostsfilesonbothSYSTEMAandSYSTEMBareownedbyuserid’joe’.Whichofthefollowingisthemostlikelycauseofthisproblem()

    A.User’joe’isspecifiedinthe/etc/nologinonSYSTEMb.

    B.User’joe’isspecifiedinthe/etc/nologinonSYSTEMa.

    C.Thefilepermissionsonthe/home/joe/.rhostsfileonSYSTEMAareincorrect.

    D.Thefilepermissionsonthe/home/joe/.rhostsfileonSYSTEMBareincorrect.


    参考答案:D

  • 第2题:

    当前命令提示符为[user1@localhost root]$,使用哪些用命令一定可以切换到目录/home/user1。()

    A.cd /home/user1

    B.cd ~

    C.cd ../home/user1

    D.cd -


    cd /home/user1;cd ~;cd ../home/user1

  • 第3题:

    16、当前命令提示符为[user1@localhost root]$,使用哪些用命令一定可以切换到目录/home/user1。()

    A.cd /home/user1

    B.cd ~

    C.cd ../home/user1

    D.cd -


    cd /home/user1;cd ~;cd . ./home/userl

  • 第4题:

    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

  • 第5题:

    【单选题】创建一个新用户user01,设置其主目录为/home/user01。

    A.#useradd –s /home/user01 -m user01

    B.#useradd –d /home/user01 user01

    C.#useradd –h /home/user01 -m user01

    D.#useradd –c /home/user01 -m user01


    useradd