Question

Write a command to change your prompt to “Command? ". If you wanted to make the...

Write a command to change your prompt to “Command? ". If you wanted to make the change permanent, so it would be in effect in a subshell and the next time ou logged in, how would you do it? (The second part is difficult, and has a different answer in different versions of UNIX and maybe Linux, but you'll get 1.5 points for the correct first part, and full credit for any reasonable thought about the second part.)

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

echo $PS1

'echo' tells the system to repeat what follows, and the dollar sign tells it to repeat its value instead of its name. The default pattern will usually resemble [\u@\h \W]\$ . A new prompt can be set for the current session by typing PS1= followed by the new pattern in quotes. The prompt can be changed permanently by editing the appropriate configuration file.

Add a comment
Know the answer?
Add Answer to:
Write a command to change your prompt to “Command? ". If you wanted to make the...
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
  • How do I do the following on a Unix Command Line Prompt: Change you command-line prompt...

    How do I do the following on a Unix Command Line Prompt: Change you command-line prompt to some interesting phrase/word of your choice Change the command-line prompt to display your user name and your current working directory (this includes your interesting phrase/word) Create a short alias for “ls -l -a”, it is up to you, but maybe “lsa” Execute the “who” command together with the “grep” command to identify whether your peer group (or any 3 or more people) are...

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

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

  • 1) Echo the input: First, you should make sure you can write a program and have...

    1) Echo the input: First, you should make sure you can write a program and have it compile and run, take input and give output. So to start you should just echo the input. This means you should prompt the user for the plaintext, read it in and then print it back out, with a message such as "this is the plaintext you entered:". [4 points, for writing a working program, echoing the input and submitting the program on the...

  • Using Unix processes Submit a README file that lists the files you have submitted along with...

    Using Unix processes Submit a README file that lists the files you have submitted along with a one sentence explanation. Call it Prj1README. MakeCopy.c : Write a C program that makes a new copy of an existing file using system calls for file manipulation. The names of the two files and copy block sizes are to be specified as command line arguments. Open the source file in read only mode and destination file in read/write mode. ForkCopy.c : Write a...

  • Using system calls you have learned so far, build your own command called fpart to display...

    Using system calls you have learned so far, build your own command called fpart to display (or echo) a portion of any text file. Please follow the following requirements 1. Your command must be typed in these styles a. Şfpart filename.txt start byte end _byte b. Şfpart filename.txt start_byte 2. If the input file (filename.txt) is a non-text file, then a message must be displayed like this: Input file is not a text file 3. Here is an example run....

  • 1. In this lab, you will create a simple encryption function that will require a sentence...

    1. In this lab, you will create a simple encryption function that will require a sentence and a key (both strings) as a parameter and return an encrypted version of the string. The encryption algorithm will use the exclusive OR operator (commonly abbreviated as XOR). The general structure of the encryption is that every position in the sentence is XOR'd with the accompanying position of the key. If the sentence is longer than the key, you repeat the key. For...

  • Static Equilibrium Lab: Wheel and Axle If you wanted to lift something heavy using this device, w...

    Static Equilibrium Lab: Wheel and Axle If you wanted to lift something heavy using this device, would you have the heavy object connected to the larger disc and then pull one the smaller disc, or vice-versa? Why? What would be the effect of using this device on the speed that the object lifts? That is, if you pulled your string at a speed of 10 cm/s, would the object lift 10 cm/s, or would it lift faster or slower? Activity...

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