我们在用DOS/CMD时 用Dir /s 可以找出文件 并显示其全路径 如下:
(蓝色为我输入的命令部分)
 
C:\WINDOWS\system>dir /a /s /b *.dll

C:\WINDOWS\system\AVICAP.DLL
C:\WINDOWS\system\AVIFILE.DLL
C:\WINDOWS\system\COMMDLG.DLL
C:\WINDOWS\system\LZEXPAND.DLL
C:\WINDOWS\system\MMSYSTEM.DLL
C:\WINDOWS\system\MSVIDEO.DLL
C:\WINDOWS\system\OLECLI.DLL
C:\WINDOWS\system\OLESVR.DLL
C:\WINDOWS\system\SHELL.DLL
C:\WINDOWS\system\TAPI.DLL
C:\WINDOWS\system\VER.DLL
LINUX 下能做到吗 ?
比如我要找出/etc目录下 文件最后的四个字条是conf的该这么办啊
(蓝色为我输入的命令部分)
 
[linux@/]# find  /etc -maxdepth 2|grep --color conf$
/etc/sysconfig/hwconf
/etc/modules.conf
/etc/host.conf
/etc/nsswitch.conf
/etc/ld.so.conf
/etc/krb5.conf
/etc/pwdb.conf
/etc/security/access.conf
/etc/security/chroot.conf
/etc/security/group.conf
/etc/security/limits.conf
/etc/security/pam_env.conf
/etc/security/time.conf
/etc/updfstab.conf
/etc/initlog.conf
/etc/syslog.conf
/etc/openldap/ldapfilter.conf
/etc/openldap/ldap.conf
/etc/openldap/ldapsearchprefs.conf
看看输出 明白了吗
至于有什么用 你觉得呢