infra & cloud/linux
[Linux] stdin stdout stderr, pipeline/redirect
펭귄대장
2021. 3. 8. 19:52
1.
stdin 0
stdout 1
stderr 2
linuxhint.com/bash_stdin_stderr_stdout/
2.
> 파일이 없을 경우 생성 후 쓰기
>> 파일이 없을 경우 생성 후 append 하기
3.
2>&1
stderr 를 stdout 으로 같이 찍기
stackoverflow.com/questions/818255/in-the-shell-what-does-21-mean
*
wget -S http://testapi.com 2>&1 | grep "HTTP/" | awk '{print $2}'
jason-heo.github.io/sys/admin/2016/09/11/curl-http-code.html
/dev/null
linuxhint.com/what_is_dev_null/
반응형