How to identify whether a file is normal file or directory?
Answers were Sorted based on User's Feedback
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 |
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 |
Where can I get the free download of Unix by Yeswant Kanetkar?
What is sed awk grep?
what is the use of the hidden files?
How to rename files and folders?
How do I use nslookup?
Explain ‘system calls’ with respect to unix commands?
what is exact definition of operating system?
What does sed command do in unix?
what is tar command and what are the different types of tar commands?
Are you in or at the office?
What is the functionality of a top command?
What are Unix processes, and how do you manage them?