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 |
What does the md command do?
How to identify whether a file is normal file or directory?
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,
29. How to display top 10 users Who | head -10 | wc –w
Through which command will redirect output to bOth screen and files at the same time?
what is the command to list files in a directory in UNIX?
what is the command to find out the difference between files and folders?
How can we use grep command in unix?
what is virtual machine?
how to find largest file?
14 Answers HCL, Microsoft, Thomson Reuters,
What is awk good for?
What is the use of touch command in there?