Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-30-2007, 05:41 AM   #1
Senior Member
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,129

Rep: Reputation: 30
Not shown the message

I use "ls *.prn" in a directory , if there is no matched file , it wil shown message "ls: *.tmp: No such file or directory" , if I don't want any message shown even no matched file , what can I do ? thx
Old 07-30-2007, 05:47 AM   #2
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,057

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
The "No such file or directory" is an error, so you can redirect it like this:
ls *.prn 2> /dev/null
Then you won't see (any) error messages


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
While booting no option is shown for Linux! Only windows xp is shown!! mon avis Linux - General 7 08-06-2006 04:14 PM
a down interface is not shown Rajeev Kumar Linux - Security 3 03-28-2006 04:28 PM
File on cd not shown esher2292 Linux - General 3 05-23-2004 02:51 PM
Epson Stylus CX3200 Help???? Scanner Error message shown? Becks7 Linux - Hardware 0 12-26-2003 06:51 PM
ext3 shown as fat32 bluecadet Linux - General 1 01-04-2002 08:44 AM

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

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