(syntax)linux
2022-09-01 00:00:00

linux

基础

  • 安装

    • yum(Centos) yum update/list/ remove/search/clean package
    • apt(Ubuntu) apt update/upgrade (升级)
  • 远程

    • ssh-keygen -t rsa -C “”
    • mkdir /root/.ssh 、 chmod 700 /root/.ssh 、vim /root/.ssh/authorized_keys public key
  • 文件目录

    • 文件查找
    • 目录 ls(ll ls -l) cd pwd mkdir rm rmdif mv cp touch cat nl more less head tail
  • 用户权限

  • 磁盘管理 df du

  • 性能监控和优化 top free vmstat lostat lsof

  • 网络命令 ipconfig route ping traceroute netstat telnet

  • 其他命令 lin diff grep wc ps watch at crontab

  • cd / ~ cd cd 回退到上一层

  • ls -a 查看隐藏目录

安装

  • samba\dhcp\dns\ftp\mysql\nginx\
  • sercice xxx status/start/stop/restart
  • systemctl status/start/stop/restart xxx
  • 开机自启 systemctl list-unit-files|grep xxx systemctl list-unit-files|grep xxx
上一页
2022-09-01 00:00:00
下一页