LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-19-2004, 07:59 AM   #1
uveraser
Member
 
Registered: Dec 2003
Location: Tavistock, Devon, England
Distribution: Slackware 9.1, LFS 5.0, Mandrake 9.0/9.1/10.0, Knoppix 3.1, Windows 98SE, Windows XP Pro
Posts: 37

Rep: Reputation: 15
Question Linking LS to 'L'


Hi,

I have just installed Slackware 9.1. In Mandrake 9.0/9.1, 'ls' could be run by entering just 'l'. This made things much quicker- especially when looking through lots of folders. I tried the obvious, creating a link (in /bin) to 'ls', called 'l'. This worked, but it wasn't in colour. How do I get 'l' to do exactly the same as 'ls'?

Also, whilst I'm on the subject of getting ls to be in colour, the command 'ls ¦ less' doesn't give colour either. Is it possible to get around this- If so, how?

Thankyou in advance
Simon
 
Old 05-19-2004, 09:22 AM   #2
arnold
Member
 
Registered: Dec 2002
Posts: 226

Rep: Reputation: 30
l for ls requires an alias (man bash, search for alias)
type "alias" to chk your aliia

man ls, search for color

use more instead of less
 
Old 05-20-2004, 10:24 AM   #3
uveraser
Member
 
Registered: Dec 2003
Location: Tavistock, Devon, England
Distribution: Slackware 9.1, LFS 5.0, Mandrake 9.0/9.1/10.0, Knoppix 3.1, Windows 98SE, Windows XP Pro
Posts: 37

Original Poster
Rep: Reputation: 15
Thanks Arnold,

I have set up aliases and they work fine, but there is still one problem. Neither 'more' nor 'less' give a colour output. Does anybody know how to get round this?

Thanks
Simon
 
  


Reply



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
Linking Problems doubleds Linux - Software 4 12-03-2004 09:49 PM
linking directories david@aber Linux - Newbie 3 11-25-2004 07:45 AM
Linking Python and C++ irfanhab Programming 2 05-15-2004 01:22 PM
error while linking... trouby Linux - Software 0 10-15-2003 05:18 PM
C++ linking? ugenn Programming 5 05-14-2002 01:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:38 PM.

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