Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
executables und directories in different colors
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Qubax
Guru
Guru


Joined: 19 Jul 2002
Posts: 451
Location: Tirol, Austria

PostPosted: Mon Aug 12, 2002 12:38 pm    Post subject: executables und directories in different colors Reply with quote

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
View user's profile Send private message
tomas
n00b
n00b


Joined: 05 Jul 2002
Posts: 62
Location: Sweden

PostPosted: Mon Aug 12, 2002 12:57 pm    Post subject: Reply with quote

Try adding the following to your .bashrc
Code:
eval `dircolors -b /etc/DIR_COLORS`
alias ls="ls --color=auto"
Back to top
View user's profile Send private message
y0-y0
n00b
n00b


Joined: 11 Aug 2002
Posts: 26
Location: somewhere in a restaurant at the other end of the galaxy

PostPosted: Mon Aug 12, 2002 2:01 pm    Post subject: Reply with quote

you got a list of color codes by chance?... (or a link where i can find more info?)
Back to top
View user's profile Send private message
tomas
n00b
n00b


Joined: 05 Jul 2002
Posts: 62
Location: Sweden

PostPosted: Mon Aug 12, 2002 2:07 pm    Post subject: Reply with quote

man dir_colors :)
Back to top
View user's profile Send private message
Qubax
Guru
Guru


Joined: 19 Jul 2002
Posts: 451
Location: Tirol, Austria

PostPosted: Tue Aug 13, 2002 6:33 pm    Post subject: Reply with quote

thx i made it
Back to top
View user's profile Send private message
y0-y0
n00b
n00b


Joined: 11 Aug 2002
Posts: 26
Location: somewhere in a restaurant at the other end of the galaxy

PostPosted: Thu Aug 15, 2002 9:34 am    Post subject: Reply with quote

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
View user's profile Send private message
tomas
n00b
n00b


Joined: 05 Jul 2002
Posts: 62
Location: Sweden

PostPosted: Thu Aug 15, 2002 9:42 am    Post subject: Reply with quote

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. 8)
Back to top
View user's profile Send private message
Lion
Apprentice
Apprentice


Joined: 23 Jun 2002
Posts: 207

PostPosted: Sat Aug 24, 2002 10:04 am    Post subject: Reply with quote

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. 8)

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
View user's profile Send private message
tomas
n00b
n00b


Joined: 05 Jul 2002
Posts: 62
Location: Sweden

PostPosted: Sat Aug 24, 2002 10:39 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum