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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

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

683


What difference between cmp and diff commands?

716


What's a command word?

583


Why is grep called grep?

773


What is the behavioural difference between cmp and diff commands?

670






Why is shebang used?

591


What is {} in find command?

576


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

612


How do I delete files from command prompt?

549


What do chmod command do?

600


How do I run a whois command?

594


What is the use of sed command in unix?

588


What is the command to find hidden files in the current directory?

574


Is it inbetween or in between?

574


What is used to type command?

537