Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to identify whether a file is normal file or directory?

Answers were Sorted based on User's Feedback



How to identify whether a file is normal file or directory?..

Answer / vasavi

using file command

Is This Answer Correct ?    8 Yes 0 No

How to identify whether a file is normal file or directory?..

Answer / subbareddy kake

By using file command or

First list the all files by using ls -lrt.you will
following type format.
drwxr--r--
-rwxr--r--

so first one directory second one file only

Is This Answer Correct ?    4 Yes 0 No

How to identify whether a file is normal file or directory?..

Answer / srinath.p

$ls -l filename/directoryname
if the first digit is - then it is file,if it is d then it
is directory

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More Unix Commands Interview Questions

Can you write a command to erase all files in the current directory including all its sub-directories?

1 Answers  


What is the use of finger command?

0 Answers  


In UNIX, what is the command to edit contents of the file?

9 Answers  


Who invented grep?

0 Answers  


The rm command removes links to file. What does this mean? How then is a file deleted from the file system?

5 Answers  


Who command in unix operating system?

0 Answers  


Where LOG fiels resides in AIX and pls tel me how to remove the log file

6 Answers   Vestas,


Which command is used to create a directory?

0 Answers  


Give two UNIX kernel parameters that effect an Oracle install

3 Answers   Oracle,


Give the command for finding the current date.

0 Answers  


What do chmod, chown, chgrp commands do?

0 Answers  


how to delete entire records in unix ?

13 Answers   Cap Gemini,


Categories