
Shell
bootbool
这个作者很懒,什么都没留下…
展开
-
Shell读取进程信息
for i in `ls /proc/*/ -d`;do pid=`basename $i`; echo $pid | grep -Eq '^[+-]?[0-9]+$' if [ $? -ne 0 ]; then continue fi echo $pid cat /proc/$pid/status | head -n...原创 2019-04-04 11:22:06 · 321 阅读 · 0 评论 -
Iptables使用小结
限速sudo iptables -I OUTPUT -d 192.168.7.6 -m limit --limit=1/s --limit-burst=1 -j ACCEPTsudo iptables -A OUTPUT -d 192.168.7.6 -j DROP原创 2019-04-11 18:27:21 · 169 阅读 · 0 评论 -
LINUX 配置,.bashrc
LINUX 配置# define environments for all usersexport PATH=$PATH:/opt/usr/binexport HISTFILESIZE=10000export HISTSIZE=2000PS1='`basename \w`\$ 'export RAMDISK="/mnt/RAMDISK"# java setupexport...原创 2019-04-22 10:10:45 · 532 阅读 · 0 评论 -
linux迁移
Linux installation migrate , copyrsync aAXv /* /path/to/backup/folder exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found}原创 2019-04-22 10:17:09 · 324 阅读 · 0 评论