目录:
1 目录: 2 /bin:可执行文件 3 /sbin:系统文件 4 /dev:设备文件
1 ip:vi /etc/sysconfig/network-scripts/ifcfg-ens33; 2 3 centos7修改hostname:vi /etc/hostname; 4 5 ip映射:vi /etc/hosts; 6 7 df / 8 du / 9 free /* 10 pstree /*进程树 11 echo 1 > /proc/sys/vm/drop_caches清理缓存 12 kill -9 进程号 13 kill -1 进程号 14 15 chmod (change mode )change ugoa{+-=}{rwx} 16 chmod 750 b.txt (r=4,w=2,x=0) 17 chown -R lee:test dir 18 chgrp root test.log 19 20 rpm -ivh mysql 21 rpm -e mysql --nodeps 22 23 yum -y insall mysql 24 yum -y update mysql 25 yum -y remove mysql 26 27 配置yum源 28 mkdir /mnt/cdrom 29 mount /dev/cdrom /mnt/cdrom 30 cd /etc/yum.repos.d/ 31 rename .repo .repo.bak 32 cp centos-media.repo.bak centos-media.repo 33 34 vi centos-media.repo 35 enable=1
来源:https://www.cnblogs.com/Dai-py/p/10773409.html