1、通过root用户登录Linux后,执行以下步骤,请写出具体的过程命令: ① 查看文件系统/dev/sdc可用inode; ② 查看文件系统/dev/sdc可用磁盘空间(单位:K); ③ 新建用于测试的目录/mnt/test111; ④ 生成200个空测试文件; ⑤ 删除上一步创建的测试文件。
时间: 2023-12-02 15:03:58 浏览: 99
以下是通过 root 用户登录 Linux 后完成上述任务的具体过程命令:
1. 查看文件系统 /dev/sdc 可用 inode:
```
df -i /dev/sdc
```
2. 查看文件系统 /dev/sdc 可用磁盘空间(单位为 K):
```
df -k /dev/sdc
```
3. 新建用于测试的目录 /mnt/test111:
```
mkdir /mnt/test111
```
4. 生成 200 个空测试文件:
```
cd /mnt/test111
touch test{1..200}
```
5. 删除上一步创建的测试文件:
```
rm -f test*
```
注意:在执行删除命令时,请确认当前目录是 /mnt/test111,以免意外删除其他文件。
阅读全文
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![docx](https://img-home.csdnimg.cn/images/20241231044901.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)