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

Is ‘du’ a command? If so, what is its use?

0 Answers  


when we installing aix os the ssh installed default?

2 Answers  


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

0 Answers  


distinguish between physical addresses and logical address?

23 Answers   College School Exams Tests, CTS, Infosys, SAX, TATA, TCS,


why metadb requires a seperate slice to create Solaris volume manager

0 Answers   Wipro,






What is the search command in unix?

0 Answers  


Give command that will make the file "run.sh" executable?

10 Answers   IBM,


which command is used to change group?

5 Answers  


How do I use grep to find a file?

0 Answers  


what do you understand by 'building block primitive'?

0 Answers   Infosys,


Can you enlist some commonly used network commands?

0 Answers  


Which command will print your home directory on screen?

0 Answers  


Categories