How to print your IP address with Bash on Mac OSX in the terminal app.

This one-liner will print the current LAN IP address of a machine running Macintosh OSX. jason@. PWD: ~. -bash. 3.2.57. 10 $> ifconfig | grep "inet " | awk ‘FNR==2{print $2}’ 192.168.1.2jason@. PWD: ~. -bash. 3.2.57. 10 $> ifconfig | grep "inet " | awk ‘FNR==2{print $2}’ 192.168.1.2 This is 10.14.2 (18C54), but this command … Read more

Just upgraded to OSX Mojave.

I have just upgraded a Macbook to OSX Mojave. This was very painless, and did not take very long at all. Upgrading a Macintosh machine is much easier than upgrading Windows 10, with all of the hassles and file deletion issues involved in that process. After the installation process, I had a new login screen, … Read more

Get information about your Macintosh machine using the command line.

Get the current status of your battery with this command. deusexmachina:~ jason$ sudo systemstats | grep "Battery Power" Battery Power: -8095 mW (-15.5 %/hr) Battery Power: -8034 mW (-15.6 %/hr) Battery Power: -6774 mW (-13.3 %/hr) Battery Power: -8080 mW (-15.3 %/hr) Battery Power: -7866 mW (-15.3 %/hr)deusexmachina:~ jason$ sudo systemstats | grep "Battery Power" … Read more

Nice commands on Macintosh to keep track of network usage.

The Mac OSX operating system has a lot of very useful commands for keeping track of network usage. Here is a very nice one. The nettop command. As you can see, this shows a constantly updating display of network usage on Mac. This is very useful for watching network throughput in real time. Especially, if … Read more

Get nice system information on Macintosh OS with the command line.

Get information about apps installed on your Macintosh PC with the lsappinfo command. Use grep as shown below to find out information about a certain app, i.e Firefox in this case. deusexmachina:~ jason$ lsappinfo | grep Firefox 24) "Firefox" ASN:0x0-0x2a02a: bundle path="/Applications/Firefox.app" executable path="/Applications/Firefox.app/Contents/MacOS/firefox" 26) "FirefoxCP WebExtensions" ASN:0x0-0x2c02c: bundle path="/Applications/Firefox.app/Contents/MacOS/plugin-container.app" executable path="/Applications/Firefox.app/Contents/MacOS/plugin-container.app/Contents/MacOS/plugin-container" parentASN="Firefox" ASN:0x0-0x2a02a: (inferred) … Read more

Make the Linux MATE desktop look just like Mac OSX.

There is a new theme set available on Gnome Look. This makes Linux look just like Macintosh OSX High Sierra. It is very high quality and well worth installing. The GTK3 theme: https://dl.opendesktop.org/api/files/download/id/1537895905/s/a13d96c5494b48d7c715859105db2c5d/t/1537916795/u//Sierra-light.tar.xz. Icon theme: https://dl.opendesktop.org/api/files/download/id/1524634947/s/a13d96c5494b48d7c715859105db2c5d/t/1537916795/u//MacOSX-icon-theme.tar.xz. Cursor theme: https://dl.opendesktop.org/api/files/download/id/1517130771/s/a13d96c5494b48d7c715859105db2c5d/t/1537916795/u//MacOSX-cursors.tar.xz. A couple of Mac OSX wallpapers: https://dl.opendesktop.org/api/files/download/id/1517131134/s/a13d96c5494b48d7c715859105db2c5d/t/1537916795/u//HighSierra-wallpapers.tar.xz. Unpack the GTK theme under the ~/.themes folder. And … Read more

How to list the password files on a Macintosh OSX Sierra computer.

Get ahold of the Mac OSX Sierra password files This is how to list the password files on a Macintosh machine, but the folder is only readable by the superuser. deusexmachina:~ jason$ sudo ls -l /var/db/dslocal/nodes/Default/usersdeusexmachina:~ jason$ sudo ls -l /var/db/dslocal/nodes/Default/users This will return a listing of many files that contain passwords. But these are … Read more

Very useful Macbook tips for a new user.

How to use home and end keysHow to take screenshotsGet information about installed appsMore keyboard key shortcuts How to use home and end keys To right-click on something, hold the control key and then click an item to get a right-click context menu. This is how you can customize Firefox on your Macintosh machine. The … Read more

Lovely new OSX GTK3 theme for Linux Mint MATE.

There is a lovely GTK3 theme available for the Linux Mint MATE desktop. This looks very nice when coupled with a good Metacity theme. https://www.gnome-look.org/content/show.php/OS+X+El+Capitan+%28GTK,+Unity+&+Cinnamon%29?content=174139. This is what the El Capitan theme looks like on a Debian desktop. Download the El Capitan theme here. https://dl.opendesktop.org/api/files/download/id/1474234465/OS.X.El.Capitan.v0.9.tar.gz. This is a very nice looking theme and well worth … Read more

Useful Macintosh OSX terminal commands to get information about your iMac.

The mount command shows information about your mounted partitions on your machine. iMac305:~ admin$ mount /dev/disk0s2 on / (hfs, local, journaled) devfs on /dev (devfs, local, nobrowse) map -hosts on /net (autofs, nosuid, automounted, nobrowse) map auto_home on /home (autofs, automounted, nobrowse) map -fstab on /Network/Servers (autofs, automounted, nobrowse) /dev/disk0s3 on /Volumes/Scratch (hfs, local, journaled)iMac305:~ … Read more

Some more useful UNIX commands available for the Mac.

There are a few very useful UNIX commands available on the Apple Macintosh. Mountain Lion is what I am using in Virtualbox and I am having a look at some very useful shell commands and tips. The iostat command. This shows statistics of disk Input/Output. Homers-iMac:Documents homer$ iostat disk0 disk1 cpu load average KB/t tps … Read more

Very cool and interesting Linux commands.

How to search your home directory for certain files. The find command is very useful for searching your computer for various files. john@adeptus-mechanicus ~ $ find /home/$LOGNAME -name "*.avi" /home/john/Azureus Downloads/[ www.Torrenting.com ] – The.Hobbit.2012.DVDSCR.XVID-NYDIC/The.Hobbit.2012.DVDSCR.XVID-NYDIC.avi /home/john/Azureus Downloads/[ www.Torrenting.com ] – The.Hobbit.2012.DVDSCR.XVID-NYDIC/sample/sample.avijohn@adeptus-mechanicus ~ $ find /home/$LOGNAME -name "*.avi" /home/john/Azureus Downloads/[ www.Torrenting.com ] – The.Hobbit.2012.DVDSCR.XVID-NYDIC/The.Hobbit.2012.DVDSCR.XVID-NYDIC.avi /home/john/Azureus Downloads/[ … Read more