๋ฐ์ํ
[์ถ์ฒ-์ ํ๋ธ ์ํ์ฝ๋ฉ]
https://youtu.be/kpcEoSiMgnU?list=PLuHgQVnccGMBT57a9dvEtd6OuWpugF9SH
โ standard output : ํ์ค ์ถ๋ ฅ
<์์ฝ>
$ rm result.txt 1> rename.txt 2> error.log
rm result.txt๊ฐ ์ถ๋ ฅํ๋ ๊ฒฐ๊ณผ๋ rename.txt์ ์ ์ฅ์ด ๋๊ณ
rm result.txt๋ฅผ ์คํํ๋ ๊ฒฐ๊ณผ์ ์๋ฌ๊ฐ ํฌํจ๋์ด ์๋ค๋ฉด ๊ทธ ์๋ฌ๋ error.log์ ์ ์ฅ์ด ๋๋ค.
๋ฐ์ํ
'Linux' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Linux-์ํ์ฝ๋ฉ] IO Redirection3 : append (0) | 2021.03.15 |
---|---|
[Linux-์ํ์ฝ๋ฉ] IO Redirection2 : input (0) | 2021.03.15 |
[Linux-์ํ์ฝ๋ฉ] Why using CLI? (pipeline) (0) | 2021.03.07 |
[Linux-์ํ์ฝ๋ฉ] Why using CLI? -sequence execution (semicolon) (0) | 2021.03.07 |
[Linux-์ํ์ฝ๋ฉ] Source download : git (0) | 2021.03.07 |
๋๊ธ