![]() |
|
|
grep unix.com with google
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Our Members | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||
|
Listing File Info
Hi,
From a Unix book, i'd found that the way to list files in a directory. But those file info are all not shown, wat is shown is only the file name. Can anyone pls teach me how to show the file details? (etc file size, read/write permission, modified date) my code: Dir *dirp; struct dirent *direntp; while((direntp = readdir(dirp)) != NULL) printf("%s\n",direntp->d_name); Thx for ur help! |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| file listing ... | thepurple | SUN Solaris | 3 | 12-28-2007 09:39 AM |
| listing file with other format | happyv | Shell Programming and Scripting | 3 | 06-26-2007 07:17 AM |
| file activity (open/closed) file descriptor info using KORN shell scripting | Gary Dunn | UNIX for Dummies Questions & Answers | 3 | 06-07-2004 02:54 PM |
| Recursive directory listing without listing files | psingh | UNIX for Dummies Questions & Answers | 4 | 05-10-2002 11:52 AM |
| File listing | Astudent | UNIX for Dummies Questions & Answers | 5 | 10-25-2000 06:36 PM |