See the following test:
$ more first.txt
this is first
$ more second.txt
this is the second one
$ mkdir test
$ mv first.txt test
$ cat >first.txt
this is the second first one
$ more test/first.txt
this is first
$ more first.txt
this is the second first one
$ mv first.txt test
$ more test/first.txt
this is the second first one
$ cat >first.txt
this is the third first
$ cp fisrt.txt test
cp: cannot access fisrt.txt
$ cp first.txt test
$ more test/first.txt
this is the third first
$ cd test
$ ls
first.txt。
本文通过一系列命令演示了如何在Linux环境中进行基本的文件操作,包括创建、移动、复制及查看文件内容等。文中详细记录了使用诸如`mkdir`、`mv`、`cp`等命令的过程及其结果。
1987

被折叠的 条评论
为什么被折叠?



