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 |
What is nr in awk command?
Explain ‘library functions’ with respect to unix commands?
How many unix commands are there?
What command would users use to see what file one page at a time in UNIX?
What is the Unix file system hierarchy?
What is the basic difference between unix and windows operating systems?
43 Answers Bopro, College School Exams Tests, CTS, IBM, IT-Kids, Priyadarshini, Sybian Technologies, Tolani Maritime,
what is the difference between SED and GREP ? Which one is more better and why?
What are some command words?
How do you execute a UNIX command in the background?
What does the command ' $who | sort –logfile > newfile' do?
How to delete a directory containing files and folders?
How does the user view the contents of a text file in UNIX?