Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
I'm not sure what you are trying to do. You can use the command 'mount' to get a list of the mounted devices and the mount points.
Or you could type 'cat /etc/mtab' to show the same thing.
Another way is 'cat /proc/mounts' which is where the mount command gets its information.
The /etc/fstab file is where the system gets the information on what devices should be mounted
when you boot up the computer.
I'm not sure what your goal is, but you are obviously misinformed. All device files appear under /dev. Some are block, some are character... Try ls -l /dev Typically, the hard drive is hda or hdb, the floppy is fd0, cdrom hdc, hdd printer lp0, etc. The full document that describes each device comes with the linux kernel documentation.
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
gunter
I looked at a computer which has the Solaris operating system. The above mentioned command works fine in Solaris. So my friend who works with Solaris told me it would be possible to find them in Linux environnent too.
He said in Linux these things rests in a specific folder. In Solaris you find them in a folder called device folder. It has even the 'dev' folder too.
My Mandrake doesn't have a folder called 'device folder'. I have the 'dev' folder, however.
How do you find those block special device files and character special files in Linux?
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
ls more /etc/path_to_inst
The above command gives you some valuble information about hardware in Solaris. It tells you the instant names related to hardware.
How do you find the above in Linux? I have Mandrake LInux 10.0.
I looked at a computer which has the Solaris operating system. The above mentioned command works fine in Solaris. So my friend who works with Solaris told me it would be possible to find them in Linux environnent too.
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
gunter
I wrote the command you mentioned. What are the block files and what are the character files? I copied some of the oupupt for your information.
I guess c stands for character files.
What are the block files? What are the instant files?
--------------------------------------------------------------------
[heden@h27n2fls301o1037 heden]$ ls -l /dev | more
total 0
A block device is a random access device such as a hard drive. If you follow the link to were your hard disk drivers are located and 'ls -l' you can see a description of these files.
I have never heard of instant files. You seem to be taking general instructions, such as cd install-directory, literally.
If you want to learn about Linux, I would recommend forgetting about solaris and reading documentation found with your system, or going to the www.tldp.org web site. There are many howto's and books available.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.