Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我尝试"Data01"使用Pico编辑器创建一个文件名,其内容为"Data File Number 01"一行。
"Data01"
"Data File Number 01"
但是我当前的目录是 csc209/asgn06
csc209/asgn06
我需要 csc209/asgn06/test01在一个命令中创建这些文件而不更改目录。有没有办法做到这一点?
csc209/asgn06/test01
只需在文件名前加上相对路径即可。如果目录存在:
pico test01/Data01
否则,首先使用以下命令创建它:
mkdir test01
然后如上进行。