Book Image

Linux Essentials - Second Edition

By : Christine Bresnahan, Richard Blum
Book Image

Linux Essentials - Second Edition

By: Christine Bresnahan, Richard Blum

Overview of this book

Linux Essentials, Second Edition provides a solid foundation of knowledge for anyone considering a career in information technology, for anyone new to the Linux operating system, and for anyone who is preparing to sit for the Linux Essentials Exam. Through this engaging resource, you can access key information in a learning-by-doing style. Hands-on tutorials and end-of-chapter exercises and review questions lead you in both learning and applying new information—information that will help you achieve your goals! With the experience provided in this compelling reference, you can sit down for the Linux Essentials Exam with confidence. An open-source operating system, Linux is a UNIX-based platform that is freely updated by developers. The nature of its development means that Linux is a low-cost and secure alternative to other operating systems, and is used in many different IT environments. Passing the Linux Essentials Exam prepares you to apply your knowledge regarding this operating system within the workforce.
Table of Contents (19 chapters)

Navigating Files and Directories

Once you’re comfortable with the layout of the Linux files, you may be ready to do some exploring. In the next few pages, we describe how to learn what files are on your hard disk, how to change directories, how to refer to files that aren’t in the current directory, and how to use the most common commands for manipulating files.

Obtaining File Listings


To manipulate files, it’s helpful to know what they are. The ls command, whose name is short for list, provides this information by displaying the names of files in a directory. If you pass it no options, it shows the files in the current directory. However, you can pass it both options and file or directory specifications. This command supports a huge number of options; consult its man page for details. Table 7.2ls options.


Table 7.2 Common ls options

Option (long form) Option (short form) Description
––all -a Normally, ls omits files whose names...