Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This 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.


  Search this Thread
Old 04-05-2002, 09:47 AM   #1
Registered: Aug 2001
Location: GD, GZ, China
Posts: 240

Rep: Reputation: 30
"mknode /tmp/dev.0" ?

Can anyone tell me what does this statement for?
Old 04-15-2002, 03:33 PM   #2
LQ Newbie
Registered: Mar 2002
Location: Holland
Distribution: RH
Posts: 15

Rep: Reputation: 0
Hi Rex

You probably mean:
[user] mknod /tmp/dev.0

mknod is a command to make a special file.

On unix "special files" are files that represent (usually) hardware devices. (=definition)

Special files are indicated when issueing the following command:

[nejoom@fire dev]$ cd /dev
[nejoom@fire dev]$ ls -la fd0 zero
brw-rw---- 1 nejoom floppy 2, 0 Aug 30 2001 fd0
crw-rw-rw- 1 root root 1, 5 Aug 30 2001 zero
+------ special file character
b = block (eg floppy)
c = character (eg terminial line)

Writing to a special file sends data directly to the hardware"
]$ cat mytext.txt > /dev/fd0

... reading the special file gets data directly from hardware

In practice most of these special files are located in your /dev directory (devices), and have been made for you at installation.

If your /dev doesn't contain the device you need (if your into attaching esoteric devices), then you might need to use the mknod command.

Take a look at the following if your into this type of stuff:


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
lilo says, "L 01 01 01" and fdisk says, "Unable to seek on /dev/hda1" clausawits Linux - General 3 12-31-2007 09:33 PM
"rm -rf /tmp", now Evolution shows "(no folder displayed" Ed-MtnBiker Linux - Software 7 04-10-2006 04:05 PM
Writing to "/dev/usb/hiddev*" and to "/proc/bus/usb/00B/00S" throw an arror EI stpg Programming 0 07-14-2004 05:44 AM
"/tmp/sv001.tmp/setup.bin" error while installing OO1.1.0 Choey Linux - Software 0 09-16-2003 04:52 PM
ls in /tmp produces "permission denied" even as root kpfeiffer Linux - Newbie 5 10-06-2002 12:40 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:43 AM.

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