C/unix

Advertisement


Question
I want to know a unix command how it process internally

Answer
Dear Jitendra!

 Each and every UNIX Command is simply a string , That string will further interpreted ( This is called a command interpreter)

let me explain you this with a simple flow!

 do{
     display Prompt:
     get the command;
      
     if ( Command == "LS" ) /* List file command in UNIX */
       perform directroydisplay function
     else if ( command == "MKDIR") /* Make directroy command */
      preform MakeDirectory function
      .
      .
      .
      .
      .
   else
      print "Error Invalid command ";
}while(true);
      
Using this flow you can clearly get an idea about how a command is internally processed in UNIX systems!

Regards !
Prince M. Premnath.

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Prince M. Premnath

Expertise


I'm sure that I can solve any doubts in Turbo C ,Graphics Programing ,Mouse, Hardware Programming ,File System ,Interrupts, BIOS handling , TSR Programming , General Concepts in C Language, handling inline Assembly statements

Experience

Research over 6+ Years

Organizations
CG-VAK Softwares and Exports Limited

Education/Credentials
Masters in Computer Applications

©2012 About.com, a part of The New York Times Company. All rights reserved.