Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

save terminal output to file with script

# You can use the script function to record all terminal output to a file
script file_there_you_want_to_save_the_scripts.txt
# Every command run and relative outputs are then stored in such file
command1 
> some STDOUT lines
command2
> some STDOUT lines
# Once it's done simply type exit
exit
> Script done, file is file_there_you_want_to_save_the_scripts.txt
 
PREVIOUS NEXT
Tagged: #save #terminal #output #file #script
ADD COMMENT
Topic
Name
6+4 =