Question

In: Computer Science

Print out screenshot(s) that show the result of setting the prompt to different values as indicated....

  1. Print out screenshot(s) that show the result of setting the prompt to different values as indicated. Remember that you can change the prompt to include the result of a UNIX command if you include the command name in backquotes. To get credit for each step, you must have the screenshot show the command you used to set the prompt and that it worked as intended.
    1. Set the prompt to the UNIX server’s name and an arrow by using the hostname command. Hint: try set prompt="`hostname`-> " as your command.
    2. Set the prompt to be the computer’s processor type, followed by a colon and a space. You can retrieve the processor type using the mach command.
    3. Set the prompt to your username, a hyphen, and the current command number. Your username can be retrieved using the whoami command. The current command number can be included using the code \! in the prompt string. Remember to enclose everything in double-quotes.
    4. Set the prompt to show the current working directory, but show that when you change the directory, the prompt is not updated to show the new location.
    5. Reset the prompt to its original gator% value.

Solutions

Expert Solution

mach command not found or its not in ubuntu

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 :)


Related Solutions

;the task is to print out the result no matter how many digits ; it should...
;the task is to print out the result no matter how many digits ; it should work on Emu8086 ;the code should be in assembly language ; add comments to your code org 100h .data F db 0 num1 db 0 num2 db 0 op db 0 result db 0 msg db 0dh,0ah,"Error" .code mov ax,@data mov ds,ax LL1: call get1 cmp ax,0 je print cmp F,0 je LL1 LL2: call get2 cmp ax,0 je print cmp F,1 je LL2...
Fill in the format strings so that the print() statements below display the indicated values vertically aligned
Use pythonFill in the format strings so that the print() statements below display the indicated values vertically aligned as Class | Exam Type | Grade ---------- | ---------- | ------------- ECC102 | Midterm | 78.12 ECC104 | Final | 82.45 ECC108 | Makeup | 98.00 ECC200 | Resit | 100.00 Note that the Class column is aligned LEFT, Exam Type column is aligned MIDDLE, and Grade column is also aligned LEFT. Note also that you need to use the vertical...
Design a C program to print out the unsigned char (integer) values of the 4 bytes...
Design a C program to print out the unsigned char (integer) values of the 4 bytes in sequential order (i.e., the first byte is printed first). Using the code framework provided below, the printing is done by the function void byte_value(int *), in which only pointer variables can be declared and used. #include <stdio.h> ​ void byte_value(int *); ​ int main() { int n = 1; byte_value(&n); printf("Enter an integer: "); if (scanf("%d", &n) == 1) byte_value(&n); return 0; }...
1. Why do DRY and the IRY result in different values? Explain why this difference, even...
1. Why do DRY and the IRY result in different values? Explain why this difference, even though seemingly small, can be very important? 2. How might a firm use the issuance of commercial paper as a way to deal with its seasonal fluctuations in sales? 3. Assume you are going to buy a 90-day Treasury Bill with a face value of $1,000 for a price of $944. Calculate the DRY, or discount rate yield. Also, calculate the IRY, or investment...
Show details and write answers using 2S+1LJ notation, where S, L, J are the total values...
Show details and write answers using 2S+1LJ notation, where S, L, J are the total values for each atom: a) Use Hund’s 1st rule to show that Si atom can be described by 3 P. b) Use Hund’s 2nd rule to show that Ti atom can be described by 3 F. c) Use Hund’s 3rd rule to show that Si atom can be described by 3 P0.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT