小编bol*_*ano的帖子

安装 miniconda Python 2.7

我正在尝试miniconda在 ubuntu 12.04 上安装Python 2.7。我已经写了这个:

if ! [ -f ~/.bash_profile ]; then touch ~/.bash_profile; fi
if ! [ -f ~/.bashrc ]; then touch ~/.bashrc; fi
if ! grep -q "source ~/.bashrc" ~/.bash_profile; then echo 'if [ -f    ~/.bashrc ]; then source ~/.bashrc; fi' >> ~/.bash_profile; fi
Run Code Online (Sandbox Code Playgroud)

然后我使用:

bash Miniconda-*.sh 
Run Code Online (Sandbox Code Playgroud)

但一个过程开始并永无止境。我不知道如何解决这个问题。

python

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

为什么 ps 输出显示一个进程,即使它没有运行?

为什么ps即使没有运行,也会显示一个进程。当 Firefox 运行时:

$ echo $(ps aux | awk  '/firefox/{print $2}')
5964 6041
Run Code Online (Sandbox Code Playgroud)

但是当 Firefox 没有运行时,我尝试运行相同的命令。它每次都显示不同的PID。

我尝试抓取它:

$ ps aux | grep firefox
greenpa+  6056  0.0  0.0  15956   948 pts/11   S+   09:29   0:00 grep --color=auto firefox
Run Code Online (Sandbox Code Playgroud)

这是什么意思?

process ps

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

标签 统计

process ×1

ps ×1

python ×1