If you are on a Unix based system, such as a Mac or Ubuntu, then you already have two tools built-in to help with wrapping text:
fmt. I’ll be explaining how these two tools both do text-wrapping but in slightly different ways.
Continue reading Textwrapping with FOLD and FMT
Ubuntu is a great operating system for people who want an open alternative to Windows or Mac. This guide will help newbies to Linux learn how to format a disk using two different methods.
Continue reading Two Ways to Format a Drive in Ubuntu 16.04
I’ve been working with virtual machines (VirtualBox) to learn more about Linux as a server environment. It’s great knowing you can revert back to a previous “system snapshot” when you screw up. Even with all this greatness, I was unfortunately having a lot of trouble getting a VM server to connect to other computers. Actually, it was very easy with using a bridged ethernet connection with the server getting a unique IP address. However, a bridged connection is not always available, so I was determined to get it to work with a NAT connection with port forwarding. I needed port 80 to be forwarded to port 8080, and it was a pain but I finally got port forwarding to work. Here’s how to do it on Mac OS.
Continue reading Mac OS: Port Forwarding
You can quit applications by using the Force Quit menu (⌘⌥ESC) but sometimes we need to quite a background application or the application on a remote machine. In Terminal we can do this using the top and kill commands.
Continue reading Mac OS: Kill an App with Terminal
You have a directory full of important folders, and you want each one compressed separately. Doing this by hand would take waaay to much time. Of course, we can do this in terminal, and with one line of code (sweet!) so it’s easy to use.
For this we use the “Find” command built in into our computer. From there we’ll have two choices, to use compress it to a zip file for a dmg file.
Continue reading Easily Compressing Multiple Folders
The basic command structure for compressing a file into the zip format with the terminal is:
zip -r <destination> <source>
If you want to compress more than one folder or item:
zip -r <destination> <source1> <source2>...
The source can be a file or folder.
Unfortunately zip is not very smart when it comes to folders and it will save not only the file, but the path to the file as well. We can fix this behavior by adding just a little bit to the original command.
Continue reading Mac OS: Zipping with your terminal
For those out there that are new to using Terminal, or need a quick review, this is a quick overview of the “cd” and “ls” commands. These two commands are the basic tools for navigating the file structure “inside” of your Mac. Once these two are mastered, you will be able to comfortably move onto doing cooler, more complicated commands that can be run in Terminal. Continue reading Mac OS: Command basics – “cd” and “ls”
Many people don’t know that Macs can native make an ISO disk backup without any third-party software – part of the Unix backbone of the operating system. This built-in tool allows anyone to save disc data quickly and reliably. I have included the instructions needed to make a perfect copy of any disc – simple and easy.
Continue reading Mac OS: Making an ISO Image
The cURL function, found on most UNIX based systems, including the Mac OS, is one of the cooler functions that is also simple to use and awesomely powerful when used correctly. Check out my introduction to CURL for more information about some cool things you can do with it.
Recently I found out that it is simple and relatively easy to post new status updates to twitter through the Terminal using cURL. This opens up the doors for using Applescript, BASH or other languages to automate postings if needed.
Continue reading Mac OS: Tweeting using cURL
When editing a live FileMaker database, we’ll sometimes need to force clients to commit their records before the update can happen. If our users are on remote machines, this can be a real problem. The general fallback approach is to send a disconnect request from the FileMaker Server. This will close the database the client is using, so it isn’t the most friendly method.
Continue reading FileMaker & Applescript: Force a remote user commit