Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
1. Does anyone know where I can go to learn more about how a Linux system works from an architecture point of view? I understand the basic concept of an OS (Command -> System -> Kernel), but I really want to get specifics on the Linux systems.
2. Say I wanted to add my own little function in Linux. Now I'm not really sure where it would need to go, so stay with me here. I'd basically like to be able to say "chris -message" (just like 'man', 'rm', etc) in the command line and get some random message printed out. Instead of writing my own program to do so, I'd like this built into the kernel (again, I'm not sure if it's build into the kernel or command level system).
Could you expand more on what you are looking for then? I started to reply with the above option, but figured you meant something else. But couldn't really figure out what?
Originally posted by MasterC Could you expand more on what you are looking for then? I started to reply with the above option, but figured you meant something else. But couldn't really figure out what?
Cool
I was going to write a little source file in C that returns a phrase or something (doesn't really matter what) when I type my name in the command line. Just like you can type rm, ls, df, etc, into the command line and do stuff, I want to do the same. I don't know whether I need to add code to the kernel, then recompile it and boot into it. Or do I need to edit the shell code I use, recompile it and so on. That's what I'm trying to figure out.
Sure. Whatever you call yout binary that you create with C (I'm quite rusty on programming, but I think it's an a.out binary or elf binary right, well whatever you rename a.out to) simply place that in your PATH and call it just like you do with ls and such.
Is that what you mean? If you need help with the code that's a different story, but scripting it to call something would be a piece of cake.
I'm not really sure I see the point, other than just doing it. ls cp and modprobe aren't kernel level programs. Do you mean to write a daemon? Still wouldn't be too hard, look into xinet.d and inetd.
Possibly look into kernel patches to see if that's what you are talking about.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.