如何在linux系统中安装python?
Linux系统默认是安装有python,可以先在终端输入: python 然后看看是否有回显,如果有就不需要安装了。如果没有,可以按照下面得方法安装: 打开终端,输入:wget 下载完毕后 输入解压命令:tar –zxvf Python-3.5.0b4.tgz 切换到解压的目录:cd Python* 接下来就是安装: ./configure make make install 然后查看一下就知道了: 输入python如果出现下面的提示: Python 3.5.0 (#1, Aug 06 2015, 14:04:52) [GCC 4.1.1 20061130 (Red Hat 4.1.1-43)] on linux2 Type “help”, “copyright”, “credits” or “license” for more information. 就说明成功了,因为linux系统可能不一样,第二行有可能不同哈。
Linux ps命令详解?
ps是一个 Linux 命令,显示有关系统上当前正在运行的进程的信息。
一些常见的选项ps是:
-aux:以面向用户的进程状态格式显示所有用户的所有进程的信息。
-ef或-e:以比默认格式提供更多信息的格式显示有关所有进程的信息。
-u USER:仅显示有关以指定用户身份运行的进程的信息。
请注意,ps命令的选项和输出可能因类 Unix 操作系统而异。查阅手册页 ( man ps) 以获取更多信息和用法示例始终是个好主意。
还没有评论,来说两句吧...