> http://www.xfree86.org/ — Home of the XFree86 Project, Inc., which has provided a graphical interface for Linux for nearly 10 years.
> http://www.kde.org/ — The place to get started when learning about KDE and the latest developments.
> http://www.gnome.org/ — The launch point for more information about GNOME, links to new clients, and GNOME development projects.
> http://people.redhat.com/~hp/metacity/ — Havoc Pennington's metacity
down load page, where you can get the latest full-source version of this window manager.
> http://sawmill.sourceforge.net/ — The home page for the sawfish
window manager (formerly called sawmill).
> http://www.windowmaker.org/ — The source for the latest version of Window Maker.
> http://www.icewm.org/ — IceWM's home page.
> http://www.lesstif.org/ — The home page of the LessTif project, which aims to provide GNU GPL versions of OSF/Motif-compatible software libraries.
> http://scwm.sourceforge.net/ — The home page of a lightweight, yet virtual desktop-enabled window manager.
> http://www.fvwm.org/ — The home page for FVWM2, where you can download the latest version.
> http://www.novell.com/products/desktop/ — The place to get started with Ximian GNOME.
CHAPTER 4
Command-Line Quick Start
The command line is one of the most powerful tools available for use with Fedora, and indeed Linux. Knowledge of the commands associated with it and how to string them together will make working with Fedora that much easier, particularly if you are having a problem getting X to work.
This chapter looks at some of the basic commands that you need to know to be productive at the command line. You will find out how to get to the command line, and also get to grips with some of the commands used to navigate around the file system. Later on in this book is the 'Command-Line Master Class' (Chapter 32), which explores the subject in more depth.
Understanding the Command Line
Hang around Linux users for any length of time and it won't be long before you hear them speak in hushed tones about the command line or the terminal. Quite rightly, too, because the command line offers a unique and powerful way to interact with Linux. However, for the most part, you may never need to access the command line because Fedora offers a variety of graphical tools that enable you to configure most things on your system.
But this is the real world, and sometimes things go wrong, meaning that you might not always have the luxury of a graphical interface to work with. It is in these situations that a fundamental understanding of the command line and its uses can be a real life saver.
It's tempting to think of the command line as the product of some sort of black and arcane art, and in some ways it can appear to be extremely difficult to use. By the end of this chapter, you should at least be comfortable with using the command line and ready to move on to Chapter 32.
More important, however, you will be able to make your way around a command line-based system, which you are likely to encounter if you work within a server environment.
This chapter introduces you to a number of commands, including commands that enable you to do the following tasks:
> Perform routine tasks — Logging in and out, using the text console, changing pass words, listing and navigating directories
> Carry out basic file management — Creating files and folders, copying or moving them around the file system, renaming and ultimately deleting them (if necessary)
> Execute basic system management — Shutting down or rebooting, reading man pages, and using text-based tools to edit system configuration files
The information in this chapter is valuable for individual users or system administrators who are new to Linux and are learning to use the command line for the first time.
Those of you who have used a computer for many years will probably have come into contact with MS- DOS, in which case being presented with a black screen will fill you with a sense of nostalgia. Do not get too comfy; the command line in Linux is far superior to its distant MS-DOS cousin. Whereas MS-DOS skills are transferable only to other MS-DOS environments, the skills that you learn at the Linux command line can be transferred easily to other UNIX-like operating systems, such as Solaris, OpenBSD, FreeBSD, and even Mac OS X (because it allows you access to a terminal).
One concept you will have to get used to is that of user-based security. By and large, only two types of users will access the system as actual users. The first type is the regular user, of which you created one when you started Fedora for the first time (see Chapter 1, 'Installing Fedora'). These users can change anything that is specific to them, such as the wallpaper on the desktop, their personal preferences, and so on. These users are prevented from making changes that will affect other users than themselves, sometimes called systemwide changes.
To make systemwide changes, you need to use the super-user or root account. This is a special-access privilege that gives you complete control over the entire system, with the ability to destroy everything should you so want. If you have installed Linux on your own PC, you automatically have access to the root account as you set it up during the installation. However, it is not unusual for users to not have any access to the root user, especially in corporate environments where security and system stability are of paramount importance.
An example of the destructive nature of root can be found in the age-old example of #rm -rf /
, which erases all the data on your hard drive. You need to be especially careful when working as root; otherwise, you might irreparably damage your system. Don't let this worry you, however, because the root user is fundamental to a healthy Linux system. Without it you would not be able to install new software, edit system configuration files, or do any number of administration tasks. By the end of this chapter, you will feel comfortable working as root and be able to adequately administer your system.
As with most things, Fedora offers you a number of ways to access the command line. You can use the terminal entry in Applications, System Tools, but by far the simplest way is to press Ctrl+Alt+F1. Fedora switches to a black screen and a traditional login prompt that resembles the following:
Fedora Release 8 (Werewolf)
Kernel 2.6.23-0.217.fc8 on an i686