linux find命令学习

发布网友 发布时间:2022-03-20 11:23

我来回答

3个回答

热心网友 时间:2022-03-20 12:52

find 命令 “。”点代表当前目录 “switch.cfg"是查询的关键字 ”-ls "我觉得应该用 | ls 来表示 管道加 “ls"来列出文件

热心网友 时间:2022-03-20 14:10

1. 从.目录下开始查找name为switch.cfg的文件,并(-ls)输出文件信息
例如
#5#apple@ ~/chen]$ls
CCPP
#6#apple@ ~/chen]$find . -name "C" -ls
5311106 0 drwxr-xr-x 5 apple staff 170 10 25 19:27 ./C
2. Linux下的命令不会用可以参照man手册 ,man find
或者买本Linux鸟哥私房菜追问里面有讲find但是没有说与-ls命令组合使用的,还是我没看懂阿

追答参照man手册的解释
-ls This primary always evaluates to true. The following information for the current file is written to standard out-
put: its inode number, size in 512-byte blocks, file permissions, number of hard links, owner, group, size in
bytes, last modification time, and pathname. If the file is a block or character special file, the device number
will be displayed instead of the size in bytes. If the file is a symbolic link, the pathname of the linked-to file
will be displayed preceded by ``->''. The format is identical to that proced by ``ls -dgils''.

热心网友 时间:2022-03-20 15:45

"点"是指当前文件夹.
不会用, 查看man不就好了.追问英语,看不太懂

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com