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 (D)</p> Signup and view all the answers

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

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

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

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

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

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

Which file may not exist in recent distributions?

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

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

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

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

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

More Like This

Linux Knowledge Quiz
5 questions

Linux Knowledge Quiz

ImaginativeLavender avatar
ImaginativeLavender
Linux Shell Flashcards
39 questions

Linux Shell Flashcards

MarvelousPascal avatar
MarvelousPascal
Use Quizgecko on...
Browser
Browser