Home
Sign Up
Sign In
Distributions
›
Ubuntu
›
Fedora
›
CentOS
中文资源站
›
网易开源镜像站
V2EX
›
Linux
复制文件时怎么省略完整路径?
kukat
·
May 3, 2014
· 5590 views
This topic created in 4573 days ago, the information mentioned may be changed or developed.
cp /very/long/path/to/my/oldFile /very/long/path/to/my/newFile
复制到同一目录下,怎么才能省略掉目的地完整路径?
cp /very/long/path/to/my/oldFile ...newfile
myFile
cp
省略
9 replies
•
2014-05-03 13:27:48 +08:00
skydiver
May 3, 2014
3
1
cp /very/long/path/to/my/{oldFile,newfile}
kukat
OP
May 3, 2014
2
@
skydiver
没有别的方法吗?这样 tab 不能补全额
skydiver
May 3, 2014
3
@
kukat
zsh里可以补全
kukat
OP
May 3, 2014
4
@
skydiver
服务器上只有 bash…
yangqi
May 3, 2014
5
先补全再加上{不就好了
另外一种是 cd /very/long/path/to/my/ ; cp oldFile newfile
这种也一样没法补全
mr_pppoe
May 3, 2014
2
6
用行编辑的复制粘贴也很方便,
输入cp /very/long/path/to/my/<ctrl-w><ctrl-y>oldFile <ctrl-y>newFile
yakiang
May 3, 2014
7
大家服务器上不用 zsh 的么 - -
est
May 3, 2014
8
@
yakiang
服务器上理论应该尽量少装不必要的第三方软件。都有zsh了。不是每个人一套dotfile的节奏么。。。。。。。。。。。
skydiver
May 3, 2014 via Android
9
@
est
平时不会运行又不会影响性能…装一个无所谓的吧…
到哪都用同一份配置文件,方便的很
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
3315 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 37ms ·
UTC 05:40
·
PVG 13:40
·
LAX 21:40
·
JFK 00:40
♥ Do have faith in what you're doing.
❯