Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ttys(4) [opendarwin man page]

TTYS(4)                                                      Linux Programmer's Manual                                                     TTYS(4)

ttyS - serial terminal lines DESCRIPTION
ttyS[0-3] are character devices for the serial terminal lines. They are typically created by: mknod -m 660 /dev/ttyS0 c 4 64 # base address 0x3f8 mknod -m 660 /dev/ttyS1 c 4 65 # base address 0x2f8 mknod -m 660 /dev/ttyS2 c 4 66 # base address 0x3e8 mknod -m 660 /dev/ttyS3 c 4 67 # base address 0x2e8 chown root:tty /dev/ttyS[0-3] FILES
/dev/ttyS[0-3] SEE ALSO
chown(1), mknod(1), tty(4), agetty(8), mingetty(8), setserial(8) COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at Linux 1992-12-19 TTYS(4)

Check Out this Related Man Page

MEM(4)							     Linux Programmer's Manual							    MEM(4)

mem, kmem, port - system memory, kernel memory and system ports DESCRIPTION
mem is a character device file that is an image of the main memory of the computer. It may be used, for example, to examine (and even patch) the system. Byte addresses in mem are interpreted as physical memory addresses. References to nonexistent locations cause errors to be returned. Examining and patching is likely to lead to unexpected results when read-only or write-only bits are present. It is typically created by: mknod -m 660 /dev/mem c 1 1 chown root:kmem /dev/mem The file kmem is the same as mem, except that the kernel virtual memory rather than physical memory is accessed. It is typically created by: mknod -m 640 /dev/kmem c 1 2 chown root:kmem /dev/kmem port is similar to mem, but the I/O ports are accessed. It is typically created by: mknod -m 660 /dev/port c 1 4 chown root:mem /dev/port FILES
/dev/mem /dev/kmem /dev/port SEE ALSO
chown(1), mknod(1), ioperm(2) COLOPHON
This page is part of release 3.25 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at Linux 1992-11-21 MEM(4)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers


Can someone please tell me what the command mknod does and what it's syntax is? I can't find it in my "Unix for dummies" book or "Unix in s nutshell". I found it in an existing script that I want to copy, but I want to understand what I am doing. The script is going to do a full export of an... (3 Replies)
Discussion started by: bemeeks
3 Replies

2. AIX

command I used

I tried this today but without the argument mksysb /dev/rmt1 it worked great!! Thank you I am just learning how to use the man pages and finding them very helpful Thanks Again (0 Replies)
Discussion started by: rocker40
0 Replies

3. Programming

mknod system call to clone /dev/null

I'm trying to use the "mknod" call in C to create a clone of /dev/null. I am stumped as to the final parameter I should provide to "mknod()". I am supposed to give it a type dev_t, which specifies a major & minor number. I want to specify major 3, minor 1, but how can I do this? dev_t seems to... (2 Replies)
Discussion started by: nathan
2 Replies

4. Programming

Fetch "my" IP address in HPUX 10.20

It sure sounds like a simple request.... I need some C code that will enable me to fetch the IP address of the tty attached to the current process. In short: char *myIPAddress(void) { // somebody help me fill in this part!! } -BL:confused: (4 Replies)
Discussion started by: brianleahy
4 Replies

5. HP-UX


Hey guys i dont quite understand mknod, can anyone explain it to me and what is its purpose in LVM. (4 Replies)
Discussion started by: sbn
4 Replies

6. UNIX for Advanced & Expert Users

RS232 programming problem

Hi all I encountered a strange phenomenon when reading / writing to RS232 serial device (on my machine /dev/ttyS0) I have simple 2 processes: 1) process which WRITE characters from /dev/ttyS0 For example write the characters... (2 Replies)
Discussion started by:
2 Replies

7. UNIX for Dummies Questions & Answers

How can I know IP address of terminal?

Hi all, I am new in Unix world. I usually need to trace who connect to which terminal by IP address. So, could you please show me HOW TO RECOGNIZE which IP address connected to terminal? I use netstat by no luck. Thank you, (9 Replies)
Discussion started by: trinhnguyen
9 Replies

8. UNIX for Advanced & Expert Users

AT commands and cygwin

Hello!!! I try to run this code in cygwin: echo "AT">/dev/ttyS2 echo "AT+COPS=?">/dev/ttyS2 read $LINE</dev/ttyS2 echo $LINE I want to communicate with serial port /dev/ttyS2 but I found some problems. I have tried to use the AT commands in Hyperterminal and it has worked...why doesn't... (2 Replies)
Discussion started by: blianna
2 Replies

9. UNIX for Dummies Questions & Answers

read from terminal/keyboard > /dev/tty

Hi, I need to provide more than one character to "> /dev/tty" through terminal/keyboard input, I have this: ok=false while do echo " Enter r1 to reformat " > /dev/tty read choice case $choice in ) echo " bla bla bla " ;; done However, in this way,... (3 Replies)
Discussion started by: Gery
3 Replies

10. Red Hat

Unable to type anything on "cu" serial terminal window

Hi, I'm using CentOS 5.5. I connected serial terminal using "cu". The command I had given was "cu -l /dev/ttyUSB0 -s 115200". It connects I'm seeing the target boards boot-up messages and log in screen. But I couldn't type anything on "cu" terminal window. Any help is highly appreciated. ... (1 Reply)
Discussion started by: suryaemlinux
1 Replies

11. Shell Programming and Scripting

reading from and writing to serial port

hello all, please any one can provide me the shell script to write data to /dev/ttyS1 and read responce from /dev/ttyS1 and compare the responce to some string .. thnxx ---------- Post updated at 03:35 PM ---------- Previous update was at 11:46 AM ---------- any body help me.. how do i... (1 Reply)
Discussion started by: yashwantkumar
1 Replies

12. AIX

What is mknod file present in /etc folder in AIX server used for ?

Hi Guys, On my AIX server , I have this file "mknod" present in the /etc/ directory. When i try opening it , I dont find any ascii characters. It shows some encryption/binary format which is not readable. Is it any executable ? what is the purpose of having this file in etc folder? what if... (2 Replies)
Discussion started by: DBTuner
2 Replies

13. Shell Programming and Scripting

Use one loop to handle below code

mknod /dev/vda b 253 0 mknod /dev/vda1 b 253 1 mknod /dev/vda2 b 253 2 mknod /dev/vda3 b 253 3 I know below code is ease to handle, but I don't know above code mknod /dev/vda1 b 253 1 mknod /dev/vda2 b 253 2 mknod /dev/vda3 b 253 3 (3 Replies)
Discussion started by: yanglei_fage
3 Replies

14. UNIX for Advanced & Expert Users

Doubt on setserial command

My understanding is that "setserial" command is used to change the attributes of serial device files (ttyS) managed by the linux serial driver(serial module). My doubt is, using setserial command is it possible to change the attributes of other serial device files managed by a different driver... (2 Replies)
Discussion started by: Kesavan
2 Replies

15. Debian

Reading data from a serial port

Dear List - I am trying to capture data from a serial port and write it to a file. /var/www$ cat /dev/ttyS0 > scale_value.html cat: /dev/ttyS0: Device or resource busy /var/www# cat /proc/tty/driver/serial serinfo:1.0 driver revision: 0: uart:16550A port:000003F8 irq:4 tx:90... (11 Replies)
Discussion started by: Meow613
11 Replies

Featured Tech Videos