linux - 为什么这个文件没有下载到指定位置?

标签 linux ubuntu web command-line wget

我正在下载这个link中的文件.我使用的是 Ubuntu 12.04,我使用以下命令下载它。

wget -p /home/ubuadmin/CUDA http://developer.download.nvidia.com/compute/cuda/5_5/rel/installers/cuda_5.5.22_linux_32.run

下面是我的命令行输入和输出。

root@ubuserver3:/home/ubuadmin# wget -p /home/ubuadmin/CUDA http://developer.download.nvidia.com/compute/cuda/5_5/rel/installers/cuda_5.5.22_linux_32.run
/home/ubuadmin/CUDA: Scheme missing.
--2014-03-11 08:06:28--  http://developer.download.nvidia.com/compute/cuda/5_5/rel/installers/cuda_5.5.22_linux_32.run
Resolving developer.download.nvidia.com (developer.download.nvidia.com)... 23.62.239.35, 23.62.239.27
Connecting to developer.download.nvidia.com (developer.download.nvidia.com)|23.62.239.35|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 686412076 (655M) [application/octet-stream]
Saving to: `developer.download.nvidia.com/compute/cuda/5_5/rel/installers/cuda_5.5.22_linux_32.run'

100%[======================================>] 686,412,076  663K/s   in 16m 56s

2014-03-11 08:23:24 (660 KB/s) - `developer.download.nvidia.com/compute/cuda/5_5/rel/installers/cuda_5.5.22_linux_32.run' saved [686412076/686412076]

FINISHED --2014-03-11 08:23:24--
Total wall clock time: 16m 56s
Downloaded: 1 files, 655M in 16m 56s (660 KB/s)

它说下载已完成,但我在该文件夹中找不到该文件。我正在使用 PuTTY 远程访问此服务器,并使用 WinSCP 查看文件结构。出了什么问题?为什么下载了就不见了?

最佳答案

要设置目标文件夹,请使用-P(大写)而不是-p

来自 man wget:

-P prefix

--directory-prefix=prefix

Set directory prefix to prefix. The directory prefix is the directory where all other files and subdirectories will be saved to, i.e. the top of the retrieval tree. The default is . (the current directory).

关于linux - 为什么这个文件没有下载到指定位置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22326118/

相关文章:

python - Python 中的虚拟括号

ubuntu - Ubuntu上Tomcat的反向安装

Ubuntu hvm 实例存储支持的实例?

linux - Less 从 stderr 获取键盘输入?

javascript - 如何在 javascript 中读取 PC 上的本地文件并不断更新它?

html - Font Awesome 图标不可点击

c - 当多个线程在循环中运行时索引如何受到影响

linux - R 手册在 linux mint 17.1 中无法以离线模式打开

linux - 如何使用 Bash 将整数写入二进制文件?

java - 如何保护您托管但无法修改的 Web 应用程序