Create a user defined shell in Ubuntuusing c program
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
You still haven't explained exactly what you want to do. Why do you want to create a new shell? I suspect that's not what you want to do, but you're not exactly helping us to understand what it is you want.
Please write words out in full and use punctuation, because it's difficult to read posts without it.
Sir let me start from the beginning, i want to create my own shell in which i can execute my own user defined commands.
since I'm new to this OS i don't have enough knowledge of the terminology used here.
user defined command means fr eg: for ls command i want to give myls which will work like "ls" but in my own shell which i have created.
i want to do this so as to learn creation of shell and want to create my own commands.
I'm under the same impression as Nylex that you are complicating things way to much. Why would you reinvent the wheel? If it's only for learning purposes, great! But if you want to learn from scratch on how to 'create' your own shell, why don't you, as already told by Nylex, download the source of one of the shells available, for example Bash, investigate that source code, adapt it to your needs and compile. Then you would have 'your own commands' in a shell. Another way to have your 'user-defined commands' is to work with aliases.
@Nylex: if the cake means what I think it means... Happy Birthday!