{{tag>[linux script]}} ====== script ====== > 실행하는 출력을 파일로 저장.(color 적용) ===== CLI ===== script -q output.txt cat output.txt # 색상정보 포함 * ''**script** [options] [file]'' * ''**--quite**'', ''**-q**'' 조용히 실행 ==== HELP ==== ++++ script --help | ❯ script --help Usage: script [options] [file] Make a typescript of a terminal session. Options: -I, --log-in log stdin to file -O, --log-out log stdout to file (default) -B, --log-io log stdin and stdout to file -T, --log-timing log timing information to file -t[], --timing[=] deprecated alias to -T (default file is stderr) -m, --logging-format force to 'classic' or 'advanced' format -a, --append append to the log file -c, --command run command rather than interactive shell -e, --return return exit code of the child process -f, --flush run flush after each write --force use output file even when it is a link -E, --echo echo input in session (auto, always or never) -o, --output-limit terminate if output files exceed size -q, --quiet be quiet -h, --help display this help -V, --version display version For more details see script(1). ++++