useful linux commands

测试cp卡的读写速度

# date && cat  /root/appb/disk_release* > /dev/null  && date

#date && cp  /root/appb/disk_release* /root/appb/cptest/  && date

或者用time

time cp  /root/appb/disk_release* /root/appb/cptest/

测试nandflash 读写速度

zbimage-linux-xload0 1M大小,写10次
time for i in `seq 1 10`;do cp zbimage-linux-xload0 /mnt/data/ ;done

real    0m0.441s
user    0m0.030s
sys     0m0.410s

22.7M/s

读10次

time for i in `seq 1 10`;do cat /mnt/data/zbimage-linux-xload0 >/dev/null ;done

75.7M/s

real    0m0.132s
user    0m0.020s
sys     0m0.110s

 

两个都重定向

>/dev/null 2>&1
ln -s target linkname
ln -s /boot  boot1

 

ln -s target linkname
ln -s /boot  boot1

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值