Unix Technical Forum

dircolors: Slackware vs. the other distros

This is a discussion on dircolors: Slackware vs. the other distros within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi, I'm currently fiddling with dircolors to 1) understand it and 2) have a nice shell. I've googled around, ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 04:49 PM
Kiki Novak
 
Posts: n/a
Default dircolors: Slackware vs. the other distros

Hi,

I'm currently fiddling with dircolors to 1) understand it and 2) have a nice
shell.

I've googled around, and what I grasp is: Slackware works differently than
the other distros.

What I found so far. In any other distro (Debian, Knoppix, Gentoo,
Mandrake, ...), you do the following to define individual colors for ls:

$ dircolors -p > my_colours.txt

Now you edit my_colours.txt, which has one entry per line, and eventually
you change some of the color codes. Say for example I want yellow
directories instead of dark blue ones, I replace DIR 01;34 by DIR 01;33...
and so on. After editing the file, I apply the changes with:

$ eval `dircolors /path/to/my_colours.txt`

And once I'm happy with the result:

$ dircolors my_colours.txt >> ~/.bashrc

I tried this on a Knoppix (Murphy's law: I only happen to have two
Slackwares and one Slack-derivate, Vector, on my box, hence KnoppixD),
and it works OK.

Question: what would be the orthodox way to do that thing on a Slack? The
only info I found was that things work differently on Slack. But no article
mentioned how.

Colorful cheers,

Niki Kovacs
--
Whereof one cannot speak, thereof one frequently goes ranting on and on at
ball-breaking length. (Ludwig Wittgenstein, Tractatus Logico-Philosophicus,
first draft)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 04:49 PM
Kiki Novak
 
Posts: n/a
Default Re: dircolors: Slackware vs. the other distros

Kiki Novak wrote:

> Hi,
>
> I'm currently fiddling with dircolors to 1) understand it and 2) have a
> nice shell.
>
> I've googled around, and what I grasp is: Slackware works differently than
> the other distros.
>
> What I found so far. In any other distro (Debian, Knoppix, Gentoo,
> Mandrake, ...), you do the following to define individual colors for ls:
>
> $ dircolors -p > my_colours.txt
>
> Now you edit my_colours.txt, which has one entry per line, and eventually
> you change some of the color codes. Say for example I want yellow
> directories instead of dark blue ones, I replace DIR 01;34 by DIR 01;33...
> and so on. After editing the file, I apply the changes with:
>
> $ eval `dircolors /path/to/my_colours.txt`
>
> And once I'm happy with the result:
>
> $ dircolors my_colours.txt >> ~/.bashrc
>
> I tried this on a Knoppix (Murphy's law: I only happen to have two
> Slackwares and one Slack-derivate, Vector, on my box, hence KnoppixD),
> and it works OK.
>
> Question: what would be the orthodox way to do that thing on a Slack? The
> only info I found was that things work differently on Slack. But no
> article mentioned how.
>
> Colorful cheers,
>
> Niki Kovacs


I'll answer that myself, because I just found out:

man dir_colors (!= dircolors!!!)

NK
--
Whereof one cannot speak, thereof one frequently goes ranting on and on at
ball-breaking length. (Ludwig Wittgenstein, Tractatus Logico-Philosophicus,
first draft)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 04:49 PM
Kiki Novak
 
Posts: n/a
Default Re: dircolors: Slackware vs. the other distros

NOTE: This message was sent thru a mail2news gateway.
No effort was made to verify the identity of the sender.
--------------------------------------------------------

Hi! I am writing an article about how to install linux and yet I am
having problems getting slackware installed on my boyfriend's
computer. Can anybody help me?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 04:50 PM
Kiki Novak
 
Posts: n/a
Default Re: dircolors: Slackware vs. the other distros

Hi! I am writing an article about linux and I was wondering if
anyone could tell me the difference between Slackware and Debian?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 04:50 PM
Floyd L. Davidson
 
Posts: n/a
Default Re: dircolors: Slackware vs. the other distros

Kiki Novak <mickey@mouse.com> wrote:
>Hi! I am writing an article about linux and I was wondering if
>anyone could tell me the difference between Slackware and Debian?


Slackware is spelled with 9 letters, and Debian with only 6.

Have any more dumb questions?

--
FloydL. Davidson <http://web.newsguy.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) floyd@barrow.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:35 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com