Announcement

Collapse
No announcement yet.

[SOLVED] Problem with command ls

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] Problem with command ls

    Normally, when I type the 'ls' command at the konsole, I see the directories and all in a certain color.

    I found out (and it's pretty obvious) that's not the case anymore.

    Anyone else had this problem ?

    I looked at the man pages, and it says: ls --color,
    and then there's the option 'never', 'always' or 'auto'.

    But that doesn't seems to work quite well....not when I'm using 'always' or 'auto' anyway.

    It seems to work only once.....and then it's back to no color......which is pretty annoying (for me anyway >)

    any idea's ?
    Acer Aspire 5100<br />Kubuntu Hardy 8.04

    #2
    Re: Problem with command ls

    It's likely an alias issue, do you have the 'standard' ls='ls --color=auto' alias active?
    (You can check active aliases with the 'alias' command)

    If it isn't, check that your ~/.bashrc (if you're using bash) sets the ls='ls --color=auto' alias (ask for details if you're unsure...or if you don't use bash as a shell)

    It seems to work only once.....and then it's back to no color
    That's how it's supposed to work, the command option only affects the command being run, not subsequent commands (the alias ls='ls --color=auto' adds the --color=auto option to ls command automatically, if active).

    Comment

    Working...
    X