Finding Files By Name, Size, and Both Name and Size
Let's perform a couple of independent finds and then combine the criteria of the finds. The finds in the following example are performed on a small desktop system. This allows me to search the entire system for files meeting various criteria. You may be working on a much larger, more elaborate system, so use caution when searching the entire system for files. You may slow down other users for a long period of time, depending on the number of files on the system both locally and accessible over the network.
First, let's find for all files on the system ending in .c with the command below:
# find / -name *.c -print /usr/X11R6/include/X11/Xaw/Template.c /usr/X11R6/include/Xaw3d/Template.c /usr/X11R6/lib/X11/etc/et4000clock.c ...
Get HP-UX 11i System Administration Handbook and Toolkit, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.