- 作者简介:花神庙码农(专注于Linux、WLAN、TCP/IP、Python等技术方向)
- 博客主页:花神庙码农 ,地址:https://blog.csdn.net/qxhgd
- 系列专栏:Linux技术
- 如觉得博主文章写的不错或对你有所帮助的话,还望大家三连支持一下呀!!! 关注✨、点赞、收藏、评论。
- 如需转载请参考转载须知!!
touch test.txt #创建单个文件
touch test1.txt test2.txt #创建两个文件
touch test{0001..10000}.txt ##创建10000个文件
> test.txt
>> test.txt
ls > test.txt
ls >> test.txt
ps -ef | grep java >test.txt
cat > test.txt
cat >> test.txt
cat >> test.txt<<eof
cat >> test.txt<<exit
cat << EOF > file1.txt
echo 'some infomation' > test.txt
echo 'some infomation again' >> test.txt
printf "Hello, Shell" > hello.txt
cp src.txt dst.txt
mv log.txt log.txt.bak
dd if=/dev/zero of=1G.test bs=1 count=0 seek=1G
fallocate -l 1G 1G.test
vi test.txt
vim touch.txt
如本文对你有些许帮助,欢迎大佬加关注、评论、点赞,有关必回关