Add the exit status of the previous command to your prompt so it behaves similarly to the following:
What will be an ideal response?
$ [0] ls xxx
ls: xxx: No such file or directory
$ [1]
The following command sets up the prompt described in the question:
PS1='[$?] '
You might also like to view...
Maintaining a heap as a complete binary tree means that
a) the tree is unbalanced b) leaf nodes are created at the lowest level in left- to right order c) the tree is degenerate d) every leaf node is at the same level e) none of the above
In Microsoft PowerPoint, content can be added in the ________ pane or the Outline pane
Fill in the blank(s) with correct word
Google ________ provides free storage for any type of file
Fill in the blank(s) with correct word
Thekeypressevent is fired in response to the computer generating a character.
Answer the following statement true (T) or false (F)