Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google site



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-05-2007
Registered User
 

Join Date: Jul 2006
Posts: 84
Find command

Hi,

I need a small help in find command. Actually i want to search for a directory say 'x'. but it also give some unwanted information also as below
like permission denied.... I just need the directory path if present.


command : find /home -name 'x' -type d -print

find: cannot read dir /home/lost+found: Permission denied
find: cannot read dir /home/jgreiner/powerctrv712/.ssh: Permission denied
find: cannot read dir /home/jgreiner/powerctrv712/powerex5.2.1/logs/: Permission denied
find: cannot read dir /home/jhodge/.ssh: Permission denied
find: cannot read dir /home/powerctr/.ssh: Permission denied
find: cannot read dir /home/merdlen/.ssh: Permission denied
find: cannot read dir /home/dlewis/.ssh: Permission denied
find: cannot read dir /home/mburnitz.delete/.ssh: Permission denied
find: cannot read dir /home/pegwmp/.ssh: Permission denied
find: cannot read dir /home/orca/.ssh: Permission denied
find: cannot read dir /home/mqm/.ssh: Permission denied

/home/x


Thanks in advance
Ammu
Sponsored Links
  #2 (permalink)  
Old 07-05-2007
Shell_Life's Avatar
Registered User
 

Join Date: Mar 2007
Location: Bahia, Brazil
Posts: 695

Code:
find /home -name 'x' -type d -print 2>/dev/null

  #3 (permalink)  
Old 07-05-2007
Registered User
 

Join Date: Jul 2006
Posts: 84
Thanks buddy,

Can you please explain me in detail what 2>/dev/null does

Ammu
  #4 (permalink)  
Old 07-05-2007
Shell_Life's Avatar
Registered User
 

Join Date: Mar 2007
Location: Bahia, Brazil
Posts: 695
Sends the standard error to the unix null device/file.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to find a file named vijay in a directory using find command amirthraj_12 UNIX for Dummies Questions & Answers 6 10-25-2008 01:37 PM
Help Required: Command to find IP address and command executed of a user loggedout Security 2 08-06-2008 09:12 PM
Little bit weired : Find files in UNIX w/o using find or where command jatin.jain Shell Programming and Scripting 10 09-19-2007 07:47 AM
command find returned bash: /usr/bin/find: Argument list too long yacsil Shell Programming and Scripting 1 12-15-2003 06:38 PM
how to find a file in UNIX without find command? bluo Shell Programming and Scripting 3 09-25-2003 12:47 AM



All times are GMT -4. The time now is 09:50 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2010. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0