what is the command to find out the difference between
files and folders?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
Is there any command in Unix, other than:ls, to list the files in a directory? The answer will be highly appreciated...
What is command statement?
What will the following command do?
what are the uses of filters?
Explain how to use grep command to list find the records of a file containing 10 different strings?
what is the use of uniq commmand?
How can we "forked" process in UNIX? How then recognize in any of the branches we?
how many types of file in unix?
34 Answers MNC, TCS,
What command is used to replace the existing string with some other?
What difference between cmp and diff commands?
What is the use of awk command in unix?
What is pipe command in unix?