DEV Community

Discussion on: My Favorite Bash Tips, Tricks, and Shortcuts

Collapse
 
dougaws profile image
Doug

!$ is the last word from the previous command. Say you run

ls -l myfile.exe

and notice no execution bit is set: chmod +x !$.