Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试做一些“侦探工作”:我可以循环通过命令行(Ubuntu)为用户postgres(向上箭头)发送到 PostgreSQL 的先前命令;有没有办法在每个命令旁边列出带有日期/时间的历史记录?
postgres
您可能正在使用该readline库进行命令行编辑,并且不存储命令的时间。
readline
所以那里没有运气。