昆明市住房和城乡建设局网站上看的/北京网站优化seo
使用grep找出/etc/passwd文件中以root开头以bash结尾的行,并显示行号
使用find查找/usr/最近7天修改过的文件复制到/dir
把/etc/passwd的第1-3行内容另存 testx.txt
grep -n ‘^root.*bash’ /etc/passwd
find /usr/ -type f +mtime +7 -name ‘*’ |xargs -i cp{}/dir/;
sed -n ‘1,3p’ /etc/passwd >>test.txt
-
Nginx反向代理配置,此类url www.jkkcss.cn/refuse,禁止访问,返回403
location www.jkkcss.cn/refse {
return 403:
} -
如何使用iptables将本地80端口的请求转发到8081端口,当前主机IP为192.168.10.1,其中本地网卡eth0:
iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 8081 -j DNAT --to 192.168.10.1:80 -
如何查看Linux系统当前的状态,cpu内存的使用情况及负载
top
free -h