文章分类 - Linux
摘要:内存 free -h 占用内存应用排序 top #(然后按下M,注意这里是大写) CPU top #(然后按下P,注意这里是大写) 磁盘 df -h IO iostat -dxm 3 9 flag -d -m 以MB单位显示 -x 更详细的信息 每三秒采集一次 netstat 统计TCP链接 net
阅读全文
摘要:1.硬盘文件写入速度测试 time dd if=/dev/zero bs=10240 count=1000000 of=/home/ttx/install/test.file 2.硬盘文件读取速度测试 dd if=/home/ttx/install/test.file bs=1024k |dd of
阅读全文
摘要:查看时区 date -R 修改时区 todo 同步时间 sudo ntpdate pool.ntp.org or sudo ntp1.aliyun.com
阅读全文
摘要:Linux监听TCP连接 shell for (( c=1; c>0; )); do netstat -an|awk '/tcp/ {print $6}'|sort|uniq -c;echo "############$(date)###############";sleep 10; done
阅读全文
摘要:Linux 添加用户 adduser [用户名] l 查看系统的编码方式 locale 切换用户 su 用户名 管理员用户/超级用户 sudo su/-i 建立文件夹 mkdir 手动临时挂载/手动卸载磁盘 mount/unmount 自动挂载 etc/fstab 查询系统的磁盘信息 fdisk -
阅读全文
摘要:Linux定时清除缓存1.1 shell脚本 #!/bin/sh #已占用缓存 caches=$(free -m | grep Mem | awk '{print $6}') #内存总量 total=$(free -m | grep Mem | awk '{print $2}') #已使用内存 us
阅读全文

浙公网安备 33010602011771号