Learning the Commandline – Looking at files

By now you should know your way around the file system and how to move around (if you don’t, go back and read the other articles. This is a series after all ). You may have wondered, “I have all these files, how do I see what’s inside them in Terminal?” There’s an app for that (sorry, couldn’t resist). Enter the cat command and it’s helpers. We’re also going to learn what a pipe is. cat is *nix for catalog, as in a listing of what’s in a file. ANY …

Read More

Learning the Command Line – Shell Scripts

Terminal commands are great but what if you want to have something done every time you login? What if you need to do something on several files or some other repetitive action and don’t want to type in the commands every time. That could get time consuming and dreary. In this article, we will set up our Terminal environment to make certain things a little easier and get a start on shell scripting. A shell script is a text file with all the commands you want run, one after another. …

Read More