## man(1) continued

### How do I find commands?

Once upon a time, we talked a bit about man pages, and how useful they are for learning about a new program. We didn’t really get into how you find programs that you might want to run. This is what we’ll start exploring in the rest of this post. First, a few things to know. Most executable files, also called “binaries” are stored in a bin directory. This is just convention, since technically a binary file can live anywhere. [Read More]

## Finding Files

### and things of that nature.

So, you’re loving life, using ls(1) to list your files, and making directories with mkdir(1), impressing people by printing out their names using banner(1) , and jumping around the command line like a pro when someone asks you if you still have a copy of that photo you emailed them last year with all your old high school friends in it. Maybe? If you’re anything like me, your home directory is a bit of a mess, with folders and files everywhere. [Read More]

## Using The Shell Effectively

### How to win friends, and influence people (not really).

Once you get comfortable poking around with your shell, you start to wonder if there aren’t easier ways to do some common tasks. We’re constantly cd‘ing places, and running commands, and having to remember really long incantations just to list our files in reverse chronological order (ls -lrth). I’ve compiled the following list of useful shortcuts for using the command line. They have all been tested on bash(1) and ksh(1). bash (Bourne Again SHell) is the default shell on MacOS and many Linux distributions. [Read More]

## Size Date Name

### The end of ls

When I first started writing about the output of the ls command, I didn’t expect it would take four posts to get through, but here we are. We’re almost to the end, the only things left to talk about are the file size, the last modified time, and the filename. The file size is represented in bytes, unless you pass the -h flag to ls in which case, the size will be displayed in Kilobyte, Megabyte, Gigabyte, Terabyte, Petabyte, and Exabyte, depending on how much stuff you have! [Read More]

## Getting Around

### cd, cd .., cd -, and more.

When you first start using the CLI, you will spend most of your time navigating the file system, looking for things. In this post I’ll give you some tips that should make this process more enjoyable. When you first open the terminal program you should automatically be in your home directory. Your home directory is where all your files live. You can verify this by issuing the pwd command. You should see something that looks like this: /home/gabe or /Users/gabe if you are on a Mac. [Read More]