小编ala*_*min的帖子

/usr/lib/xorg/Xorg 的 CPU 使用过多

我的 CPU 使用率几乎是 90%+ 在调查了 htop 的输出后,我看到,下面这个命令有一个进程占用了太多的 CPU 使用率

 /usr/lib/xorg/Xorg -nolisten tcp :0 vt1 -keeptty -auth /tmp/serverauth.eEvrhpxBUl
Run Code Online (Sandbox Code Playgroud)

看一下整个数据

alamin    1635  1634 31 06:12 tty1     00:35:13 /usr/lib/xorg/Xorg -nolisten tcp :0 vt1 -keeptty -auth /tmp/serverauth.eEvrhpxBUl
alamin    9081 26703  0 08:04 pts/0    00:00:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn Xorg
Run Code Online (Sandbox Code Playgroud)

lspci 输出

00:00.0 Host bridge: Intel Corporation Broadwell-U Host Bridge -OPI (rev 09)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09)
00:03.0 Audio device: Intel Corporation Broadwell-U Audio Controller …
Run Code Online (Sandbox Code Playgroud)

linux cpu xorg

13
推荐指数
1
解决办法
2万
查看次数

语句块Shell 脚本中的机制?

开始 Linux 编程一书中。有一节是关于Statement Block 的。在该部分中,解释如下所示。

语句块

如果您想在只允许一个语句的地方使用多个语句,例如在 AND 或 OR 列表中,您可以通过将它们括在大括号 {} 中以形成语句块来实现。例如,请参阅以下代码:

get_confirm && {
    grep ?v "$cdcatnum" $tracks_file > $temp_file 
    cat $temp_file > $tracks_file
    echo
    add_record_tracks
}
Run Code Online (Sandbox Code Playgroud)

请解释代码在语句块中是如何执行的...

shell bash zsh shell-script

9
推荐指数
1
解决办法
1万
查看次数

shell 如何解释 ././command-name?

hello2在当前工作目录中有一个名为的二进制文件。

要执行它,我需要按下./hello2它并显示输出。

但是当我使用以下命令时././hello2它仍然有效。

你能解释一下shell是如何解释这个命令的吗?

shell directory slash filenames

3
推荐指数
1
解决办法
1050
查看次数

标签 统计

shell ×2

bash ×1

cpu ×1

directory ×1

filenames ×1

linux ×1

shell-script ×1

slash ×1

xorg ×1

zsh ×1