小编Rob*_*Rob的帖子

mv files with | xargs

I'm just trying to move a bunch of files (not symlinks) out of my /etc/apache/sites-enabled folder into the /etc/apache/sites-available folder with the following:

/etc/apache2/sites-enabled$ find . -maxdepth 1 -type f | xargs mv {} ../sites-available/
Run Code Online (Sandbox Code Playgroud)

but I'm an ubuntu n00b and am getting this error:

mv: target `./real-file' is not a directory
Run Code Online (Sandbox Code Playgroud)

where 'real-file' is a test file I've set up on my dev environment. I'm trying to tidy up someone else's mess on a production server ;-)

command-line mv

24
推荐指数
2
解决办法
5万
查看次数

如何删除“ip 路由列表”中的条目?

我在制定正确的命令来删除第三行时遇到问题ip route list

#ip route list
default via 172.31.16.1 dev eth0  metric 100 
172.31.16.0/20 dev eth0  proto kernel  scope link  src 172.31.18.50 
172.31.16.0/20 dev eth1  proto kernel  scope link  src 172.31.23.44 #REMOVE ME
172.32.23.0/24 dev eth1  proto kernel  scope link  src 172.32.23.44 
Run Code Online (Sandbox Code Playgroud)

networking routing ip

3
推荐指数
1
解决办法
2万
查看次数

标签 统计

command-line ×1

ip ×1

mv ×1

networking ×1

routing ×1