LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 05-12-2004, 08:54 PM   #1
ioio85
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, 05:01 AM   #2
arvind_sv
Member
 
Registered: Oct 2002
Location: Bangalore
Distribution: Gentoo Linux
Posts: 96

Rep: Reputation: 15
ls --color | less

For the FAT partition, try:
ls *.ZIP

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

Arvind
 
  


Reply


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 07:19 PM
Command to output file content line by line aznluvsmc Programming 2 09-12-2004 07:45 PM
51 characters only in the 1st Line of command line eggCover Linux - General 2 07-29-2004 01:28 PM
Changing color of command line interface JustinCoyan Slackware 1 05-28-2004 11:35 AM
wildcards with the "rename" command mattn Linux - General 3 05-13-2004 07:43 PM


All times are GMT -5. The time now is 04:16 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration