随笔分类 -  linux

摘要:正则表达式和grep用法,及文本查看、处理工具 https://www.sohu.com/a/199364326_470018 grep及正则表达式 https://blog.51cto.com/kusorz/1826899 grep 常见用法 https://zhuanlan.zhihu.com/ 阅读全文
posted @ 2020-07-29 19:46 tonggc1668 阅读(2949) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/qq_39759656/article/details/83547582 Linux中执行shell脚本的5种方法总结 https://blog.csdn.net/yanxilou/article/details/88948709?utm_medium=d 阅读全文
posted @ 2020-07-22 11:08 tonggc1668 阅读(190) 评论(0) 推荐(0)
摘要:1. mkdir -p /home/用户名/.ssh 2. 保证本地机器生成公钥和私钥,并把公钥追加到远程机器的authorized_keys文件里可以windows上执行ssh-keygen,复制windows C:\Users\用户名\.ssh\id_rsa.pub公钥文件内容到linux /h 阅读全文
posted @ 2020-05-14 15:32 tonggc1668 阅读(122) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/newborn2012/article/details/22067965 1.mail.htm: From: sender<sender@xxx.com>To: receiver<receiver@xxx.com>Subject: subjectConte 阅读全文
posted @ 2020-04-09 14:39 tonggc1668 阅读(599) 评论(0) 推荐(0)
摘要:只删除当前目录下(第一级目录)文件类型的 find /opt/xxx -maxdepth 1 -type f -exec rm -fv {} \; 删除除了logs(文件或文件夹)以外的所有 cd /opt/xxx && ls | grep -v logs | xargs rm -rvf 阅读全文
posted @ 2020-03-06 20:59 tonggc1668 阅读(253) 评论(0) 推荐(0)
摘要: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= 阅读全文
posted @ 2020-03-06 14:22 tonggc1668 阅读(278) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2020-03-03 16:36 tonggc1668 阅读(997) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2020-03-02 11:38 tonggc1668 阅读(3332) 评论(0) 推荐(0)
摘要:https://bbs.testerhome.com/topics/20462 阅读全文
posted @ 2019-11-26 21:37 tonggc1668 阅读(166) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2019-11-22 19:07 tonggc1668 阅读(112) 评论(0) 推荐(0)
摘要:http://www.bcty365.com/content-122-6241-1.html 阅读全文
posted @ 2019-08-25 19:11 tonggc1668 阅读(258) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2019-08-25 16:54 tonggc1668 阅读(3708) 评论(0) 推荐(0)
摘要:http://www.30daydo.com/article/188 阅读全文
posted @ 2019-08-25 14:07 tonggc1668 阅读(207) 评论(0) 推荐(0)
摘要: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.如果提交命令时未使用“&”将命令 阅读全文
posted @ 2018-12-11 17:03 tonggc1668 阅读(162) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-08-02 17:57 tonggc1668 阅读(255) 评论(0) 推荐(0)
摘要:@echo offnetstat -an |find /i "LISTENING"pause netstat -ano|findstr "8888" 阅读全文
posted @ 2018-04-24 12:01 tonggc1668 阅读(95) 评论(0) 推荐(0)
摘要: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 + 阅读全文
posted @ 2017-12-11 20:27 tonggc1668 阅读(164) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2017-09-15 13:47 tonggc1668 阅读(1803) 评论(0) 推荐(1)
摘要: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 阅读全文
posted @ 2017-09-14 10:43 tonggc1668 阅读(566) 评论(0) 推荐(0)