阿尔哦覅和 发表于 2018-8-23 12:50:21

centos shell 命令

  查看磁盘情况
  # parted
  root@localhost beinan]# df -lh Filesystem 容量 已用 可用 已用% 挂载点
  root@localhost test ~]# file -s /dev/sda1
  # mount
  # df -lhT
  root@localhost test ~]# fdisk -l
  查看哪个目录把空间占满了
  cd /;du -sh *
  移除依赖包
  yum -y remove mysql-libs-5.1.52*
  可以通过强制关掉yum进程:
# rm -f /var/run/yum.pid  
  查看是否安装
  # rpm -q httpd mysql php
  开机启动
  chkconfig - - list
  chkconfig- -add   
查看某个软件安装在哪个目录
rpm -ql软件名   
  卸载软件
  yum remove nginx
  
  


页: [1]
查看完整版本: centos shell 命令