In Linux, what does the PS1 environment variable control?*1 pointa) System passwordb) Shell promptc) Disk spaced) User profile
Question
In Linux, what does the PS1 environment variable control?*1 pointa) System passwordb) Shell promptc) Disk spaced) User profile
Solution
The PS1 environment variable in Linux controls the Shell prompt.
Similar Questions
What is the 'PS2' environment variable used for in Linux?*1 pointa) Secondary shell promptb) User passwordc) Terminal background colord) Display file content
What is the purpose of environment variables in Linux?*1 pointa) Store user passwordsb) Store system configuration settingsc) Execute shell commandsd) Display file content
Which character is used to represent the username in the PS1 prompt string?*1 pointa) %ub) %nc) %hd) %p
Bourne Again Shell (bash), similarly to other UNIX shells utilises environmental variable PS1'' to store prompt string description. Willing to change it, it is enough to replace its value with a new one. The most permanently looking effect can be obtained by performing adequate substitution in start script, which in case of bash is in ~/.bash_profile'' file (~'' stands for the home directory of a user in question).Prompt string can contain sequences like \x'', where x - a character, which during printing of prompt will be interpreted and substituted with specific information, e.g. \t'' - actual time. Description of other standard sequences can be found in man page concerning bash (man bash).Task: Permanently set URL-like prompt of the form:
7.____ command is used by the superuser for changing root’s password.*1 pointa) pdb) passwordc) pswdd) pwd
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.