Question

Complete the following sections (use a separate screenshot for each item): The PS1 environmental variable contains...

  1. Complete the following sections (use a separate screenshot for each item):
    1. The PS1 environmental variable contains the configuration parameters for how your command-prompt line appears. View the contents of the PS1 variable and configure the PS1 variable as follows:
  1. Type echo $PS1 and press Enter.
  2. You see the contents of the PS1 variable as ___________________________.
  3. Now change your command-prompt to display the full path of the current working directory using an environment variable, PWD. The PWD variable contains the full pathname of the current working directory. To display the contents of the PWD variable in the command-prompt, you would type PS1=____________________ and press Enter.
  4. What does your command-prompt look like now? _______________________
  5. Type cd /tmp and press Enter. What is your prompt now? _______________
  6. Type cd and press Enter. This will take you to your ______ directory. What is your prompt now? ________________________________________________
  7. Log out and then log back in as the same user. How does your prompt change from what you saw in step 5? _______________________________________
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer A
***********

Answer B
**************

\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$

Answer C
************

export PS1='$(whoami)@$(hostname):$(pwd):'

Answer D
*************

$(whoami)@$(hostname):$(pwd):

Answer E
**************

/tmp

Answer F
***********

home directory

if you have any doubt then please ask me without any hesitation in the comment section below , if you like my answer then please thumbs up for the answer , before giving thumbs down please discuss the question it may possible that we may understand the question different way and we can edit and change the answers if you argue, thanks :)

Add a comment
Know the answer?
Add Answer to:
Complete the following sections (use a separate screenshot for each item): The PS1 environmental variable contains...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Project 4-4 In this hands-on project, you make and view links to files and directories. Switch to...

    Project 4-4 In this hands-on project, you make and view links to files and directories.Switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the terminal using the user name of root and the password of secret.At the command prompt, type cd samples and press Enter. Next, type ls -F at the command prompt and press Enter. What files do you see? Next, type ls -l at the command prompt and press Enter. What is the link...

  • Login to Suse Linux as root. Complete the task working as the root user. 1. What...

    Login to Suse Linux as root. Complete the task working as the root user. 1. What is your current directory. What did you enter at the command prompt to determine your current working directory? 2. Change directories if needed to find your foods (or food) file. Use vi to make the file contain 10 food items. Save your file and quit. Use the cat command, and option, and the argument food to display the food file with numbered lines. Use...

  • Unix questions, i need help on Hint: Commands to study to answer this question: predefined shell...

    Unix questions, i need help on Hint: Commands to study to answer this question: predefined shell variables, and .profile script file, echo SHELL, HOME, PATH, MAIL and TERM are predefined shell variables. You can use the value of a shell variable in a shell command putting $ in front of it. For example, to display the value of the HOME directory of the user, specify $HOME in the echo command like echo $HOME. Do not give just the value of...

  • On your Fedora Linux virtual machine, switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and...

    On your Fedora Linux virtual machine, switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the terminal using the user name of root and the password of LNXrocks!. At the command prompt, type cat /etc/shadow and press Enter. Record the encrypted password for bozo’s user account. At the command prompt, type passwd –l bozo and press Enter to lock bozo’s user account. At the command prompt, type cat /etc/shadow and press Enter. What has been changed...

  • 2. Create a directory using “mkdir” and change into that directory using “cd”. Next, create another...

    2. Create a directory using “mkdir” and change into that directory using “cd”. Next, create another directory within the new directory and then change into that directory. Now, run cdwithout any arguments, then run pwd. What do you conclude about the cd command when run with no arguments? 3. You won't find the set command in either /bin or /usr/bin, or in any directory listed in the PATH setting. How is it executed then? (That is, if there is no...

  • Question 2: Manipulate directory structures in Unix/Linux (24 marks – 4 marks each) Use the OS...

    Question 2: Manipulate directory structures in Unix/Linux (24 marks – 4 marks each) Use the OS that you set up from Question 1. Assume you are started at your home directory. a) Perform a command that displays the absolute path of your home directory (your current location). b) Create a new directory inside your home directory and name it “Assignment-Two” c) Without moving into the directory you just made (staying in your home directory), create three new directories using one...

  • On your Fedora Linux virtual machine, switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and...

    On your Fedora Linux virtual machine, switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the terminal using the user name of root and the password of LNXrocks!. At the command prompt, type sleep 6000 and press Enter to start the sleep com- mand, which waits 6000 seconds in the foreground. Do you get your prompt back after you enter this command? Why? Send the process an INT signal by typing theCtrl+c key combination. At the...

  • INFO 1111

    1.      [30] Use the Msinfo32.exe command to launch the System Information window. Browse through the different levels of information in this window and answer the following questions:a. What OS and OS version are you using?b. What is your CPU speed?c. What is your BIOS manufacturer and version?d. How much video RAM is available to your video adapter card? Explain how you got this information.e. What is the name of the driver file that manages your network adapter? Your optical drive?  2.     ...

  • THE C-SHELL: Find three reasons online for why some computer users prefer to use the Linux opera...

    THE C-SHELL: Find three reasons online for why some computer users prefer to use the Linux operating system instead of Windows. List the reasons you find and for each one write if you think this is a good reason, and why or why not. Afterwards, explain why you personally would or would not consider switching your personal computer platform to Linux from your current one. (If you already use Linux, explain why you made this choice.) Investigate some of the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT