LPIC-1 Linux Administrator

Shell Environment and Shell Scripts

12 free questions here, all 60 in the app

Easy 20 8 of them here Medium 20 2 of them here Hard 20 2 of them here

Easy

8 of 20 questions

Shell environment

  1. Which system-wide file does bash read first as a login shell?
  2. Which file in the home directory does an interactive bash read that is not a login shell?
  3. When does bash run the file ~/.bash_logout?
  4. A user has changed ~/.bashrc. How does the change take effect immediately in the running shell?
  5. Which notation is equivalent to source file.sh in bash?
  6. Which command, without arguments, shows all shell variables including functions?
  7. How do you add /opt/tools/bin to PATH without losing the existing entries?
  8. How do you create the alias ll for ls -l in bash?

Practise all 20 Easy questions in the app →

Medium

2 of 20 questions

Shell environment

  1. The home directory contains ~/.bash_profile and ~/.profile. Which of them does a login shell read?
  2. Which system-wide file does bash read on Debian and Ubuntu for every interactive shell?

Practise all 20 Medium questions in the app →

Hard

2 of 20 questions

Shell environment

  1. A user logs in via ssh. The home directory contains only ~/.profile and ~/.bashrc. Which files does bash read on its own, without being included by other files? (2 correct answers)
  2. A script runs non-interactively, for example from cron with bash /opt/job.sh. Which startup file does bash read?

Practise all 20 Hard questions in the app →

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications