Linux 基础命令

查询

  1. 查看端口占用
    netstat -anp |grep 22

  2. 查看进程占用的端口
    netstat -anp |grep ssh

http请求

  1. curl-post
    curl -H "Content-Type: application/json" -X POST -d '' http://xxx

mysql

  1. 连接
    mysql -uroot -p

  2. 查看表结构
    desc table
    describe table
    show columns from tbale

一条小咸鱼