I'm wondering what command that I need to use on PuTTY to get this result.
Asked
Active
Viewed 1,265 times
-1
-
2Why those three and what have you done so far? – Mad Physicist Feb 10 '19 at 03:19
-
Possible duplicate of [List files over a specific size in current directory and all subdirectories](https://stackoverflow.com/questions/13282786/list-files-over-a-specific-size-in-current-directory-and-all-subdirectories) – Tsyvarev Feb 10 '19 at 14:14
2 Answers
0
That can be done directly with find
:
find /usr/bin -type f -size +9999999c
+
matches files larger than the given size. -
is less than.
The c
unit is for bytes. You can also use k
for kilobytes, M
for megabytes, and G
for gigabytes.

jspcal
- 50,847
- 7
- 72
- 76
-
Is there any way that I would be able to get this by using ls, grep and wc? – avaaaaalyn Feb 10 '19 at 03:27
-
It is possible though, because those are the instructions for one of my assignments. – avaaaaalyn Feb 10 '19 at 03:51
-
0
I dont know about wc and grep but you can create script that will help using below command.
ls -lh /usr/bin | awk '{print $5,$9}'
it will post your output like this: 1.4K anaconda-ks.cfg 17M book1 39M Book2 52 Book3 26M Book4
After that you can script that will help you to filter out [Statement] size with filename.

bhupender singh
- 3
- 6