How to list only directories with the ls command on Mac OSX.

The ls command on Mac OSX works a little differently than on a Linux machine, but listing only directories is very simple. This is one example, using only the ls command. deusexmachina:Documents jason$ ls -ld — */ drwxr-xr-x 3 jason staff 102 5 Mar 2018 POL/ drwxrwxrwx 31 jason staff…

Read More

The proper way to use grep without cat. And some nice tricks.

This is the proper way to use grep. You do not need to use cat at all. This method works well and is one command, not two piping together. jason@jason-desktop:~/Documents$ grep apt-get ../.bash_history sudo apt-get update sudo apt-get install me-tv sudo apt-get update && sudo apt-get install xvst apt-get moo…

Read More