Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to record or log commands on the command-line

#to record/log all commands and output during a session on the terminal
script session.log

#to exit
ctrl D or type "exit"

#to read file use ansi2txt or ansi2html to convert to plain text or html 
respectively

ansi2txt <log file> output_file_name
 
PREVIOUS NEXT
Tagged: #record #log #commands
ADD COMMENT
Topic
Name
1+7 =