Bash Shell Scripting - Shell Prompt Customization
Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Read more
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary purpose of the PS1 variable in bash?
To store the user's home directory
To define the shell prompt appearance
To manage file permissions
To set the default text editor
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which character is commonly used at the end of a shell prompt?
Asterisk (*)
Dollar sign ($)
Hash (#)
Ampersand (&)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you include the username in the bash prompt using PS1?
By using the $USER variable
By using the @ symbol
By using the %u symbol
By using the \u switch
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the \T switch display in the bash prompt?
The current date
The current directory
The shell version
The time in 12-hour format
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the role of the PS2 variable in bash?
To manage environment variables
To set the default shell
To indicate a continuation line
To display the prompt for a new command
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you continue a command on the next line in bash?
By using a period (.)
By using a colon (:)
By using a backslash (\)
By using a semicolon (;)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What must be done to make shell prompt customizations persist across sessions?
Use the 'save' command
Edit the .bashrc file
Restart the terminal
Use the 'persist' command
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
6 questions
Saudi Aramco May IPO Trading Unit
Interactive video
•
University
6 questions
The Complete Practical Docker Guide - How Shell Understands that You Have Entered a Command
Interactive video
•
University
6 questions
Why you need to build a good network
Interactive video
•
University
6 questions
Fundamentals of Object-Oriented Programming - C++ - Arrays and Structures
Interactive video
•
University
6 questions
Mastering Spring Framework Fundamentals - Specifying Default Properties for Property Values
Interactive video
•
University
6 questions
Spark Programming in Python for Beginners with Apache Spark 3 - Working with PySpark Shell - Demo
Interactive video
•
University
6 questions
Hands-On Continuous Integration and Automation with Jenkins - Create Your First Jenkins Job
Interactive video
•
University
6 questions
BP Profit Drop Sets Low Bar for Oil Producers
Interactive video
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University