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:

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

Update $PATH variable on Mac Permanently

If you’re a developer or you commonly run apps from directory locations other than the default Mac locations, you probably hate typing out the full directory when running the app or script. To update the $PATH variable within the Terminal you just need to type: export PATH=/new/path:$PATH To update the $PATH variable PERMANENTLY you just … Continue Reading