一直在为 Ubuntu 开发一些自定义 ISO,所以我有很多不同的挂载等。我想扫描所有内容以找到所有 initrd.img* 文件,但我在 find 命令中得到了“功能”的计时. 定位命令不起作用,因为没有安装这个东西。
developer@developer-u32-dev-VM:/$ sudo find -iname *initrd.img*
find: paths must precede expression: initrd.img.old
Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression]
developer@developer-u32-dev-VM:/$ sudo find -iname *initrd.img-*
./boot/initrd.img-3.19.0-25-generic
./boot/initrd.img-3.19.0-15-generic
./boot/initrd.img-3.19.0-23-generic
如您所见,我可以使用 find 来识别物理文件,但我需要找到所有 initrd.img 链接。
怎么办?