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

Where can I get the free download of Unix by Yeswant Kanetkar?

5 Answers  


What is sed awk grep?

0 Answers  


what is the use of the hidden files?

3 Answers  


How to rename files and folders?

7 Answers   IBM, Oracle,


How do I use nslookup?

0 Answers  


Explain ‘system calls’ with respect to unix commands?

0 Answers  


what is exact definition of operating system?

13 Answers  


What does sed command do in unix?

0 Answers  


what is tar command and what are the different types of tar commands?

5 Answers  


Are you in or at the office?

0 Answers  


What is the functionality of a top command?

0 Answers   Amazon,


What are Unix processes, and how do you manage them?

1 Answers  


Categories