Quest to Learn the UNIX Shell (bash)

| | Comments (1) | TrackBacks (0)

Been learning the UNIX Shell, which uses a command-line interface (from a terminal) .. something I've wanted to do ever since we upgraded to the Virtual Private Server last year. (Linux is a variant of UNIX.)

Linux shell terminalEven basic knowledge of (how to use) the Linux command line makes life administering a VPS much easier.

The Shell is simply a program that allows users (like me) to interact with the operating system (sometimes termed the 'kernel'). It can be conceived of as a 'layer' sitting between you and the operating system .. hence the term » shell.

Several shells exist, but nearly all Linux distributions come with » bash (Bourne Again Shell) .. cuz it's free, powerful and easy to use.

On my laptop I have installed a copy of Ubuntu Linux that I use to learn the shell (practice). Before jumping into learning the Shell, I figured this was a good time to upgrade my 'installation' of Ubuntu .. to the latest release (» v9.04, 'Jaunty Jackalope').

So I downloaded » this virtual machine (1.1 gig, using uTorrent). Had trouble getting it connected to the Internet, but that was due to my own inexperience with VMware, and not due to any short-comings of Ubuntu.

Anyway, I am really digging learning the Shell, cuz it's something I can use right away. For example, yesterday I upgraded the blogging software we use here at Radified (Movable Type) to the latest version (» 4.26). Something that used to take hours to accomplish was done in minutes .. (using a series of Shell commands). Beautiful.

••• today's entry continues here below •••

I should probably note that the Shell is also a programming language .. as Nigel pointed out (from New Zealand). See here (excerpted from email):

"The UNIX shell is a powerful programming language in its own right. It can do more than most people realise. The reason people get so excited about Perl is they usually learn it before the Shell language. But actually, Perl is a conceptual evolution from the Shell language with none of the conceptual integrity (which doesn't make it not useful, but not worth learning for its own sake).

The shell language processes strings, by running a few simple substitution rules in order - which means that in terms of internal simplicity, it's actually quite like Scheme. Learning how to use the shell language well is a process similar to learning Scheme. Because it has only a few facilities, learning it is mostly about getting used to the creative application of a few general problem-solving principles that serve you in good stead everywhere.

Now, learning the commands does matter in a practical sense for being familiar with UNIX, but that has nothing to do with learning the shell. It's a much better tool than that and more powerful, too."

Besides Nigel (Thanks, Nigel), Magoo (Linux guru from Arizona) has been helping me here » UNIX Shell scripting. Hard to describe, but you can actually feel the power that knowledge of (how to use) the Shell provides access to (.. sorta like when running a reactor). Very cool.

A few final notes:

UPDATE (July, 2009) - Here's a follow-up .. titled » Learning the Unix Shell (bash) .. written after I'd nearly completed my study of the Unix shell,

« Previous Rad entry ||| NEXT Rad entry »

0 TrackBacks

Listed below are links to blogs that reference this entry: Quest to Learn the UNIX Shell (bash).

TrackBack URL for this entry: http://radified.com/cgi-bin/xmt4/mt-tb.cgi/145

1 Comments

Funny that is what I did, I wanted to learn how to use linux for the sake of using vps server, so I downloaded ubuntu, the desktop version not the server version, and got a cheap vps plan from some company, and started practicing on it.

and you are right " Even basic knowledge of (how to use) the Linux command line makes life administering a VPS much easier.", yet a lot of people don't realize that, instead they look for vps tutorials.

About this Entry

This page contains a single entry by Rad published on June 14, 2009 2:37 PM.

Learning XML was the previous entry in this blog.

10 Points to Illuminate the UNIX Culture is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.