/dev/stdin, stdout, stderr

Jmnote (토론 | 기여)님의 2019년 12월 16일 (월) 01:23 판 (→‎같이 보기)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

/dev/stdin, /dev/stdout, /dev/stderr
/dev/stdin 표준입력
/dev/stdout 표준출력
/dev/stderr 표준에러
[root@zetawiki ~]# ll /dev/std*
lrwxrwxrwx 1 root root 15 Nov 21  2013 /dev/stderr -> /proc/self/fd/2
lrwxrwxrwx 1 root root 15 Nov 21  2013 /dev/stdin -> /proc/self/fd/0
lrwxrwxrwx 1 root root 15 Nov 21  2013 /dev/stdout -> /proc/self/fd/1
[root@zetawiki ~]# ll /proc/self/fd/[0-2]
lrwx------ 1 root root 64 Jul 13 09:34 /proc/self/fd/0 -> /dev/pts/0
lrwx------ 1 root root 64 Jul 13 09:34 /proc/self/fd/1 -> /dev/pts/0
lrwx------ 1 root root 64 Jul 13 09:34 /proc/self/fd/2 -> /dev/pts/0
[root@zetawiki ~]# tty
/dev/pts/0

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}