아래와 같이 하면 ls 명령에 대한 출력이 파일로 저장 됩니다.
ls > out.txt
제가 물어보고 싶은 것은 파일 저장하는 명령이 따로 존재하는데,
제가 잊어 버렸습니다.
그 명령어을 알려 주시면 감사하겠습니다.
예를 들면, A가 그 명령이라면,
A ls result.txt?
A result.txt? ls
하면 ls 의 명령에 대한 것이 result.txt에 저장 되는 것이지요.
tee ?
OTL
$ script -c "ls -al" ls_result.txt
되면 한다! / feel no sorrow, feel no pain, feel no hurt, there's nothing gained.. only love will then remain.. 『 Mizz 』
기억이 가물 가물해서요.
tee 였군요.
script 라는 것도 있네요.
역시 고수 분들이 많이 계시네요.
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
tee ? OTL
tee ?
OTL
man script
$ script -c "ls -al" ls_result.txt
되면 한다! / feel no sorrow, feel no pain, feel no hurt, there's nothing gained.. only love will then remain.. 『 Mizz 』
되면 한다! / feel no sorrow, feel no pain, feel no hurt, there's nothing gained.. only love will then remain.. 『 Mizz 』
감사합니다
기억이 가물 가물해서요.
tee 였군요.
script 라는 것도 있네요.
역시 고수 분들이 많이 계시네요.
댓글 달기