Digital Marketing

Record Linux terminal session

script makes a typescript of everything printed on your terminal. If the argument file is given, script saves all dialogue in the indicated file in the current directory. If no file name is given, the typescript is saved in default file typescript. 

root@2e5540791177:/# script output.log
Script started, file is output.log
# date
Sat Jun 27 23:44:48 UTC 2020
# exit
Script done, file is output.log
root@2e5540791177:/#
root@2e5540791177:/# script
Script started, file is typescript
# ls
bin  boot  dev  etc  home  lib  lib32  lib64  libx32  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  typescript  usr  var
# date
Sat Jun 27 23:43:23 UTC 2020
# exit
Script done, file is typescript
root@2e5540791177:/# cat typescript
Script started on 2020-06-27 23:43:14+00:00 [TERM="xterm" TTY="/dev/pts/0" COLUMNS="172" LINES="55"]
# ls
bin  boot  dev  etc  home  lib  lib32  lib64  libx32  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  typescript  usr  var
# date
Sat Jun 27 23:43:23 UTC 2020
# exit

Script done on 2020-06-27 23:43:25+00:00 [COMMAND_EXIT_CODE="0"]

Comments

Popular posts from this blog

Make online money from the Internet