随笔分类 - linux
摘要:正则表达式和grep用法,及文本查看、处理工具 https://www.sohu.com/a/199364326_470018 grep及正则表达式 https://blog.51cto.com/kusorz/1826899 grep 常见用法 https://zhuanlan.zhihu.com/
阅读全文
摘要:https://blog.csdn.net/qq_39759656/article/details/83547582 Linux中执行shell脚本的5种方法总结 https://blog.csdn.net/yanxilou/article/details/88948709?utm_medium=d
阅读全文
摘要:1. mkdir -p /home/用户名/.ssh 2. 保证本地机器生成公钥和私钥,并把公钥追加到远程机器的authorized_keys文件里可以windows上执行ssh-keygen,复制windows C:\Users\用户名\.ssh\id_rsa.pub公钥文件内容到linux /h
阅读全文
摘要:https://blog.csdn.net/newborn2012/article/details/22067965 1.mail.htm: From: sender<sender@xxx.com>To: receiver<receiver@xxx.com>Subject: subjectConte
阅读全文
摘要:只删除当前目录下(第一级目录)文件类型的 find /opt/xxx -maxdepth 1 -type f -exec rm -fv {} \; 删除除了logs(文件或文件夹)以外的所有 cd /opt/xxx && ls | grep -v logs | xargs rm -rvf
阅读全文
摘要:sed -i '/username/d' /etc/sudoerssed -i '$d' /etc/sudoerssed -i "$ a lt32806 ALL=(ALL) ALL" /etc/sudoers chmod u+w /etc/sudoerssed -i 's/# %wheel ALL=
阅读全文
摘要:scpg3 C:/app-report.jar username@hostname:/opt/report/app-report.jarscpg3 username@hostname:/opt/report/app-report.jar C:/app-report.jar sftpg3 userna
阅读全文
摘要:echo -e "[NOT-CERTIFIED]\nname=NOT-CERTIFIED\nbaseurl=http://xxx/openopen/not-cert/rhel7-x86_64/latest/RPMS.all\nenabled=0\ngpgcheck=0" > /etc/yum.rep
阅读全文
摘要:https://bbs.testerhome.com/topics/20462
阅读全文
摘要:https://unix.stackexchange.com/questions/118209/exit-of-mode-in-unix-shell ^D will only work if a process is reading from standard input. ^\ is a good
阅读全文
摘要:http://www.bcty365.com/content-122-6241-1.html
阅读全文
摘要:vim /etc/apt/sources.list deb http://mirrors.163.com/debian/ jessie main non-free contribdeb http://mirrors.163.com/debian/ jessie-updates main non-fr
阅读全文
摘要:http://www.30daydo.com/article/188
阅读全文
摘要:https://www.ibm.com/developerworks/cn/linux/l-cn-nohup/ 1.nohup ping www.ibm.com & 2.setsid ping www.ibm.com 3.(ping www.ibm.com &) 4.如果提交命令时未使用“&”将命令
阅读全文
摘要:echo "remove only files, the logs folder and it contents will not be removed"find /opt/trade-disposal -maxdepth 1 -type f -exec rm -fv {} \;rm -rf /op
阅读全文
摘要:@echo offnetstat -an |find /i "LISTENING"pause netstat -ano|findstr "8888"
阅读全文
摘要:df -Phdu -h --max-depth=1 du -ah /var 2> /dev/null | sort -rh | head -10du -sh /u02/weblogic/user_projects/domains/logsdu -sh /u02/mysqlfind / -size +
阅读全文
摘要:1.操作系统配置(以root用户执行) 1)安装编译工具 cmake(已经安装过可以跳过) yum install -y cmake 2.安装Qconf 1)下载安装源码 wget http://10.0.42.1:4201/soft/Qconf-1.0.0.zip unzip QConf-1.0.0.zip...
阅读全文
摘要:rm -rf /tmp/wiq.warcp /u02/wms_dev/wiq-app/wars/wiq.war /tmpcd /tmp jar xvf wiq.war vim WEB-INF/classes/log4j.propertiesjar uvf wiq.war WEB-INF/classe
阅读全文
浙公网安备 33010602011771号