摘要: # 和cat类似,但每一行一种颜色,方便查看 curl -o coat https://raw.githubusercontent.com/oldratlee/useful-scripts/master/coat chmod +x coat ./coat filename echo -e "he\nha\n"|./coat ./coat --help # 查看帮助 阅读全文
posted @ 2019-09-06 11:36 侃豺小哥 阅读(272) 评论(0) 推荐(0) 编辑
摘要: curl https://www.ipaddress.com/ |grep "My IPv4 Address" # 推荐 curl icanhazip.com curl www.trackip.net/i|grep "<span>" curl ifconfig.me curl ifconfig.me 阅读全文
posted @ 2019-09-06 11:30 侃豺小哥 阅读(2099) 评论(0) 推荐(0) 编辑
摘要: netthogs可以显示每个程序的网络传输情况安装nethogs工具yum install https://mirrors.tuna.tsinghua.edu.cn/epel/7/x86_64/Packages/n/nethogs-0.8.5-1.el7.x86_64.rpm依赖libpcap语法: 阅读全文
posted @ 2019-09-06 11:23 侃豺小哥 阅读(217) 评论(0) 推荐(0) 编辑
摘要: #有时,使用rm删除文件时,可能遇到文件名显示成?不能删除的情况,可以这样操作 #查看文件inode号 假如是17705967 ls -i #删除 find ./ -inum 17705967 -exec rm '{}' \; #另 l. 命令可显示当前目录下所有隐藏文件 阅读全文
posted @ 2019-09-06 11:18 侃豺小哥 阅读(579) 评论(0) 推荐(0) 编辑
摘要: #在vmlinuz段最后添加rd.break Ctrl+X启动 rd.break #在linux16/linux/linuxefi所在参数行尾添加以下内容 init=/bin/sh #此时,可使用mount查看挂载情况,/dev/mapper/rhel-root on /sysroot type xfs并且仅有ro权限 #重新mount,拥有rw权限 mount -o remount,rw /sy 阅读全文
posted @ 2019-09-06 11:15 侃豺小哥 阅读(637) 评论(0) 推荐(0) 编辑
摘要: 新安装的linux系统允许每个程序的最大打开文件数默认是1024,可以通过ulimit -n命令来查看,查看全部限制,则可以使用命令ulimit -a [root@test ~]# ulimit -a core file size (blocks, -c) 0 data seg size (kbyt 阅读全文
posted @ 2019-09-06 10:16 侃豺小哥 阅读(12034) 评论(0) 推荐(1) 编辑