LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-13-2004, 08:56 AM   #1
class_struggle
Member
 
Registered: Nov 2003
Location: where rock meets hard place
Distribution: 1- Knoppix 2-Gentoo
Posts: 121

Rep: Reputation: 15
/dev directory


With so many files in the /dev directory, how does one find out which are actually connected to real devices?
I'm referriing to the situation where you might be testing a new pc using a Live Linux CD, and you want to quickly see where the HD, modem, and USB devices may be connected.
Sure, the HD is always on hda or hdc, but what ahppens when it gets connected to a nonstandard /dev file. How can I find out (quickly) which?
Thanks/cs
 
Old 07-13-2004, 10:40 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
dmesg is the command that will tell you most of that stuff. /etc/fstab is usefull to read too.
 
Old 07-13-2004, 12:30 PM   #3
class_struggle
Member
 
Registered: Nov 2003
Location: where rock meets hard place
Distribution: 1- Knoppix 2-Gentoo
Posts: 121

Original Poster
Rep: Reputation: 15
Thanks for the answer. Yep, I know of those commands, I was hoping for some sort of "lsdev" (in the style of "lsmod" or "lspci" which identifies dev files with something behind them.
I suppose I could just script it ...
 
  


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
no files in /dev directory balajia82 Linux - Software 1 10-12-2005 08:18 PM
/dev/mapper directory joshnya Linux - Newbie 11 09-15-2005 03:09 AM
/dev directory Dave-Bowskill Programming 0 09-19-2004 11:52 PM
/dev directory nny0000 Slackware 3 02-03-2004 06:37 PM
/dev directory phishman3579 Slackware 3 12-02-2003 04:18 PM


All times are GMT -5. The time now is 01:17 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration