linux命令echo和cat比较
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
当前主要比较echo 和 cat的重定向功能
1、echo 1 > /proc/xxx
解析: echo 进行重定向的时候,仅仅是将字符“1” 输出到 /proc/xxx文件中
2、cat /tmp/vmlinux.bin > /dev/mtdblock2
解析: cat 进行重定向的时候,将/tmp/vmlinux.bin中的内容输出到/dev/mtdblock2中
结论:如果需要覆盖flash中的内容,只能用cat或dd命令,不能使用echo命令。




A beautiful web dashboard for Linux
最近提交(Master分支:17 天前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
更多推荐
所有评论(0)