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 > Special Forums > UNIX Desktop for Dummies Questions & Answers
.
google unix.com



UNIX Desktop for Dummies Questions & Answers Discuss UNIX and Linux user interfaces like GNOME, KDE, CDE, and Open Office here. All UNIX and Linux Newbies Welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Find files and display only directory list containing those files r7p UNIX for Dummies Questions & Answers 4 06-05-2009 08:46 AM
find home directory paths for all users a2156z SUN Solaris 2 03-12-2009 06:26 AM
Display directory size chebarbudo UNIX for Dummies Questions & Answers 6 11-26-2008 05:09 AM
Display Directory Size - DF? t4st33@mac.com UNIX for Dummies Questions & Answers 3 01-11-2007 02:12 AM
Tail-alike display of new files in directory rschelkers Shell Programming and Scripting 4 03-22-2002 07:44 AM

Reply
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 05-18-2009
Villaman69 Villaman69 is offline
Registered User
  
 

Join Date: May 2009
Posts: 1
how to display paths of files in a directory

hi guys
does anyone know how to display the file paths of the files stored within a directory at the command terminal?
e.g. if i have a directory called "home", how do i display the file paths of the files inside the directory?
cheers
  #2 (permalink)  
Old 05-18-2009
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,715
Code:
find ./home -print
one way.
  #3 (permalink)  
Old 08-19-2009
scripter.online scripter.online is offline
Registered User
  
 

Join Date: Jul 2009
Location: India
Posts: 31
Hi,

Code:
 

$ find ./testdir -print
./testdir
./testdir/Count
./testdir/testdir.sh
./testdir/SQL
./testdir/filevalid.sh
./testdir/.hidden1
$

$ ls -ld testdir
drwxr-xr-x    6 scripter     scripterworld       4096 Aug 20 00:50 testdir
$ ls -l testdir
total 24
drwxr-xr-x    2 scripter     scripterworld       4096 Aug 19 20:16 Count
-rwxr-xr-x    1 scripter     scripterworld        342 Aug 19 23:15 filevalid.sh
drwxr-xr-x    2 scripter     scripterworld       4096 Aug 19 20:16 SQL
-rw-r--r--    1 scripter     scripterworld        307 Aug 19 20:15 testdir.sh
$ cd testdir/
$ ls -ltr
total 24
-rw-r--r--    1 scripter     scripterworld        307 Aug 19 20:15 testdir.sh
drwxr-xr-x    2 scripter     scripterworld       4096 Aug 19 20:16 Count
drwxr-xr-x    2 scripter     scripterworld       4096 Aug 19 20:16 SQL
-rwxr-xr-x    1 scripter     scripterworld        342 Aug 19 23:15 filevalid.sh
$
ls -l command with directoryname displays files in that directory

Scripter
Sponsored Links
Reply

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:04 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