what is the command to find out the difference between
files and folders?

Answer Posted / pitambar mishra

From a layman's point of view,
A file can be stored with in a folder but vice-versa is not
possible.

1. Using ls -l command : In type field (1st field)
d : for directory
- : for general file
2. Using ls -F command :
This command marks the
general file (no mark),
directory as /,
link file as @,
executable file as *.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pipe command in unix?

898


What is {} in find command?

777


How do I search for a file in unix command?

738


What does the metacharacter mean?

807


What is grep and how do you use it?

783


What is unix command?

874


What are the differences among a system call, a library function, and a unix command?

796


What is merge command in unix?

1140


What is .sh file?

837


How to display no of records in oracle using unix command?

805


Explain command to display different lines that are found when compare two files?

883


How many unix commands are there?

816


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

811


What is ‘ps’ command for?

841


What is grep r?

785