» Linux » Examen sur Linux » Examen 202 : Networking Administration » Section 1 » Question 2/20
2.What file contains the default environment variables when using the bash shell?

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

Explanation: The file /etc/profile contains shell commands that are executed at login time for any user whose entry in /etc/passwd has a shell specified in the shell field whose name ends in sh.

Reference: http://docsrv.caldera.com/cgi-bin/man/man?profile+4

Incorrect Answers
A: The ~/.profile is the profile file stored in each user’s home directory. This file contains settings that apply to that user only.
B: The default environment variables are stored in the /etc/profile file, not the /bash file.
D: The default environment variables are stored in the /etc/profile file, not the ~/bash file.


« Question 1 Question 3 »