使用/etc/passwd 复制到vitest 目录下
时间: 2023-07-05 10:24:45 浏览: 111
好的,你可以在终端输入以下命令来将 /etc/passwd 文件复制到 /tmp/vitest 目录下:
```
cp /etc/passwd /tmp/vitest
```
这样就可以将 /etc/passwd 文件成功复制到 /tmp/vitest 目录下了。
相关问题
将/etc/passwd文件复制到root目录
可以使用以下命令将/etc/passwd文件复制到root目录:
```
sudo cp /etc/passwd /root/
```
请注意,这需要使用管理员权限进行操作,因此需要在命令前加上sudo。同时,确保/root目录具有适当的写入权限。
使用 user1 用户讲/etc/passwd 和/etc/group 文件复制到/os/file/目录下
可以使用以下命令将/etc/passwd 和/etc/group 文件复制到/os/file/目录下:
cp /etc/passwd /os/file/
cp /etc/group /os/file/
阅读全文
相关推荐
















