How to identify whether a file is normal file or directory?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I open a port?

586


Enumerate some of the most commonly used network commands in unix?

612


What is the functionality of a top command?

618


Why is awk called awk?

573


What does this command do,"$more readme.txt“?

683






What do chgrp command do?

585


What is the difference between cat command and more command?

598


What is the size of time_t?

639


Which command is used to create a directory?

564


hw will u use awk in replacing cahrs and files

2722


Can you explain a little bit about command substitution?

601


Which command is used to find whether the system is 32 bit or 64 bit?

627


How many unix commands are there?

619


How do you grep recursively?

550


What will the following command do?

607