Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 12-05-2001, 05:11 PM   #1
LQ Newbie
Registered: Dec 2001
Posts: 1

Rep: Reputation: 0
symlinks not working

We are running Redhat 7.0 and no matter which directory we go into that contains symlinks and do a ls -l it shows the symlinks in red. We have reload Redhat with no change. We have tried everything we know of to do. Anybody have any ideals of what causes this.

Old 12-05-2001, 06:20 PM   #2
Senior Member
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
pretty sure it's a bash option. or it might be an ls option... actually... yeah... it's an ls option, although i don't remember off the top of my head what the enviro-variables are. check "man ls" - it will probably have some info. most distros have the directories, executables, regular files, and symlinks differently colored by default under bash so that it's easier to distinguish them.
Old 12-05-2001, 07:10 PM   #3
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
...also if its red *and blinking as well* it means the symlink is b0rken, either due to deletion or failed/not installed packages.
Old 12-05-2001, 10:08 PM   #4
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
A symlink will also flash red (which, as unSpawn said, means it is b0rked) if you don't have access privileges to the file it points to, or to the directory that file resides in. This will happen, for example, if you are logged as a regular user and view symlinks to programs or directories that only root can access.
Old 12-06-2001, 09:30 PM   #5
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58

for a test try this in your home directory

ln -s bar fu

ls -l



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Symlinks and .. smidgie82 Linux - General 2 12-21-2005 05:13 PM
? on symlinks eroica Linux - Software 1 09-21-2004 10:45 AM
symlinks not working right sidhighwind Linux - General 5 01-23-2004 01:34 AM
symlinks.. NSKL Slackware 3 05-26-2002 06:35 PM
Symlinks b0b0 Linux - General 2 11-08-2001 09:43 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration