-l 以列表方式显示-A 显示 . 和 ..-t 根据时间排序文件
4. 通过 SSH 挂载远程主机上的文件夹
sshfs name@server:/path/to/folder /path/to/mount/point
这条命令可以让你通过 SSH 加载远程主机上的文件系统为本地磁盘,前提是你需要安装 FUSE 及 sshfs 这两个软件。
译者注:关于 sshfs 实际上我之前写过一篇文章介绍过,详见""。
卸载的话使用 fusermount 命令:
fusermount -u /path/to/mount/point
5. 通过 DNS 来读取 Wikipedia 的词条
dig +short txt <keyword>.wp.dg.cx
这也许是最有趣的一条技巧了,David Leadbeater 创建了一个 查询一个 TXT 记录类型时,会返回一条来自于 Wikipedia 的简短的词条文字,这是
这里有一个样例,来查询 "hacker" 的含义:
$ dig +short txt hacker.wp.dg.cx
"Hacker may refer to: Hacker (computer security), someone involvedin computer security/insecurity, Hacker (programmer subculture), aprogrammer subculture originating in the US academia in the 1960s,which is nowadays mainly notable for the free software/" "open
source movement, Hacker (hobbyist), an enthusiastic home computerhobbyist
这里使用了 dig 命令,这是标准的用来查询 DNS 的系统管理工具,+short 参数是让其仅仅返回文字响应,txt 则是指定查询 TXT 记录类型。
搜索“diyifanwen.net”或“第一范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,第一范文网,提供最新教学研究shell经典命令(15)全文阅读和word下载服务。
相关推荐: