» Linux » Examen sur Linux » Examen 202 : Networking Administration » Section 5 » Question 6/27
6.You have created a subdirectory of your home directory containing your scripts. Since you use the bash shell, what file would you edit to put this directory on your path?

~/.profile
/etc/profile
/etc/bash
~/.bash

Explanation: As a normal login shell, bash 'sources' the system-wide file /etc/profile, where the system environment and path can be set for bash users. The user can overwrite values set in /etc/profile by creating a file ~/.bash_profile, ~/.bash_login or ~/.profile.

Reference: http://www.tldp.org/HOWTO/mini/Path-6.html

Incorrect Answers
B: The /etc/profile file is for system-wide settings, not user specific settings.
C: This is the incorrect file to set the path variable.
D: This is the incorrect file to set the path variable.

« Question 5 Question 7 »