bash 在腻子中将文件从一个位置移动到另一个位置

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2583182/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-17 21:54:51  来源:igfitidea点击:

move file from one location to another in putty

bashputty

提问by dexter

i have created folder on my server (ie finesse)- 'home' in which i have several perl(.pl)files as

我在我的服务器上创建了文件夹(即精巧)-“家”,其中我有几个perl(.pl)文件

tt.pl, re.pl etc.

tt.pl、re.pl 等

now i have created new folder in 'home' folder called 'perl'

现在我在名为“perl”的“home”文件夹中创建了新文件夹

and want to move tt.pl and re.pl in perl folder

并想在 perl 文件夹中移动 tt.pl 和 re.pl

is there any command to do so (like cut-paste in windows)?

是否有任何命令可以这样做(例如在 Windows 中剪切粘贴)?

note: i am using putty 0.60 on windows xp

注意:我在 windows xp 上使用腻子 0.60

采纳答案by Dmitry Yudakov

This should work

这应该工作

mv - move (rename) files

mv - move (rename) files

   mv [OPTION]... [-T] SOURCE DEST
   mv [OPTION]... SOURCE... DIRECTORY
   mv [OPTION]... -t DIRECTORY SOURCE...

In your case:

在你的情况下:

mv tt.pl re.pl perl/

mv tt.pl re.pl perl/

回答by Aman Jain

mv home/*.pl home/perl/

mv home/*.pl home/perl/

Is that what you are looking for?

这就是你要找的吗?