writing your own command in unix/linux

Hi

I am very new to Linux programming,otherwise I have exposure to Linux. Was thinking about something like writing my own commands for Linux. Any ideas where to start, any useful links and what I need to know before I start with this.

Thanks :slight_smile:
Sidhu

By command do you mean implementing something like the 'cp' or the 'ls' command? Or do you mean command intrepreter - aka shell.

ya like implementing ls,cp and such commands .....

thanks
Sidhu

Well, if you want to see how the actual code is written, go to cvs.opensolaris.org. You can browse through code for almost any command there. Else, check the man pages' See Also section. It usually lists the system calls used in the command. Use those system calls to implement the command in your own way.