I know that the command say "something" in mac's terminal would make it say stuff. I am new to Unix and since OS X is UNIX based, I was trying to teach myself the commands and I read that !5 would recall the last five commands in the terminal's history. when I typed that, the terminal started saying stuff! is this supposed to happen?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
migrated from stackoverflow.com Dec 31 '12 at 2:01
|
If you press !5 (bang-5) at the command line, if you are in a CSH varient....you'll cause the 5th command since the particular shell invokation was started entered to be recalled and executed as if you entered it on the command line. Depending on what the 5th command in your particular case was, you'd be seeing the output from that command. |
|||
|
|
historyand see what the 5th command was. !# would run whatever # you entered (not the last five, just the fifth). So it should call whatever number. Did you runsay ...as that number? – nerdwaller Dec 31 '12 at 3:21