You are not logged in.

#1 2011-09-06 21:55:34

arch_is_awesome
Member
From: USA
Registered: 2011-09-03
Posts: 5

No color output with ls command!

Does anybody know what to put in your .bashrc to get color with ls like other Linux distributions e.g. Gentoo? Thanks!

Last edited by arch_is_awesome (2011-09-06 22:09:45)


Arch Linux: the simplest, lightweight, and most awesome Linux distribution! smile

Offline

#2 2011-09-06 21:59:10

jaco
Member
From: Toulouse, France
Registered: 2011-03-17
Posts: 149

Re: No color output with ls command!

alias ls='ls --color=auto'

Offline

#3 2011-09-06 22:06:20

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: No color output with ls command!

arch_is_awesome, I suggest you check the manpage before posting.

Not sure if aliasing it to 'ls' is the best choice.

Offline

#4 2011-09-06 22:15:02

arch_is_awesome
Member
From: USA
Registered: 2011-09-03
Posts: 5

Re: No color output with ls command!

jaco wrote:
alias ls='ls --color=auto'

Doesn't work! I want colored text like when I first setup Arch Linux and made my user account! Not blue highlights over regular white text!


Arch Linux: the simplest, lightweight, and most awesome Linux distribution! smile

Offline

#5 2011-09-06 22:16:49

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: No color output with ls command!

arch_is_awesome wrote:
jaco wrote:
alias ls='ls --color=auto'

Doesn't work! I want colored text like when I first setup Arch Linux and made my user account! Not blue highlights over regular white text!

You want colored prompt?

The colors depend on what exactly you're listing: directories, files, executable files, names pipes etc.

Offline

#6 2011-09-06 22:21:15

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: No color output with ls command!

arch_is_awesome wrote:
jaco wrote:
alias ls='ls --color=auto'

Doesn't work! I want colored text like when I first setup Arch Linux and made my user account! Not blue highlights over regular white text!

...and I want it NOW!!!

Good luck with your demands.

Most people find that thanking people for their help and being gracious is a more effective way to seek assistance with issues here.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2011-09-06 22:22:47

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: No color output with ls command!

arch_is_awesome, could you post a screenshot? I have no idea what are you talking about so I can't help you.

Offline

#8 2011-09-06 22:28:59

jaco
Member
From: Toulouse, France
Registered: 2011-03-17
Posts: 149

Re: No color output with ls command!

arch_is_awesome wrote:

Doesn't work! I want colored text like when I first setup Arch Linux and made my user account! Not blue highlights over regular white text!

You've mentionned Gentoo: as far as i know, i gave you the alias used by this distribution (but may be its colors are differents).

The colors depend on the file type (here, blue for directories, white for regular files, cyan for links, etc.)

As mentionned before, i suggest you read the ls(1) manpage, searching for the --color option

You may also read dircolors(1) manpage

(BTW, avoid the ! sign... it's rather non friendly)

Last edited by jaco (2011-09-06 22:31:39)

Offline

#9 2011-09-06 23:10:40

arch_is_awesome
Member
From: USA
Registered: 2011-09-03
Posts: 5

Re: No color output with ls command!

How do I post a screenshot? Yes, if I can figure it out, I will post a screenshot. smile


Arch Linux: the simplest, lightweight, and most awesome Linux distribution! smile

Offline

#10 2011-09-06 23:14:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: No color output with ls command!

arch_is_awesome wrote:

How do I post a screenshot? Yes, if I can figure it out, I will post a screenshot. smile

You make a photo / screenshot and use https://bbs.archlinux.org/help.php#bbcode
https://wiki.archlinux.org/index.php/Fo … s_and_Code

Offline

Board footer

Powered by FluxBB