在 ps 的 STAT 列中,有很多没有多大意义的字母。他们的意思是什么?
下面是一个例子ps aux | head
:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 27176 2960 ? Ss Sep20 0:02 /sbin/init
root 2 0.0 0.0 0 0 ? S Sep20 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S Sep20 13:05 [ksoftirqd/0]
root 5 0.0 0.0 0 0 ? S< Sep20 0:00 [kworker/0:0H]
root 7 0.0 0.0 0 0 ? S< Sep20 0:00 [kworker/u:0H]
root 8 0.0 …
Run Code Online (Sandbox Code Playgroud) 我最近将我的操作系统升级到 Ubuntu 18.04(通过引导设备全新安装)。但是,在尝试命令时:
sudo apt-get upgrade
Run Code Online (Sandbox Code Playgroud)
它工作正常,直到停止并说:〜75%:
snapd.snap-repair.service is a disabled or a static unit, not starting it.
Run Code Online (Sandbox Code Playgroud)
我不太确定这意味着什么,如果我Crtl-Z摆脱它,任何时候我尝试安装我得到的任何东西:
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Run Code Online (Sandbox Code Playgroud)
并且必须重新启动我的计算机才能安装任何东西。
为什么我们必须使用所有这些快捷方式来退出 中的程序terminal
?
例如 :
top
man
nano
ctrl+c不应该杀死程序吗?
我在运行命令时犯了错误:
cat /dev/urandom
控制台(托管在 Windows 上)充满了垃圾并停止响应Ctrl-Z或其他任何内容。
有什么办法可以恢复控制台吗?