226 You Are Here
The same can be said of Linux – with some notable exceptions.
In Linux, dir won’t fully display the contents of directories, and doesn’thavethepowerorflexibility
of the list command – ls.
In your login directory, for example, type:
dir
Now, in the same xterm window, type:
ls
Looks the same (see Figure 16.5). You see, among other contents, your new file, foo.bar and the
new directory, tigger.
Figure 16.5: The dir and ls commands seem similar
But here the similarities end. Where dir shows you the contents of your directory, it doesn’t actually
show you everything. Even using the ls command, by itself, won’t show you all the files in your
directory. To see everything, you’ve got to call upon an option or two.
For example, in the same window that you’dusedtotypethedir and ls commands, now type:
ls -a
Comments to this Manuals