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 |
Can you explain a little bit about command substitution?
What is awk good for?
what is the difference between npar and vpar in HP-UX?
What is pipe command in unix?
what is difference between unix and linux?
What is updatedb?
What is grep and sed command?
Is there any command in Unix, other than:ls, to list the files in a directory? The answer will be highly appreciated...
Why is grep called grep?
what is the command to find out the difference between files and folders?
what is the difference between Touch & cat command
What is grep r?