# mysql-client终端设置utf8编码 set names utf8; #万能XSS漏洞检查串 \u003cimg src=1 \u006fnerror=alert(/xss/) aa\u003e'"<u>XSSSSTEST</u><!-- #curl加cookie参数 curl --cookie "wsid=1001;skey=Abc;uid=5954121" "https://cgi.example.com/s?actId=1001" #curl使用指定的ip请求域名 curl -x "10.156.39.110:8082" -I "https://api.example.com" #wget使用指定的ip请求域名 wget -d https://api.example.com/ --header "X-Forwarded_For: 1.1.1.1" -e http_proxy=1.1.1.1:80 # wget post上传json数据,并保存在指定文件a.txt wget --header="Content-type:application/json" --post-data='{"Field1" : "2017/08/27 0:00:00","Field2" : "2017/05/14 0:00:00","Pager" : {"PageIndex" : 1,"PageSize" : 12},"Id" : 5961}' -S https://cgi.example.com/s -e http-proxy=10.179.21.21:8080 -O a.txt # 删除10天前的文件 find ./ -name "XXX" -type f -mtime +10 -exec rm {} \; # 删除满足指定通配符的所有文件 find ./ -name "ABC.*" -type f -exec rm {} \; # 统计当前第一层目录下所有文件占用的空间大小 du ./ -h --max-depth=1 # 向Linux服务器上传大文件 rz -yeb # 查看进程的线程运行情况 top -p 进程id top H 查看磁盘IO状态,2秒刷新1次 iostat -x 2 # 查看系统kill日志 dmesg | grep XXX # 批量修改文件后缀名 for file in $(find . -name "*.txt" -type f); do mv "$file" "${file%.*}.dat"; done #重启DNS服务(可清空DNS缓存) nohup rcnscd restart & #awk换行输出 cat ip.lst | awk -F" " '{printf ("%s\n", $3)}' # shell取一天前的日期 date -d "1 days ago" +"%Y-%m-%d" #修改共享内存的大小 vi /proc/sys/kernal/shmmax 也可以直接用echo size > /proc/sys/kernel/shmmax修改 # 查看系统支持的最大线程数 cat /proc/sys/kernel/threads-max # 修改终端编码 export LC_ALL=zh_CN.UTF-8 #将所有后缀为.c的文件修改为.cpp rename .c .cpp *.c # 查看指定端口占用情况 lsof -i tcp:2181 | grep -v COMMAND # 查看数字的具体日期 date -d@14000000000 2413年 08月23日 星期五 08:53:20 CST 未完待续,欢迎补充... |
|
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系
[邮箱地址] 删除
|