检查高 CPU / 内存消耗进程
检查高 CPU / 内存消耗进程 cpu #!/bin/bash ps -eo pid,user,ppid,%mem,%cpu,cmd --sort=-%cpu | head | tail -n
...Read more...
数人世相逢,百年欢笑.
检查高 CPU / 内存消耗进程 cpu #!/bin/bash ps -eo pid,user,ppid,%mem,%cpu,cmd --sort=-%cpu | head | tail -n
...Read more...
shell 脚本的帮助信息 #!/usr/bin/env bash ### ### my-script — does one thing well ### ### Usage: ### my-s
...Read more...
linux 重写 make 默认多核 which make => /usr/bin/make cp -rf /usr/bin/make /usr/bin/make.bak rm -rf /
...Read more...
bash 技巧 set -x -e -u -o pipefail set -xeuo pipefail -x :在执行每一个命令之前把经过变量展开之后的命令打印出来。 这个对于 debug 脚本
...Read more...
mv 小技巧 bash 技巧, 在文件名中间改变 # "foo-bar-baz.txt" to "foo-bar-quux.txt" mv foo-bar
...Read more...
Bash 脚本检查高 cpu / 内存消耗进程在 Linux 上的运行时间 cpu # vi /opt/scripts/long-running-cpu-proc.sh #!/bin/bash
...Read more...
bash 数据处理 grep item, modelnumber, price, tax Sneakers, MN009, 49.99, 1.11 Sneakers, MTG09, 139.99
...Read more...