LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-16-2010, 03:54 AM   #1
PJvG
LQ Newbie
 
Registered: Feb 2010
Location: Eindhoven, the Netherlands
Distribution: Ubuntu
Posts: 20

Rep: Reputation: 0
What are the red lines in my terminal?


Hello,

I've cross compiled busybox with buildroot for the mini2440 (configured: arm920t EABI) I compiled it dynamically.
I use Ubuntu 9.10 on my build system.

Doing the "ls -l"-command in the /bin directory I see that busybox is marked red. (This is still on my build system, not on my target system!) The background of the word busybox is marked red. And the word busybox is in default colour instead of yellow, even though all permissions have the executable sign.

I was wondering what this means.
Also whether it's a bad thing?


Also could this mean this is why my mini2440 will not boot correctly after transferring this root file system? (It stops the booting process just after loading the root file system)

Thank you,
PJvG
 
Old 03-16-2010, 04:05 AM   #2
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 624

Rep: Reputation: 64
Actually there are different color specifications for different kinds of files in linux, it makes them easier to manage. If the file is one of these files:
.tgz
.arj
.taz
.lzh
.zip
.z
.Z
.gz
.bz2
.bz
.tz
.rpm
.cpio

it will be in red color.

Check this file for more info : /etc/DIR_COLORS
 
Old 03-16-2010, 04:25 AM   #3
Maligree
Member
 
Registered: Mar 2008
Distribution: Gentoo, CentOS, Fedora, Arch
Posts: 231
Blog Entries: 1

Rep: Reputation: 42
Quote:
The background of the word busybox is marked red. And the word busybox is in default colour instead of yellow, even though all permissions have the executable sign.
To me that's a setuid.
 
Old 03-16-2010, 04:31 AM   #4
PJvG
LQ Newbie
 
Registered: Feb 2010
Location: Eindhoven, the Netherlands
Distribution: Ubuntu
Posts: 20

Original Poster
Rep: Reputation: 0
Thank you, but like I said I'm using Ubuntu. Ubuntu has no /etc/DIR_COLORS !

However I have found the data you pointed to by using the "dircolors -p"-command.
Still this tells me nothing about the background color of lines!

(And I just found out I should have said green instead of yellow in my first post. Green is the color of executables. I guess I'm a bit colorblind..)
 
Old 03-16-2010, 04:31 AM   #5
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 70
Quote:
Originally Posted by Maligree View Post
To me that's a setuid.
Yes that's correct, I think sayan was talking about list items with red text, without realising OP meant the red backgrounded text.

@OP: If you look at what aliases you have, you'll see that 'ls' is set to use 'dircolors'; its set in my .bashrc, for yours it may be the same or elsewhere
Code:
jc@jcmain:~$ grep -n ls .bashrc
77:# enable color support of ls and also add handy aliases
80:    alias ls='ls --color=auto'
Which means when I'm running ls I'm actually running ls --color-auto. If it bothers you, you can get rid of the alias quite easily.

But yes, the different colours wont cause any issue or error.
 
1 members found this post helpful.
Old 03-16-2010, 04:34 AM   #6
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 624

Rep: Reputation: 64
Oops!! My bad.....
 
Old 03-16-2010, 04:42 AM   #7
PJvG
LQ Newbie
 
Registered: Feb 2010
Location: Eindhoven, the Netherlands
Distribution: Ubuntu
Posts: 20

Original Poster
Rep: Reputation: 0
Thank you Maligree and jamescondron!

It doesn't bother me, I was just wondering what it is.
 
Old 03-16-2010, 05:21 AM   #8
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 70
As a caveat, the file command is pretty good when it comes to stuff like this to work out why a file is coloured the way it is, though only if you have two or more coloured the same that you may compare
 
Old 03-16-2010, 06:26 AM   #9
PJvG
LQ Newbie
 
Registered: Feb 2010
Location: Eindhoven, the Netherlands
Distribution: Ubuntu
Posts: 20

Original Poster
Rep: Reputation: 0
Ah I see.
When I do file it says:
Code:
.../bin$ file busybox
busybox: setuid ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), stripped
So indeed it's a setuid..
Thank you.
 
  


Reply

Tags
arm, arm9, busybox, compiling, cross, terminal



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
New lines in terminal mg92865 Linux - Newbie 10 10-29-2012 11:56 PM
number of Lines displayed in Terminal roadrash Linux - Newbie 1 07-03-2009 06:52 AM
Multiple lines in terminal seabass341 Linux - Newbie 6 06-08-2009 10:29 PM
New lines in gnome-terminal overlapping old lines instead of scrolling crontab Linux - Software 2 04-17-2009 10:08 AM
weird lines on X window terminal - I'm worried... towsonu2003 Linux - Hardware 8 09-22-2005 03:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:24 AM.

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