我正在尝试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)
但一个过程开始并永无止境。我不知道如何解决这个问题。
为什么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)
这是什么意思?