Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how unix kernel distinguishes between a normal file and
device file ?

Answer Posted / guest

while listing the file names by ls-l command we get hyphen
is the first character that shows it is a normal file and
if we d instead of hyphen(-) that is device file

Is This Answer Correct ?    6 Yes 54 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is rmdir command?

1119


What is grep and how do you use it?

1119


Describe the zip/unzip command using gzip.

1169


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

2109


What command is used to switching between users in unix?

1089


What is the command to find maximum memory taking process on the server?

1229


What is command substitution?

1387


What is the use of tee command?

1176


Which command is used to restrict incoming messages?

1114


What is .sh file?

1197


What command is used to check the current users?

1138


Name the various commands that are used for the user information in unix.

1093


What is ‘ps’ command for?

1191


What is a bash command?

1188


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:

2275