How to identify whether a file is normal file or directory?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the metacharacter mean?

807


What is the comma to display different lines that are found when compare two files?

799


What do chgrp command do?

834


What is in grep command?

857


What do chmod, chown, chgrp commands do?

902


Describe the usage and functionality of the command rm –r * in unix?

1513


What is command substitution?

890


What is {} in find command?

788


What is grep in bash?

773


What is rmdir command?

796


Does cp command overwrite files?

831


What is a command and examples?

816


Write a command that will display files in the current directory, in a colored, long format.

926


When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include # include int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

1976


What does the command ' $who | sort –logfile > newfile' do?

1036