View previous topic :: View next topic |
Author |
Message |
Qubax Guru
Joined: 19 Jul 2002 Posts: 451 Location: Tirol, Austria
|
Posted: Mon Aug 12, 2002 12:38 pm Post subject: executables und directories in different colors |
|
|
i used RH before and liked to have different colors for directories and executables, so i would like to make the same working with GENTOO, but i have no idea how
i know that there is a man somewhere, but by overflying bash-man i couldn't find it (or haven't see it)
somebody knows where to look |
|
Back to top |
|
|
tomas n00b
Joined: 05 Jul 2002 Posts: 62 Location: Sweden
|
Posted: Mon Aug 12, 2002 12:57 pm Post subject: |
|
|
Try adding the following to your .bashrc
Code: | eval `dircolors -b /etc/DIR_COLORS`
alias ls="ls --color=auto" |
|
|
Back to top |
|
|
y0-y0 n00b
Joined: 11 Aug 2002 Posts: 26 Location: somewhere in a restaurant at the other end of the galaxy
|
Posted: Mon Aug 12, 2002 2:01 pm Post subject: |
|
|
you got a list of color codes by chance?... (or a link where i can find more info?) |
|
Back to top |
|
|
tomas n00b
Joined: 05 Jul 2002 Posts: 62 Location: Sweden
|
Posted: Mon Aug 12, 2002 2:07 pm Post subject: |
|
|
man dir_colors |
|
Back to top |
|
|
Qubax Guru
Joined: 19 Jul 2002 Posts: 451 Location: Tirol, Austria
|
Posted: Tue Aug 13, 2002 6:33 pm Post subject: |
|
|
thx i made it |
|
Back to top |
|
|
y0-y0 n00b
Joined: 11 Aug 2002 Posts: 26 Location: somewhere in a restaurant at the other end of the galaxy
|
Posted: Thu Aug 15, 2002 9:34 am Post subject: |
|
|
tomas wrote: | man dir_colors |
oooh never thought it was a package, thought it was some kernel feature
brilliant! just what da doc ordered |
|
Back to top |
|
|
tomas n00b
Joined: 05 Jul 2002 Posts: 62 Location: Sweden
|
Posted: Thu Aug 15, 2002 9:42 am Post subject: |
|
|
It's good to know how to use man. Not only can you use it to get documentation on most commands, there's also documentation on configuration files (section 5), devices (section 4) etc. |
|
Back to top |
|
|
Lion Apprentice
Joined: 23 Jun 2002 Posts: 207
|
Posted: Sat Aug 24, 2002 10:04 am Post subject: |
|
|
tomas wrote: | It's good to know how to use man. Not only can you use it to get documentation on most commands, there's also documentation on configuration files (section 5), devices (section 4) etc. |
Yes, man is really helpful _if_you_already_know_the_command_!
If you have no idea what command to use, how do you find it?
I know of apropos, but often, this will not help either. |
|
Back to top |
|
|
tomas n00b
Joined: 05 Jul 2002 Posts: 62 Location: Sweden
|
Posted: Sat Aug 24, 2002 10:39 am Post subject: |
|
|
If you don't know the command, you can always try the -K option.
man -K 5 dns for example. -K tells man to search all of the man files, not just the short descriptions (which you can search with -k or apropos). If you use it, it might be a good idea to select a section, as in the example.
Sometimes it's helpful to use xman instead. With that, you can easily list all pages in a section and try to find a command by name.
If that doesn't work... Well, there's always Google and The Linux Documentation Project... And of course, https://forums.gentoo.org |
|
Back to top |
|
|
|