![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| to get the timestamp of files from the files and folders in Unix | kishan | HP-UX | 2 | 04-09-2008 05:20 AM |
| decompressed files to specific folders | c00kie88 | Shell Programming and Scripting | 3 | 04-06-2008 02:41 PM |
| Looking for Large Files and Folders | bbbngowc | Shell Programming and Scripting | 8 | 04-02-2008 10:09 AM |
| list only files or folders | jagnikam | Shell Programming and Scripting | 6 | 01-18-2008 06:59 AM |
| removing old files except configuration files and folders | jamcalicut | Shell Programming and Scripting | 1 | 11-09-2007 12:34 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
How to Differentiate Between Files and Folders?
Hi All,
I'm a rookie using HPUX and I know this is going to sound like a bonehead question, but when I list the contents of a directory, how can I determine which objects are files and which are folders? I'm using the ll and ls commands to lists the contents. So far I've been determining the object types by trying to cd/more the objects and see what happens. I figured there's gotta be a better way. Thanks in advance. |
| Forum Sponsor | ||
|
|
|
|||
|
Half right
cheers |
|
|||
|
here...
It is completely legitimate question BTW.
In the head of output by ls -l - stands for a regular file d stands for directory l stands for a symbolic link c stands for character oriented device b stands for block oriented device You can figure out more by using "man ls" command. Get "UNIX Essentials and UNIX Core" DVD course or "UNIX in 24 hours" book as them address questions of this sort. Hope it helps. |
|
|||
|
Here another visual way to represent folders and other objects, such as links. Us e the -F option of ls.
Quote:
|
|||
| Google The UNIX and Linux Forums |