where is the hardware information of linux machine stored
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!
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.
where is the hardware information of linux machine stored
it depends upon what you want to know. much of it can be found under /proc. there are programs like hwinfo, lsblk, lsusb, lspci which may give you better quality information.
The /proc directory is a virtual file system that the kernel uses to communicate with you about the state of a process/program, and gives info about that process/program (so it's not just about devices) The processes/programs are the numbers displayed and to view info about it type ls number. If you type cat devices while in that directory it will list your block and character devices. Block devices are devices that read/write data in a bulk fashion such as USBs, HDDs, CDROMS etc, and character devices read/write data in a character by character fashion such as keyboards, mouses, serial printers etc.. The ls commands that rkelsen mentioned are also very helpful.
Last edited by linux4evr5581; 10-01-2016 at 04:29 AM.
/etc/passwd is where user information is stored. /etc/home is personal space where all your personal downloads pictures etc go.. /etc/var is where info about variables on the system that are constantly changing are located
Last edited by linux4evr5581; 10-01-2016 at 04:36 AM.
as i am a beginner i need some time to expertise my search skills.
any way thanks.
Search skills?
Go get download this free tutorial, it teaches you the basic structure of Gnu/Linux and it guides you how to run it. It is old yes, but the author evidently knows what to write and how to write it for the newbies. Open it in pdf-reader, any topic you need to know press Ctl+F write-on the topic then Enter. At least the book may provide you a hint where to begin.
LQ is not the right place to begin for homework. This is a user help forum; for those who are using and facing obstacles in their usage. For *teaching* purposes you are aware whom you are paying to for that purpose.
I also suggest that you consider rereading LQ Rules so that you do not violate any rules;
Quote:
Do not post homework assignments verbatim. We're happy to assist if you have specific questions or have hit a stumbling point, however. Let us know what you've already tried and what references you have used (including class notes, books, and searches) and we'll do our best to help. Keep in mind that your instructor might also be an LQ member.
It depends on what you meadn by "stored." Most hardware information is determined by probing when the system boots or devices are hotplugged. For the most part, that information is kept in kernel structures that can be read via the /proc and /sys interfaces, and isn't permanently stored anywhere. For a few devices, information is persistently stored in the /etc/udev/rules.d/*persistent* files. That is primarily done so that devices like network interfaces and CD/DVD drives can get consistent names.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.