配置mysql
https://blog.csdn.net/qq_41510551/article/details/110731610
ln -s 软链接
“ln –s 源文件 目标文件
切换到随机用户:su xxxx
添加用户:useradd xxx
查看用户:gentent passwd
创建文件夹:mkdir xxx
修改文件名:mv 当前名 新名
-f :force强制的意思,如果目标文件已经存在,不会询问而直接覆盖
-i :若目标文件已经存在,就会询问是否覆盖
-u :若目标文件已经存在,且比目标文件新,才会更新
删除文件:rm -rf xxxx
-f :就是force的意思,忽略不存在的文件,不会出现警告消息
-i :互动模式,在删除前会询问用户是否操作
-r :递归删除,最常用于目录删除,它是一个非常危险的参数
添加权限:chmod : w[读] r[写] x[可执行] chmod 777 xxx
pwd:查看当前完整目录
解压文件:
解压zip: unzip 文件名
解压tar tar -zxvf xxxx
mysql的启动、停止 重启
[root@localhost ~]# systemctl start mysqld.service
[root@localhost ~]# systemctl status mysqld.service
[root@localhost ~]# systemctl stop mysqld.service
[root@localhost ~]# systemctl restart mysqld.service
卸载自带python
1.rpm -qa | grep python | xargs rpm -e --allmatches --nodeps //强制卸载自带的python以及相关联的程序
2.whereis python | xargs rm -rf //删除所有与python相关的残余文件