LinuxQuestions.org
Review your favorite Linux distribution.
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, 04:39 AM   #1
shyamrk
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, 04:48 AM   #2
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,960

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
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, 04:59 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,832

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
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, 05:01 AM   #4
shyamrk
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, 05:09 AM   #5
shyamrk
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, 05:20 AM   #6
linux4evr5581
Member
 
Registered: Sep 2016
Posts: 151

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 05:29 AM.
 
2 members found this post helpful.
Old 10-01-2016, 05:28 AM   #7
hazel
Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: Debian, Crux, LFS, Dragora, NuTyX
Posts: 513

Rep: Reputation: 229Reputation: 229Reputation: 229
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, 05:32 AM   #8
linux4evr5581
Member
 
Registered: Sep 2016
Posts: 151

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

Rep: Reputation: 433Reputation: 433Reputation: 433Reputation: 433Reputation: 433
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, 10:51 AM   #10
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,541
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
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, 04:07 PM   #11
ondoho
Senior Member
 
Registered: Dec 2013
Posts: 4,176

Rep: Reputation: 822Reputation: 822Reputation: 822Reputation: 822Reputation: 822Reputation: 822Reputation: 822
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, 09:09 PM   #12
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 2,958

Rep: Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267
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, 08:34 AM   #13
JeremyBoden
Member
 
Registered: Nov 2011
Posts: 938

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:32 AM
where the last login information is stored rajeshkumar.yes Linux - Newbie 2 02-26-2010 07:00 AM
Where is Audio Information Stored superdude_876 Linux - Hardware 2 11-19-2005 12:20 PM
Where is all the information about users and groups stored? foxy123 Ubuntu 3 06-29-2005 07:36 PM


All times are GMT -5. The time now is 10:05 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration