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 |
Can you write a command to erase all files in the current directory including all its sub-directories?
What is the use of finger command?
In UNIX, what is the command to edit contents of the file?
Who invented grep?
The rm command removes links to file. What does this mean? How then is a file deleted from the file system?
Who command in unix operating system?
Where LOG fiels resides in AIX and pls tel me how to remove the log file
Which command is used to create a directory?
Give two UNIX kernel parameters that effect an Oracle install
Give the command for finding the current date.
What do chmod, chown, chgrp commands do?
how to delete entire records in unix ?