Each command executed in the shell is recorded by giving numbers sequentially
to each command. (you can use history to see all recently executed commands)
- with this you can execute a particular command with !
- Inorder to see the command against the number, you can use !
E.g: $ !54
o/p : vi test.sh ( opens the file)
E.g: $ !54:p
o/p : vi test.sh (just prints the command)
No comments:
Post a Comment