Red Hat NETSCAPE MANAGEMENT SYSTEM 6.0 - CUSTOMIZATION User Manual Page 240

  • Download
  • Add to my manuals
  • Print
  • Page
    / 300
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 239
228 You Are Here
If we want to see the size of a le or directory, when it was created and more, we can just add the
longoption (-l)toourls -a command.
Try it. Type:
ls -al
Theres quite a bit more detail now. You can see the le creation date, its size, ownership, permissions
and more.
You dont have to be in the directory whose contents you want to view, either.
Letsseewhatsinthe/etc directory by typing:
ls -al /etc
Here, youll get plenty of information about the contents of the /etc directory.
If you want to add color to your listing, just include the --color option.
ls -al --color /etc
To some, adding --color does more than add a splash of color; it gives a clue about the types of
les in a directory. For example, directories might all be a royal blue, program les would be green,
and so on.
If you like what you see, heres how you can display the listing in color all the time. Briey, well be
adding one line to the .bashrc le in our login directory.
The .bashrc le is used by your shell when you login (an example .bashrc le is shown in Figure
16.7).
Now before we go any further...
Remember that any changes you make to conguration les can cause you a world of grief if youve
made a mistake and you dont have a backup copy of that le.
To make a backup copy, make sure youre in your login directory and in an xterm window, type:
cd ˜
to get to your login directory. Then copy the .bashrc le, keeping it in the same directory, but with
a name like .bashrc2.
cp .bashrc .bashrc2
Page view 239
1 2 ... 235 236 237 238 239 240 241 242 243 244 245 ... 299 300

Comments to this Manuals

No comments