Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-12-2004, 09:54 PM   #1
LQ Newbie
Registered: May 2004
Posts: 2

Rep: Reputation: 0
ls command line, color and wildcards

Hello everybody,

I still have questions on a basic command line "ls", after the man page I found no answer. So I try this good forum:

1/ Is it possible to keep the colored filename when you piped it to a "less" or a "more" (or any equivalent) command ?

2/ I tried to use wildcards such as * or ? on my FAT32 partition (for example: ls *.zip) and it returns an argument error whereas on my ext3 partitions the same command works perfectly. Something wrong or is it normal?

Thanks in advance for any kind of help.

My config :

Mandrake 10.0 Community
Pentium IV 2.8C
HD Maxtor 120Go Serial ATA
Old 05-13-2004, 06:01 AM   #2
Registered: Oct 2002
Location: Bangalore
Distribution: Gentoo Linux
Posts: 96

Rep: Reputation: 16
ls --color | less

For the FAT partition, try:
ls *.ZIP

Maybe there's a problem with upper and lower cases.



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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 08:19 PM
Command to output file content line by line aznluvsmc Programming 2 09-12-2004 08:45 PM
51 characters only in the 1st Line of command line eggCover Linux - General 2 07-29-2004 02:28 PM
Changing color of command line interface JustinCoyan Slackware 1 05-28-2004 12:35 PM
wildcards with the "rename" command mattn Linux - General 3 05-13-2004 08:43 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:32 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
Open Source Consulting | Domain Registration