【问题标题】:How to see a terminal output from a previously closed terminal如何查看先前关闭的终端的终端输出
【发布时间】:2023-03-26 18:55:01
【问题描述】:

我使用 SSH 连接到远程服务器

我使用cmake编译然后make,编译过程中没有进度百分比的情况并不常见,但这次有。我一直在看编译过程,直到我的互联网连接失败,所以 puTTY 关闭了会话,我不得不再次连接到我的服务器。我虽然所有的进度都丢失了,但我首先通过 ps aux 命令查看进程列表来确定,我注意到与编译相关的进程仍在运行:

1160 tty1     Ss+    0:00 /sbin/mingetty tty1
 2265 ?        Ss     0:00 sshd: root@pts/1
 2269 pts/1    Ss     0:00 -bash
 2353 pts/1    S+     0:00 make
 2356 pts/1    S+     0:00 make -f CMakeFiles/Makefile2 all
 2952 ?        S      0:00 pickup -l -t fifo -u
 3085 ?        Ss     0:00 sshd: root@pts/0
 3089 pts/0    Ss     0:00 -bash
 3500 pts/1    S+     0:01 make -f src/compiler/CMakeFiles/hphp_analysis.dir/bui
 3509 pts/1    S+     0:00 /bin/sh -c cd /root/hiphop/hiphop-php/src/compiler &&
 3510 pts/1    S+     0:00 /usr/bin/g++44 -DNO_JEMALLOC=1 -DNO_TCMALLOC=1 -D_GNU
 3511 pts/1    R+     0:03 /usr/libexec/gcc/x86_64-redhat-linux6E/4.4.4/cc1plus
 3512 pts/0    R+     0:00 ps ax

我想知道是否可以通过查看之前关闭的终端输出来查看当前的编译进度。类似'cat /dev/vcsa1'之类的东西

【问题讨论】:

标签: linux terminal


【解决方案1】:

根据上面的评论,你应该用过屏幕。

实际上,您可以尝试查看 sshd 使用的文件描述符和您启动的 shell,但我认为这不会让您走得太远。

【讨论】:

    猜你喜欢
    • 2023-04-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-10
    • 1970-01-01
    • 2020-04-18
    • 2015-12-05
    • 1970-01-01
    相关资源
    最近更新 更多