➜ ~ ps aux | grep -E "(gnome-shell|xfce4-session|kwin|openbox|i3|awesome|metacity)" root 1016 0.0 0.0 3624 1812 pts/2 R+ 14:03 0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox -E (gnome-shell|xfce4-session|kwin|openbox|i3|awesome|metacity)
时间: 2023-11-23 11:53:16 浏览: 53
根据您的输出,没有发现正在运行的其他窗口管理器进程。
如果您仍然无法启动 i3 窗口管理器并且收到错误消息“Another window manager seems to be running (X error 10)”,则可能是由于 Xorg 会话中存在其他窗口管理器配置文件导致的。您可以尝试删除或重命名以下文件:
- ~/.config/gnome-session/sessions/i3.session
- ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
- ~/.config/openbox/autostart
- ~/.config/awesome/rc.lua
- ~/.config/metacity/sessions/i3.session
- ~/.config/kwinrc
如果您使用的是 GNOME,请确保删除以下文件:
- ~/.config/autostart/i3.desktop
- /usr/share/xsessions/i3.desktop
删除这些文件后,重启 Xorg 会话并再次尝试启动 i3 窗口管理器。
相关问题
ps aux|grep -v grep|grep opentest
ps aux|grep -v grep|grep opentest 是一个常用命令行指令,用于查找正在运行的进程中包含关键字 "opentest" 的进程。具体解释如下:
- ps:用于显示当前系统中的进程状态。
- aux:选项用于显示所有用户的所有进程。
- grep -v grep:用于过滤掉包含关键字 "grep" 的行,避免将 grep 进程本身也显示出来。
- grep opentest:用于过滤出包含关键字 "opentest" 的行,即查找包含 "opentest" 的进程。
综上所述,ps aux|grep -v grep|grep opentest 的作用是查找正在运行的进程中包含关键字 "opentest" 的进程。
ps aux | grep -v | grep job
`ps aux | grep -v | grep job` 这个命令有点问题,因为缺少了要搜索的模式或关键字。正常情况下,`grep` 命令需要一个模式参数,用于匹配要搜索的内容。
如果您想要搜索包含 "job" 关键字的进程,可以使用类似以下的命令:
```
ps aux | grep job
```
这将列出所有包含 "job" 关键字的进程。其中,`ps aux` 用于显示所有正在运行的进程,然后通过管道 `|` 将结果传递给 `grep job` 进行过滤。
如果您希望排除包含 "job" 关键字的进程,可以使用 `-v` 参数来反转匹配:
```
ps aux | grep -v job
```
这将列出不包含 "job" 关键字的进程。
请确保在使用 `grep` 命令时提供正确的模式或关键字,并根据需要进行适当的修改。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)