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

Through which command will redirect output to bOth screen and files at the same time?

3 Answers  


What are the unix commands?

0 Answers  


What does grep v do?

0 Answers  


How to find the files that are accessed before 10 minutes?

5 Answers   Amazon,


what is the command to get help on a UNIX terminal?

5 Answers  






How to check whether some services are running in another server or not? Suppose i am currently in a server named A.I want to check whether some services are running in server B without logging into the server B.

3 Answers   Amazon, MBA, Syntel, TCS, Unisys,


How do I delete files from command prompt?

0 Answers  


What does the md command do?

0 Answers  


What is the difference between AWK and SED commands? Plz give example and explain...

3 Answers   RBS,


Describe the usage and functionality of the command rm –r * in unix?

0 Answers  


In Unix file permissions what does the second field denotes?

3 Answers  


describe the escaping sequence characteres in unix

1 Answers  


Categories