Which of the following directories contain all the Alias created by a user, including his login directory? A. /tmp B. /etc C. /usr D. /dev E. None of the above

/tmp
/etc
/usr
/dev E. None of the above

The correct answer is: E. None of the above.

The aliases created by a user are stored in the user’s home directory, in a file called .bash_aliases. This file is a text file that contains a list of aliases, each on a separate line. For example, the following line would create an alias called “ls” that expands to “ls -l”:

alias ls=’ls -l’

When a user types the alias name at the command prompt, the shell will expand the alias to the command that it represents.

The directories /tmp, /etc, /usr, and /dev are all system directories that are used by the operating system. They do not contain any user-specific information.

Exit mobile version