linux tips

克隆网站
用 Wget 的递归方式下载整个网站
<code>wget --random-wait -r -p -e robots=off -U Mozilla <a href="http://www.example.com/">www.example.com</a>
</code>

参数解释:

- -random-wait 等待 0.5 到 1.5 秒的时间来进行下一次请求
-r 开启递归检索
-e robots=off 忽略 robots.txt
-U Mozilla 设置 User-Agent 头为 Mozilla

其它一些有用的参数:

- -limit-rate=20K 限制下载速度为 20K
-o logfile.txt 记录下载日志
-l 0 删除深度(默认为5)
–wait=1h 每下载一个文件后等待1小时

在 Ubuntu 上使用 sshfs 映射远程 ssh 文件系统为本地磁盘

sshfs -o transform_symlinks -o follow_symlinks user@hostname: /home/username/sshfs

reference:

http://wowubuntu.com/sshfs.html

<code>   </code><br><br><br>


原文地址:https://www.cnblogs.com/lexus/p/1805766.html