LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 04-05-2002, 09:47 AM   #1
Rex_chaos
Member
 
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?
Thanks
 
Old 04-15-2002, 03:33 PM   #2
nejoom
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:
http://www.tldp.org/LDP/sag/x797.html
 
  


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 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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:50 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
Open Source Consulting | Domain Registration