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 |
Through which command will redirect output to bOth screen and files at the same time?
What are the unix commands?
What does grep v do?
How to find the files that are accessed before 10 minutes?
what is the command to get help on a UNIX terminal?
How to check whether some services are running in another server or not? Suppose i am currently in a server named A.I want to check whether some services are running in server B without logging into the server B.
3 Answers Amazon, MBA, Syntel, TCS, Unisys,
How do I delete files from command prompt?
What does the md command do?
What is the difference between AWK and SED commands? Plz give example and explain...
Describe the usage and functionality of the command rm –r * in unix?
In Unix file permissions what does the second field denotes?
describe the escaping sequence characteres in unix