shell里面 1.在/dev目录下查找所有的块设备和字符设备Find /dev -type b -o -type c

来源:学生作业学帮网 编辑:学帮网 时间:2024/07/07 16:06:57

shell里面
1.在/dev目录下查找所有的块设备和字符设备
Find /dev -type b -o -type c

-o 表示 逻辑“或”,查找/dev目录下类型为b(块设备)或c(字符设备)的设备文件.
跟shell的test判断表达式中的逻辑关系符一样:
-a 逻辑与And
-o 逻辑或Or