Solved top files in home directory

March 16, 2012 at 04:46:56
Specs: Windows 7
get information about file usuage

See More: top files in home directory

Report •

✔ Best Answer
March 16, 2012 at 09:28:51
Sorry, but I only answer questions on computing.net.

Second, replace everything before the sort command with the du command. Change the fifth field in the sort command -k 5,5 to the first field -k 1,1.

I will help you with your homework, but I won't do it for you.



#1
March 16, 2012 at 07:32:33
a way .......

cd $HOME
find . -type f -print|xargs ls -l|sort -r -n -k 5,5| head -5

If the number of files requirement changes - for example 10 files - change the head -5 part of the command:

....|head -10


Report •

#2
March 16, 2012 at 07:35:26
thanks for that

Report •

#3
March 16, 2012 at 07:38:49
how do you use command within this script?

Report •

Related Solutions

#4
March 16, 2012 at 09:28:51
✔ Best Answer
Sorry, but I only answer questions on computing.net.

Second, replace everything before the sort command with the du command. Change the fifth field in the sort command -k 5,5 to the first field -k 1,1.

I will help you with your homework, but I won't do it for you.


Report •

Ask Question