What is true about the file .profile in a user’s home directory?

What is true about the file .profile in a user’s home directory?
A. It must be executable.
B. It must call the binary of the login shell.
C. It must use a valid shell script syntax.
D. It must start with a shebang.
E. It must be readable for its owner only.

Download Printable PDF. VALID exam to help you PASS.

3 thoughts on “What is true about the file .profile in a user’s home directory?

  1. E is incorrect.

    # ~/.profile: executed by the command interpreter for login shells.
    # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
    # exists.
    # see /usr/share/doc/bash/examples/startup-files for examples.
    # the files are located in the bash-doc package.

    # the default umask is set in /etc/profile; for setting the umask
    # for ssh logins, install and configure the libpam-umask package.
    #umask 022

  2. I think the correct answer is C.

    When opening Terminal in BASH on Ubuntu Linux, the program automatically searches for a PROFILE file and executes it line by line as a shell script.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.