useful linux commands

来源:互联网 发布:曹兴诚 知乎 编辑:程序博客网 时间:2024/04/27 15:44

测试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

原创粉丝点击