The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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



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.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Listing files with full path r_sethu UNIX for Dummies Questions & Answers 5 06-15-2009 02:56 AM
List files with full path mr_bold Shell Programming and Scripting 3 10-07-2008 12:19 PM
to find the file with full path surjyap Shell Programming and Scripting 5 01-18-2008 03:26 PM
Removing duplicate files from list with different path vino Shell Programming and Scripting 10 05-12-2005 08:44 AM
process executable file full path xtrix UNIX for Advanced & Expert Users 3 10-11-2004 04:28 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-13-2007
Sowser Sowser is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 90
list all files with full path of the file

How can i list every single file on a sun solaris server running 2.8 starting from '/' with the full path included in it?

example.
/
...
...
...
/etc/inetd.conf
/etc/passwd
/etc/shadow
...
...
...
/var/adm/messages
/var/adm/messages.0
/var/adm/messages.1
...
...
...
/last/file/on/the/system.conf

Thanks.
-Sowser
  #2 (permalink)  
Old 02-13-2007
anbu23 anbu23 is offline Forum Advisor  
Registered User
  
 

Join Date: Mar 2006
Location: Bangalore,India
Posts: 1,398
Code:
find / -print
  #3 (permalink)  
Old 02-13-2007
Sowser Sowser is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 90
thanks

omg, i was close...i tried a few things like find / -name * and ls -lR /...

i knew it was something that simple....thanks for the help.

-S
  #4 (permalink)  
Old 02-13-2007
sb008 sb008 is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 384
If you are only interested in files of a specific type use the "-type" option.

find / -type d -print (to list only directories)
find / -type l -print (to list only soft links)
find / -type b -print (to list only bliock special files)
find / -type f -print (to list only regular files)
etc
etc
  #5 (permalink)  
Old 02-13-2007
sb008 sb008 is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 384
Or the opposite

find / ! -type d -print (to list everything except directories)
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 On




All times are GMT -4. The time now is 05:53 AM.


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-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0