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

Answers were Sorted based on User's Feedback



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

Answer / shruthi

first character of output of long listing.
if it is 'd' it is a directory. if it is a '-' it is a
regular file.
$ls -l

Is This Answer Correct ?    13 Yes 1 No

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

Answer / suitable

file and stat command is used to find out the difference
between the files and folders.

Is This Answer Correct ?    3 Yes 3 No

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

Answer / vawani

$ls -p
"/" mark will display as directories and others are file.
And answer number 2 also correct.

Is This Answer Correct ?    0 Yes 0 No

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

Answer / yuvaevergreen

ls -p or -F

Is This Answer Correct ?    0 Yes 0 No

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

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

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

Answer / tom liddle

diff /file1 /file2

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More Unix Commands Interview Questions

What is the use of touch command in there?

1 Answers   Accenture,


what are processor execution levels and priorities?

2 Answers   Infosys,


What is the comma to show the space allocation of files?

0 Answers  


Can you enlist some commonly used network commands?

0 Answers  


What is the use of pipes?

4 Answers  






What are the unix commands?

0 Answers  


How to get a particular string as your prompt ? Give syntax of that command?

3 Answers  


what is the difference between KILL and KILL -9?

5 Answers   Informatica, Nutanix,


what is the difference between npar and vpar in HP-UX?

1 Answers   CSC,


Is there any command in Unix, other than:ls, to list the files in a directory? The answer will be highly appreciated...

27 Answers   CGI,


what does a process mean?

7 Answers   Infosys,


How can you see the command line history?

0 Answers  


Categories