`
wangshaofei
  • 浏览: 273218 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

linux 常用命令

阅读更多

ps  查看进程

kill -9 PID stop ps

eg: $ps aux | grep startup.py  // get pid.

and kill -9 [the pic]  will kill startup.py

top 进程管理器 还有一个htop有高亮显示

apt-get install/remove 安装删除软件

dpkg -i 安装  xxx.deb 软件包 如果安装过程中提示缺少依赖包 就运行 apt-get -f insall 安装缺少的依赖包。

free 查看内存使用情况

init 0 关机

init 6 重启

init 3 命令行

init 5 进入图形界面 startx

 

add path:

    $vim .profile and write below in the end of file:

         PATH="you will add path:$PATH"

         save and $source .profile  work now.

 

view space : 

    du : view . space

    df : view all space

        -s all; -h display K,M ...; --max-depth=[NO]

 

查看内核版本:

    $uname -a

查看发行版:

    $cat /etc/issue

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics