-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Linux Command Line and Shell Scripting Bible - Third Edition
By :
To see what files are available on the system, use the list command (ls). This section describes the ls command and options available to format the information it can display.
The ls command at its most basic form displays the files and directories located in your current directory:
$ ls
Desktop Downloads Music Pictures Templates Videos
Documents examples.desktop my_script Public test_file
$
Notice that the ls command produces the listing in alphabetical order (in columns rather than rows). If you're using a terminal emulator that supports color, the ls command may also show different types of entries in different colors. The LS_COLORS environment variable controls this feature. (Environment variables are covered in Chapter 6). Different Linux distributions set this environment variable depending on the capabilities of the terminal emulator.
If you don't have a color terminal emulator, you can...
Change the font size
Change margin width
Change background colour