LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-01-2016, 03:39 AM   #1
anon097
LQ Newbie
 
Registered: Aug 2016
Location: India
Posts: 3

Rep: Reputation: Disabled
where is the hardware information of linux machine stored


in which Directory is the hardware information of linux machine stored
 
Old 10-01-2016, 03:48 AM   #2
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
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.
 
1 members found this post helpful.
Old 10-01-2016, 03:59 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Looks like a cut-and-paste of a homework question. Maybe you should exercise your search skills.
 
1 members found this post helpful.
Old 10-01-2016, 04:01 AM   #4
anon097
LQ Newbie
 
Registered: Aug 2016
Location: India
Posts: 3

Original Poster
Rep: Reputation: Disabled
thanks, but . .

thank you for your answer.
but is any of this option (/etc/passwd, /home/, /var/lib) close to it???
 
Old 10-01-2016, 04:09 AM   #5
anon097
LQ Newbie
 
Registered: Aug 2016
Location: India
Posts: 3

Original Poster
Rep: Reputation: Disabled
help me

Quote:
Originally Posted by syg00 View Post
Looks like a cut-and-paste of a homework question. Maybe you should exercise your search skills.
ya, it is.

as i am a beginner i need some time to expertise my search skills.

any way thanks.
 
Old 10-01-2016, 04:20 AM   #6
linux4evr5581
Member
 
Registered: Sep 2016
Location: USA
Posts: 275

Rep: Reputation: Disabled
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.
 
2 members found this post helpful.
Old 10-01-2016, 04:28 AM   #7
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,572
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
There's a lot of hardware information in the /sys directory too, but it's much more difficult to navigate.
 
1 members found this post helpful.
Old 10-01-2016, 04:32 AM   #8
linux4evr5581
Member
 
Registered: Sep 2016
Location: USA
Posts: 275

Rep: Reputation: Disabled
/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.
 
1 members found this post helpful.
Old 10-01-2016, 05:12 AM   #9
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
Quote:
Originally Posted by shyamrk View Post
ya, it is.

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.

Other topics use duckduckgo search engine.

Hope that helps. Good luck and enjoy!

m.m.
 
1 members found this post helpful.
Old 10-01-2016, 09:51 AM   #10
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member response

Hi,

Quote:
Originally Posted by shyamrk View Post
in which Directory is the hardware information of linux machine stored
You should look at; http://www.linuxquestions.org/questi...#faq_lqwelcome so you can compose a query that will help us to help you.

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.
BTW, I like to use https://duckduckgo.com/ for search needs.

Hope this helps.
Have fun & enjoy!
 
2 members found this post helpful.
Old 10-02-2016, 03:07 PM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by shyamrk View Post
is any of this option (/etc/passwd, /home/, /var/lib) close to it???
NO.
 
Old 10-02-2016, 08:09 PM   #12
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
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.
 
Old 10-05-2016, 07:34 AM   #13
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Try installing the package inxi, if available.
This accesses quite a lot of your hardware details.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where information about file's line terminator is being stored? urello Linux - General 2 12-07-2015 08:32 AM
where the last login information is stored rajeshkumar.yes Linux - Newbie 2 02-26-2010 06:00 AM
Where is Audio Information Stored superdude_876 Linux - Hardware 2 11-19-2005 11:20 AM
Where is all the information about users and groups stored? foxy123 Ubuntu 3 06-29-2005 06:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration