mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
mv, whoami, whois: add Chinese translation (#8219)
This commit is contained in:
parent
6938ffa426
commit
2d1c118ce1
3 changed files with 56 additions and 0 deletions
28
pages.zh/common/mv.md
Normal file
28
pages.zh/common/mv.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# mv
|
||||
|
||||
> 移动或重命名文件或目录。
|
||||
> 更多信息:<https://www.gnu.org/software/coreutils/mv>.
|
||||
|
||||
- 移动文件到任意位置:
|
||||
|
||||
`mv {{来源}} {{目标}}`
|
||||
|
||||
- 移动文件到其他目录,并保持文件名不变:
|
||||
|
||||
`mv {{来源1}} {{来源2}} {{来源3}} {{目标目录}}`
|
||||
|
||||
- 覆盖现有文件前无需确认:
|
||||
|
||||
`mv -f {{来源}} {{目标}}`
|
||||
|
||||
- 无论是否有文件权限,覆盖现有文件前均需要确认:
|
||||
|
||||
`mv -i {{来源}} {{目标}}`
|
||||
|
||||
- 不要覆盖现有的目标文件:
|
||||
|
||||
`mv -n {{来源}} {{目标}}`
|
||||
|
||||
- 详细模式,移动后打印文件名:
|
||||
|
||||
`mv -v {{来源}} {{目标}}`
|
12
pages.zh/common/whoami.md
Normal file
12
pages.zh/common/whoami.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
# whoami
|
||||
|
||||
> 打印当前有效用户 ID 的用户名。
|
||||
> 更多信息:<https://www.gnu.org/software/coreutils/whoami>.
|
||||
|
||||
- 显示当前登录用户名:
|
||||
|
||||
`whoami`
|
||||
|
||||
- 修改用户 ID 后显示当前登录用户名:
|
||||
|
||||
`sudo whoami`
|
16
pages.zh/common/whois.md
Normal file
16
pages.zh/common/whois.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# whois
|
||||
|
||||
> WHOIS(RFC 3912)协议的命令行客户端。
|
||||
> 更多信息:<https://github.com/rfc1036/whois>.
|
||||
|
||||
- 获取域名信息:
|
||||
|
||||
`whois {{example.com}}`
|
||||
|
||||
- 获取 IP 地址信息:
|
||||
|
||||
`whois {{8.8.8.8}}`
|
||||
|
||||
- 获取 IP 地址用于报告滥用的联系方式:
|
||||
|
||||
`whois -b {{8.8.8.8}}`
|
Loading…
Add table
Reference in a new issue