Sometimes you really need to find a file that has certain text in it, these commands will help provided you have an idea of the directory or the string
Category: UNIX
MacPorts / HomeBrew – Rip CD tracks from terminal
I’m mainly doing this project for my church where the CD will typically only have one track and the MP3 bitrate is acceptable at 64 kbit/s Yes there are faster options that also are free but this is the best option I’ve found to make it an easy process someone…
Linux/Unix/Mac OSX – Find & Remove Empty Directories
Occasionally you get empty directories and need to clear them out, these scripts below will help with that, just be careful what directory you choose. The scripts below are set to ~/ (current user home directory) but can easily be changed to any directory on your system. Similarly if you…
UNIX – Extract RedHat/CentOS/Fedora RPM File
I love to find RPM files that someone has compiled so that I don’t have to do the manual work but when I find one at a questionable location or one I’m simply not familiar with it’s nice to know what is in it. Recently I did a search on…
PowerShell – Azure – Create UNIX VM
If you have a need to create a few VMs it can get a bit tedious to build them in one of the various portals. Set the variables then let this script run. At some point I will create a function around this but for now the script works as…
PowerShell – Azure – Get VM Image List
When installing a new VM in Azure it’s helpful to know your options Another example, say you are looking for a specific released version of Red Hat This command currently comes up with this as a response Get latest image
Mac OSX Terminal – Turn off system sleep
If you use a Mac whether true server or a Mac Mini for a server this script below is very helpful to prevent the Mac from falling asleep and preventing the machine from being a server. If all of this still does not do it you can try to caffeinate…
Mac OSX Terminal – Get System Details
If you only have SSH access to a Mac OSX server and need some details on the machine you can use these commands to help. System_Profiler can get you a lot of the information you are likely looking for but it pulls a lot of information so initially you may…