UNIX Terminal – Grep Directory Recursively
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
Posts in this category are specific to macOS and may not work on other UNIX based systems.
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
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 can start and chat with…
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. This first block will only list the empty…
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 your mac To re-enable sleep…
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 want to output it to…
Ever wonder where the image displayed on your desktop is located? Open Terminal and then run the first command to show the image path, then to hide the path again run the second command. Reference: http://osxdaily.com/2011/11/20/show-the-location-path-of-current-wallpaper-in-mac-os-x/
Recently I had to remove users from a Mac that was on a network only with SSH available. In this document I use the user name “administrator” as the account that I do the work in and would like to keep, your user name may be different. First we need to enable root This will…
This is a work in progress at the moment. Start by opening Terminal If your network has a problem with SSL certificates you can try this command to download without checking the SSL certification. This is typically not suggested. Move the tar file to /tmp and Extract