清空文件内容:
1. echo "" > test.txt echo >test.txt
2. >test.txt :>test.txt
3. cat /dev/null > test.txt
查看Linux版本信息:
uname -a
cat /proc/version
cat /etc/issue
lsb_release -a
清空文件内容:
1. echo "" > test.txt echo >test.txt
2. >test.txt :>test.txt
3. cat /dev/null > test.txt
查看Linux版本信息:
uname -a
cat /proc/version
cat /etc/issue
lsb_release -a