Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
List files size less than 20KB
Name: Siow Wei Date: January 8, 2003 at 00:36:35 Pacific OS: Win 2000 CPU/Ram: 256
Comment:
Hi all, Can I know if the following command is correct to list files that have size less than 20KB : $find . -size -20
The '-' sign for '-20', what does that mean? There is a difference when I change '-' to '+'. But I am not sure what is the difference. Thank you!!
Name: David Perry Date: January 8, 2003 at 06:19:07 Pacific
Reply:
Have a look at the man page for find. The '-' means less than. The '+' means greater than. The integer passed to the size flag is in 512 byte blocks. So find . -size -20 is really saying find all the files less than 10K.
-size n[c] True if the file is n blocks long (512 bytes per block). If n is followed by a c,the size is in bytes.
Summary: Hi all, I manage to list files in long listing by time last modified and starting with 'N": ls -lt |grep N Can I know how to list files that are newer than 10 days? And also, how to find files that...
Summary: Hi all, I've been facing problem with a particular task :-- Locate all files other than names pipes within the usr directory from the root that have read permission for the user and user's group and ...
Summary: I'm trying to write a shell script to monitor certain files and display a warning when they reach a certain size. The idea being to give a warning BEFORE the ulimit is hit! I've fallen at the first hu...