Weird chmod parameter - "!$"

2

I found on an article a line that was saying: Now execute -> sudo chmod 700 !$

What does !$ in that case?

w0rldart

Posted 2012-03-23T19:05:36.787

Reputation: 2 363

Answers

3

This is not a chmod parameter. See the Bash Manual:

!!:$ designates the last argument of the preceding command. This may be shortened to !$

So just look at the last command to figure out what you'd chmod.

slhck

Posted 2012-03-23T19:05:36.787

Reputation: 182 472