Linux CLI for Beginners, or, Fear Not the Linux Command Line!

Linux forums, mailing lists, and even how-to articles are full of fearful comments against the Linux command line. Akkana Peck gives an introduction to the Linux command line, starting with a lesson on the fastest way to find files.
(Page 1 of 4)

Most recent converts to Linux spend most of their time in the GUI -- the graphical desktop (whether Gnome, or KDE, or XFCE, or some other interface) that's made to look and act somewhat like Windows and Mac.

But if you spend all your time in the GUI, you're missing out. The Linux command-line gives you a lot of power -- it lets you do tasks that are difficult or impossible with the GUI, and for tasks that you do a lot, such as launching the same applications everyday, it's often faster. When you read about using the command line, which is often abbreviated to CLI for "command-line interface", they usually mean typing commands into a terminal. This is a term leftover from the olden days of interfacing with mainframes via dumb terminals which had no processing power of their own; they were pretty much just monitors and keyboards. When we refer to a Linux terminal it's a software application, and if you want to get technical it's a terminal emulator.

So the first step is finding a terminal on your Linux system, and I haven't seen a Linux distribution yet that didn't include several by default. On KDE look in your start menus for Konsole, and on Gnome look for Terminal or Gnome-Terminal. There are dozens of different terminals: xterm, aterm, rxvt, eterm, and many more. Apparently Linux geeks love terminals.

Wading through all those menus to launch our terminal is tedious, so our first step in learning mighty command-line powers is a fast keyboard shortcut for opening a "run command" dialog. This way we can quickly type in the name of an application to start it. Press the Alt and F2 keys at the same time, and on KDE you see something like Figure 1. Gnome calls it "run application" and it looks similar, with one very nice addition-- an alphabetical graphical menu to browse. On KDE type in konsole and press Run, and in Gnome type terminal or gnome-terminal and press Run. Lo and behold, your shiny terminal opens before you, just like Figure 2 shows.

What you see displayed in the terminal is the command prompt, in this example carla@xena:~$. This tells you the name of the user, the name of their computer, ~ means the current directory is Carla's home directory, and $ means ordinary, unprivileged user. When you see # that means all-powerful root user.

Page 1 of 4

1 2 3 4
Next Page

0 Comments (click to add your comment)
Comment and Contribute


(Maximum characters: 1200). You have characters left.



IT Management Daily
Don't miss an article. Subscribe to our newsletter below.

By submitting your information, you agree that datamation.com may send you Datamation offers via email, phone and text message, as well as email offers about other products and services that Datamation believes may be of interest to you. Datamation will process your information in accordance with the Quinstreet Privacy Policy.