DEV Community


Posted on

Tips of Command Line

1. !!

Got permission error. like this

chmod +x /usr/local/bin/ecs-cli
chmod: Unable to change file mode on /usr/local/bin/ecs-cli: Operation not permitted

Solution is just add sudo.

sudo chmod +x /usr/local/bin/ecs-cli

And you don't have to type chmod +x /usr/local/bin/ecs-cli again.

Type !! . Like this

sudo !!

!! means one before command executed.

  1. To be continued ..

Top comments (0)