Which symbol is used as a shorthand for using the last argument to the previous command?

Which symbol is used as a shorthand for using the last argument to the previous command?
A. %
B. _
C. |
D. $
 
Answer: d
Explanation: Sometimes we run several commands on the same file and instead of specifying the filename, again and again, we can use $ as a shorthand. This expression signifies the last argument to the previous command. For example,
Code:
$ mkdir prog_one       // create a directory 
$ cd $                 // change directory to mkdir
 

Tìm kiếm

Back
Top