How to identify whether a file is normal file or directory?
Answers were Sorted based on User's Feedback
Answer / subbareddy kake
By using file command or
First list the all files by using ls -lrt.you will
following type format.
drwxr--r--
-rwxr--r--
so first one directory second one file only
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / srinath.p
$ls -l filename/directoryname
if the first digit is - then it is file,if it is d then it
is directory
| Is This Answer Correct ? | 1 Yes | 1 No |
What is pid?
what are the different operating systems available?
Why is shebang used?
Through which command will redirect output to bOth screen and files at the same time?
Explain command to display different lines that are found when compare two files?
If we want to see first 35 lines of a file which command we have to use?
in UNIX,what is the command to remove directory with files?
what is exact definition of operating system?
Who command in unix operating system?
How to identify whether a file is normal file or directory?
How can you see the command line history?
their is a file1,file2 and i want to append file1 data to file2?