Tag Archives: sudo

Linux commands that make me happy

Ok, so at work I started writing a “Linux command of the day” on a whiteboard that was vacant. Some of them are pretty cool so I thought I would show them here.

Some of them are pretty elementary to linux gurus but I’ve been using linux almost exclusively for 2 years and some of these were new to me. This is probably because I’ve been using mostly gnome and am not fully dependant on the CLI.

1. $ sudo !!
What this does is run whatever the last command you typed with sudo in front of it. Very cool, I know I’ve typed some long command before and forgot to add sudo to it. This makes those mistakes a lot easier to deal with. (I got this from hak5.org…good web show).

2. $ route -n
I felt ashamed for not knowing this one but it will help you find what your gateway ip is.

3. $ nmap -v -O ipaddress
Ok this isn’t really a build in command but if you have nmap installed this gives you a port scan and OS information from an IP address.

The Big Permissions Scare :O

I gave myself a pretty big scare yesterday. I was happily going along, using my computer like usual when I started to run into some internet problems. “Oh, I haven’t changed my DNS servers today,” I thought — sometimes the DNS doesn’t seem to work quite right here and I have to use OpenDNS if I want to go to any websites. So, since I’m running Ubuntu, I opened up System->Network, clicked on Authorize, and entered my username and password. I waited expectantly for it to authorize me, but it gave me a message that said “Error: could not authenticate,” or something along those lines.

Read more »