How to get the last long argument from the previous command ?
Answer
# ls -l !cp:$ ls -l /really/a/very/long/path/long-filename.txt
Question
How to get the last long argument from the previous command ?
Answer
?
Question
How to get the last long argument from the previous command ?
Answer
# ls -l !cp:$ ls -l /really/a/very/long/path/long-filename.txt
If you want to change selection, open document below and click on "Move attachment"
15 Examples To Master Linux Command Line History ommand in history that starts with cp and takes the last argument (in this case, which is also the second argument as shown above) of cp and substitutes it for the ls -l command as shown below. <span># ls -l !cp:$ ls -l /really/a/very/long/path/long-filename.txt 14. Disable the usage of history using HISTSIZE If you want to disable history all together and don’t want bash shell to remember the commands you’ve typed, set the HISTSIZE to 0 as sho
Summary
status
not learned
measured difficulty
37% [default]
last interval [days]
repetition number in this series
0
memorised on
scheduled repetition
scheduled repetition interval
last repetition or drill
Details
No repetitions
Discussion
Do you want to join discussion? Click here to log in or create user.