Linux Startup Files and Login Order Quiz
10 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which file is read and evaluated when you first login to Linux?

  • ~/.bash_login
  • ~/.profile
  • ~/.bash_profile
  • /etc/profile (correct)
  • Which file is read and evaluated every time a new command line shell initiates or another program is launched from a terminal window?

  • ~/.bash_profile
  • ~/.profile
  • ~/.bashrc (correct)
  • ~/.bash_login
  • Which file is read and evaluated after /etc/profile when you first login to Linux?

  • ~/.profile
  • ~/.bash_profile
  • ~/.bash_login (correct)
  • /etc/bashrc
  • Which file is ignored if ~/.bash_profile is found during the login process?

    <p>~/.bash_login</p> Signup and view all the answers

    Which file is included from within one of the three user-owned startup files?

    <p>~/.bashrc</p> Signup and view all the answers

    Which file is not read and evaluated along with the login shell?

    <p>~/.bashrc</p> Signup and view all the answers

    Which file is read and executed only when the user first logs onto the system?

    <p>~/.profile</p> Signup and view all the answers

    Which file may not exist in recent distributions?

    <p>~/.bash_profile</p> Signup and view all the answers

    Which file is sometimes the only one included in recent distributions?

    <p>~/.bashrc</p> Signup and view all the answers

    Which file is searched first after /etc/profile when you first login to Linux?

    <p>~/.bash_profile</p> Signup and view all the answers

    More Like This

    Linux的目录结构
    31 questions
    Linux Shell Flashcards
    39 questions

    Linux Shell Flashcards

    MarvelousPascal avatar
    MarvelousPascal
    Use Quizgecko on...
    Browser
    Browser