![](/img/trans.png)
[英]move all the folders and files to the folder with the same subject name in the directory Linux
[英]Move multiple files in same directory without typing directory name each time (Linux)
我有一個包含文件a,b,c的目錄dir,我想移動它們
mv dir/a dir/b dir/c ...
是這樣做的標准方法。 是否有避免多次輸入dir /的快捷方式? 也許像這樣:
mv dir/(a, b, c) ...
是的,它與您的猜測非常相似: mv dir/{a,b,c} dest
是的,您應該可以執行以下操作
mv dir/{a.out, b.out, c.out} /path/to/newdirectory/
您只需要使用花括號而不是括號即可。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.