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

Answer Posted / vasavi

using file command

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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 touch command do in unix?

984


Which command will print your home directory on screen?

788


Differentiate cmp command from diff command.

802


What will the following command do?

821


What are the dos commands?

876


Which command is used to copy files?

817


Which unix command lists files/folders in alphabetical order?

1185


What is command statement?

792


What do chmod command do?

811


What does the “echo” command do?

837


What command is used to switching between users in unix?

764


Are you in or at the office?

836


Enlist some filename manipulation commands in unix.

752


What is the comma to show the space allocation of files?

764