IP/MAC Scanner from Linux Command Line?

I use IP Scanners all the time.  Angry IP and IP Scanner Pro are great GUI applications for Windows, OS X, and Linux.  But what if you’re only option is a linux command line?  NMAP is here to the rescue! If you want to scan an IP range for MAC and IP Addresses that are … Continue Reading

Delete a route in Mac OS X Yosemite

I realized I had a post for how to add a static route, but didn’t have one for how to delete one…. So here ya go!  

How to Add a Route in Mac OS X Mavericks

Ever have need to access a network that your default gateway (router) doesn’t know about?  Just add the route via the CLI/Terminal on a Mac OS X running Mavericks! The command is sudo route -n add (network) (gateway)

Where is httpd.conf on Mac OS X Server?

Mac OS X Server is awesome! But it “hides” configuration files for some of the services it runs. Finding them can be a pain… This is the directory where OS X Server puts all of the relevant httpd.conf files: /Library/Server/Web/Config/apache2/sites/

Show the entire contents of a file in Linux/Ubuntu/Mac

I’m primarily a Juniper engineer, so most of my commands are followed by ” | no-more”. If you’re like me, you probably like to print the entire contents of files/output and scroll up within the terminal. There’s a super easy command that will print the contents of a file to the screen. “cat” cat output.txt

Find files with matching content in Linux/Debian/Mac

Sometimes you have need to find all files with certain words in them.  If you’re on Linux/Debian/Mac, you can run a really simple command to find them! That command is “grep”. Here’s an example that recursively searches subfolders for “set groups node1” grep -iR ‘set groups node1’ * Here is the output:

Serial Port to Named Pipe in VMware Fusion

If you need to be able to input information to a serial port in VMware Fusion, it can be a royal pain. I tried to gather all of the info I could to help those with VMware Fusion view serial port information. Programs to install: XCode (updated) (Link) XCode Command Line Developer Tools (link) Macports … Continue Reading

How to make a static IP address in Ubuntu

If you have a new install of Ubuntu/Debian, you’ll notice that eth0 is always set to “DHCP”.  While this is fine and dandy for user environments, out there in the server world, we like static IP addresses. First thing’s first…. open the /etc/network/interfaces file. sudo vi /etc/network/interfaces Next, you want to change the eth0 DHCP setting … Continue Reading

Split large text files in Mac/Nix

Lets say you have a file full of passwords that is 62,000 lines and you want to chop the file into bite-sized pieces. There is an easy terminal command to help you with that! To split into multiple 1000 line files with a prefix of “SPLAT” here is the command: split -l 1000 textfile.txt SPLAT