Rod*_*ino 5 command-line windows-subsystem-for-linux
现在可以在 Windows 上使用 Ubuntu 终端或 bash shell。
如何使用ps
或列出 Windows 进程htop
?
小智 9
如果要列出 Windows 本机进程,可以从 bash 调用 tasklist.exe。它将返回当前正在运行的 Windows 进程的列表。实际上,您可以从 bash 中调用任何 Windows 可执行文件。您所要做的就是在调用它时添加文件扩展名:
tasklist.exe
Yar*_*ron -1
在 Windows 10 Bash中您可以执行:
ps -ef
Run Code Online (Sandbox Code Playgroud)
您还可以htop
使用以下方式安装:
sudo apt-get install htop
Run Code Online (Sandbox Code Playgroud)
然后执行
htop
Run Code Online (Sandbox Code Playgroud)
然而, Windows 10 Bash 仅限于运行它的用户。
您将无法以 root 身份访问 Windows 10 系统。
您可以将其视为 Windows 10 中的有限 Ubuntu 沙箱
更多信息MSDN bash