some times u want to take argument from the previous command you gave
say for example
$ ls /user/ramz/dir1/dir2/dir3/
Now you want to cd to the directory you used in ls command. The quick way is
$ cd !$
- This is equivalent to cd /user/ramz/dir1/dir2/dir3
- !$ - Takes the last argument of previous command.
No comments:
Post a Comment