有没有办法保存我输入的所有终端命令并像在日志中查看历史记录一样查看它?
history bash-history
如何保存通过终端完成的所有工作的日志?例如,我想要通过终端记录在数据库上完成的所有工作。
command-line tty log
bash-history ×1
command-line ×1
history ×1
log ×1
tty ×1