Question

Linux 13. Use the command: set | less. What does the set command do? 14. What...

Linux

13. Use the command: set | less. What does the set command do?

14. What is the purpose of the variables: PS1, HOME, PWD, PATH?

15. Use the command: echo $PS1. Why did you have to use the dollar sign with the variable name? What did it do?

16. Use the command: PS1="This is my new prompt: #". What did it do?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Ans.

13. less command is used to view files instead of opening the file. Set or unset values of shell options and positional parameters. Change the value of shell attributes and positional parameters, or display the names and values of shell variables.

14.

PS1: The value of this parameter is expanded and used as the primary prompt string.

HOME: To used to find the or lookup user information regardless of whether that information is stored in local files.

PWD: Displays your current location in file system

PATH: PATH is a environmental variable that tells the shell which directories to search for executable files in response to commands issued by a user.

15. If you use echo $PS1 that display variable value the contain the some of data and if you use only echo PS1 without using $ sign then disply PS1 as a print on display. please fine below output.

16. PS1="This is my new prompt: #" command for open new prompt as below:

Add a comment
Know the answer?
Add Answer to:
Linux 13. Use the command: set | less. What does the set command do? 14. What...
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
  • Complete the following sections (use a separate screenshot for each item): The PS1 environmental variable contains...

    Complete the following sections (use a separate screenshot for each item): 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: Type echo $PS1 and press Enter. You see the contents of the PS1 variable as ___________________________. 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...

  • 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...

  • 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...

  • This is for Linux. Use the command df. What do you see? 17. Use the command...

    This is for Linux. Use the command df. What do you see? 17. Use the command du /usr | more. What do you see? 18. What is the command fsck used for? 19. What is the command quotacheck, quotaon, edquota and repquota used for? 20. What is the command quota used for?

  • 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...

  • Manipulate directory structures in Unix/Linux Use the OS that you set up from Question 1. Assume...

    Manipulate directory structures in Unix/Linux Use the OS that you set up from Question 1. Assume you are started at your home directory. Perform a command that displays the absolute path of your home directory (your current location). Create a new directory inside your home directory and name it “Assignment-3” Without moving into the directory you just made (staying in your home directory), create two new directories using one command inside of the Assignment-3 directory, and name them Test1 and...

  • b. echo Your file has been processed c. echo l; d. cp file /tmp 36. You...

    b. echo Your file has been processed c. echo l; d. cp file /tmp 36. You can use the command to start a program with an environment variable setting that is not part of your current environment. c. use d. env a. export b. set 37. The command displays a list of all environment variables defined in your current environment. c. use d. env a. export b. set he environment variable contains a list of directories on the Linux system...

  • What does your .profile file say is your default PATH? (what command did you use). What...

    What does your .profile file say is your default PATH? (what command did you use). What is the PATH command syntax to add the directory $HOME/bin to your PATH?

  • Using Kali Linux, the Windows Linux Sub-System, or another Debian based Linux distribution, perform the following...

    Using Kali Linux, the Windows Linux Sub-System, or another Debian based Linux distribution, perform the following tasks based on the Linux Fundamentals lecture. For this lab, take screenshots for all major steps completed to illustrate that each task was successfully completed the same method as would be used for other labs). Tasks: 1. Create a new user named Billy Bob using the command linter face 2. Add Billy Bob to the sudoers group 3. Update and upgrade your Linux distribution...

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