摘要: 找出最可能被杀掉进程 #!/bin/bash printf "\e[5m%9s %9s %s\e[0m\n\n" "oom_score" "PID" "cmdline" for proc in $(find /proc/ -maxdepth 1 -regex '/proc/[0-9]+');do p 阅读全文
posted @ 2021-03-26 17:51 ascertain 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-03-26 15:56 ascertain 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 挂载 mount -t cifs -o username=gdm,password=gdm //ip/share_name /mnt 查看共享 smbclient --list //ip 远程浏览 smbclient //ip/share_name --user gdm%password 常用命令 阅读全文
posted @ 2021-03-26 15:11 ascertain 阅读(63) 评论(0) 推荐(0) 编辑
摘要: Rename database 重命名数据库 #!/bin/env bash echo -e "\e[5mthe program is designed to rename database!\e[0m" read -p 'the source database: ' src read -p 'th 阅读全文
posted @ 2021-03-26 14:20 ascertain 阅读(193) 评论(0) 推荐(0) 编辑