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

How do I clear my terminal history?

0 Answers  


Does cp command overwrite files?

0 Answers  


what are processor execution levels and priorities?

2 Answers   Infosys,


solaris Run level?

3 Answers   Wipro,


What is the use of pipes?

4 Answers  






distinguish between multi-tasking,multi-user,multi- processing and time sharing?

4 Answers   Infosys, Nikhil Construction,


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

0 Answers  


How do I find previous commands in unix?

0 Answers  


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

0 Answers  


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

0 Answers  


what is the use of uniq commmand?

8 Answers  


Assume the following files are in the working directory prompt> ls -l tasks -rw-r--r-- 1 alex student 1423 Feb 21 14:01 tasks What command can Alex use to give everyone permission to write to the file? What will the ls -l command display if he does so?

10 Answers   Infosys,


Categories