달력

5

« 2024/5 »

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31

http://suite.tistory.com/ fs (2006.7.28)


일반 계정으로 find / 검색시


==========================================

find: /etc/pki/CA: 허가 거부됨
find: /etc/lvm/backup: 허가 거부됨
find: /etc/lvm/archive: 허가 거부됨
~~~~~

find: cannot search /etc/ftpd/pids
find: cannot open /etc/opt/resmon/pipe

===========================================

등의 stderr 메시지를 볼수 있는데 이것들을 안볼려면  > 과 /dev/null 로 처리하면 된다.


bash 경우


ex) find / -name "find_str"  2>/dev/null


0 : stdin

1:  stdout

2:  stderr


참고:


http://wiki.kldp.org/wiki.php/DocbookSgml/Bash-Prog-Intro-HOWTO#AEN55



 

 

:
Posted by mastar