Visit Jeremy's Blog.
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, 06:41 AM   #1
Senior Member
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

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, 06:47 AM   #2
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
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 05:14 PM
a down interface is not shown Rajeev Kumar Linux - Security 3 03-28-2006 05:28 PM
File on cd not shown esher2292 Linux - General 3 05-23-2004 03:51 PM
Epson Stylus CX3200 Help???? Scanner Error message shown? Becks7 Linux - Hardware 0 12-26-2003 07:51 PM
ext3 shown as fat32 bluecadet Linux - General 1 01-04-2002 09:44 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration