因为水平越来越屎,逼得我直接把这里当Wiki了...同学长点脑子吧。这篇将为长更,记录各种自己记不住的命令。。。
## 杀不掉的进程,杀掉 ps -A -ostat,ppid,pid,cmd | grep -e 'quickq' # 得到-A 参数列出所有进程 -o 自定义输出字段 我们设定显示字段为 stat(状态), ppid(进程父id), pid(进程id),cmd(命令),比如, quickq-server 50336 4066 ./quickq-linux-server # 于是, kill -HUP 4066 ##..## ls -la /Users/testing_js/package.json #权限问题查看快捷 sudo chown -R raspberry:admin /Users/folder #权限问题修改快捷 ================ find /root/lnmp -name "*"|xargs grep "Current Nginx" #Linux找含有指定关键字的的文件 ================ dpkg -l | grep -i mysql #list all installed packages ================ ps aux | grep mysqld #查含某关键字的进程 ================ tar xzvf *.tgz #解压缩*.tar.gz ================ ./configure --sbin-path=/usr/local/nginx/nginx --conf-path=/usr/local/nginx/nginx.conf --pid-path=/usr/local/nginx/nginx.pid --with-pcre=/root/pcre-8.36 --with-openssl=/root/openssl-1.0.1j --with-zlib=/root/zlib-1.2.8 --with-http_ssl_module --with-http_v2_module --add-module=/root/ngx_http_google_filter_module --add-module=/root/ngx_http_substitutions_filter_module ================== cat /proc/cpuinfo #Check up cpu info ================== sudo modprobe -r i2c_bcm2708 #卸载设备 -r代表remove =================== sudo modprobe i2c_bcm2708 #重新载入设备 ===================sslocal -c /etc/shadowsocks.json -d start #start from client side
=================== getconf LONG_BIT #查看操作系统位数=================== openssl x509 -req -in server.csr -signkey server.key -out server.crt
#制造证书的各类命令,openssl可以多看看。 ===================== crunch 8 10 abcdefg123|aircrack-ng HQ.cap -b your_BSSID -w- #this one is not fun ===================== 1. /[\s] 2. :%s//\r&/g #两个命令一起的,先找到空格,然后在空格后面加入回车。适合全文。如果是一行:第二个命令换为:s//\r&/g ====================== du -sh .[!.]* du -sh * #第一个可以查看隐藏目录和文件的大小 ======================= du -h –max-depth=1 /usr/local/mysql/ #查看mysql文件占用空间大小 ======================== mysqlbinlog binlog.000001 #查看mysql的binary log
=========================
telnet smtp.qq.com 578
#查看确认是否为smtp server