SCRIPT(1) User Commands SCRIPT(1) (NAME) script - (SYNOPSIS) script [options] [file] [-- command [argument...]] (DESCRIPTION) script (typescript) . (log) () . scriptreplay(1) . 2.35 script . . scriptreplay --summary . file --log-out file script file . typescript . --log-in --log-io ( ) (echo) . (OPTIONS) size KiB (=1024) MiB (=1024*1024) GiB TiB PiB EiB ZiB YiB ("iB" "K" "KiB" ) KB (=1000) MB (=1000*1000) GB TB PB EB ZB YB. -a, --append file typescript . -c, --command command command . stdout tty . -c command (--) . -E, --echo when ECHO (slave) . always never auto. auto -- ECHO ECHO ( : echo date | script) ECHO . 'never' . -e, --return (exit status) . bash ( + ). typescript . -f, --flush (flush) . : mkfifo foo; script -f foo cat foo . SIGUSR1 . --force typescript (hard link) (symbolic link) . . -B, --log-io file file . --log-timing file . -I, --log-in file file. --log-in . echo ( ) . -O, --log-out file file. --log-out --log-in typescript . --log-in . -T, --log-timing file file. . ( ) . --log-io --log-in --log-out . --logging-format . -m, --logging-format format advanced () classic (). . (Classic format) . . . () (Advanced (multi-stream) format) ('I' 'O' 'H' 'S' ). . -o, --output-limit size typescript size . script . . -q, --quiet ( ). -t[file], --timing[=file] file. --log-timing file . -h, --help . -V, --version . (SIGNALS) SIGUSR1 script . (ENVIRONMENT) script : SHELL SHELL script (fork) . SHELL Bourne . ( ). (NOTES) (control-D Bourne (sh(1p)) exit logout control-d ( ignoreeof ) C csh(1)). vi(1) typescript . script (hardcopy) . script . script . script . .profile (login shells) : if test -t 0 ; then script exit fi script (command pipes) script . (HISTORY) script 3.0BSD . (BUGS) script (linefeed) (backspace). . script . stdin ( : echo foo | script) (hang) (EOF) script . (NOTES) . (SEE ALSO) csh(1) ( history) scriptreplay(1), scriptlive(1) (REPORTING BUGS) . (AVAILABILITY) script util-linux . util-linux 2.42.3 2026-09-02 SCRIPT(1)