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 |
Suppose 1000 processes are running on the system out of those if you have to show only certain process ids which command will you use?
How do I search a whole word in vim?
How does shebang work?
Give Command that will move a single file called "unix.txt"
what is the command to find out the difference between files and folders?
what is the cmd to remove the comment lines from a file and to display the original text without comments? thanks in advance......
What do chmod, chown, chgrp commands do?
How do I use grep to find a file?
what is tar command and what are the different types of tar commands?
What are filter commands in unix?
How do you grep recursively?
How do I use nslookup?