I wanted to put together some find command examples because I tend to forget this useful Linux command often. It is very important for Linux/MacOS administrators or DevOps to master the find command. While having my favorite coffee varietal Caturra the other day I decided to put together this brief find command examples: 1. Search …
Tag Archives: terminal
How to Change MacOS hostname using the Terminal
Hola! the other day I had a need to change a MacOS hostname using the Terminal. I did not have access to a GUI and had to do this remotely. Chagning the hostname using MacOS Terminal is quite simple and is my favorite method. This is why I decided to document this little how to. …
Continue reading “How to Change MacOS hostname using the Terminal”
Connect to a remote MySQL database using Linux terminal
This is simple. After you setup a user with proper access rights run the below commands. # mysql -u yourUser -p -h <yourHostname or IP> A little explanation: -u tells mysql what your username -p tells mysql you have a password and will prompt you to enter it after you press enter -h tells mysql …
Continue reading “Connect to a remote MySQL database using Linux terminal”
Linux df command line brief examples
df is a Linux command for for reporting file system disk usage on a Linux system. While brewing coffee at home I found the following. How to view disk usage using df command? Simple! Simplest way is just to type df on the command line and you should get the below output: Filesystem …
Activate File Sharing via Terminal macOS
The other day I only had access to my secondary Mac (mac mini) via the Terminal. For some reason Screen Share did not work. I needed to enabled File Sharing on my mac mini in order to transfer some backup files from my MacBook Pro to the mac mini. Coffee was brewing! This is how …