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 > Operating Systems > HP-UX
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 06-22-2009
methyl methyl is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 1,167
The last entry in a directory with no subdirectories is the most recently created file. It can be of little value if you want the most recently updated file. Directory listings from "ls" always sort the directory.

Code:
# Last entry in directory
find . -type f -print | tail -1 | xargs ls -liad

Is this the same directory as in your previous posts (i.e. 180 Mb directory file). If so, did you manage to find out how many files there are in the directory and whether it has subdirectories?