More *nix command line fun
I don't know how often I have tried to start up a process and forgotten that it runs as root, forcing me to type the command in again prefixing it with sudo. That was until today, if you suffer from the same level of forgetfulness then sudo!! is for you.
CODE:
-
my-computer:~ user$ /usr/local/apache2/bin/apachectl start
-
(13)Permission denied: make_sock: could not bind to address [::]:80
-
no listening sockets available, shutting down
-
Unable to open logs
-
my-computer:~ user$ sudo !!
-
sudo /usr/local/apache2/bin/apachectl start
-
my-computer:~ user$
About this entry
You’re currently reading “More *nix command line fun,” an entry on gregs
- Published:
- Tuesday, September 11th, 2007 at 7:38 pm
- Author:
- gregs
- Category:
- *nix
No comments
Jump to comment form | comments rss | trackback uri