I want to list the files/directories sorted (Ascending or Desceding) by their size.
As you can see in the below example, du command doesn't sort by size.
In Linux world, is there any other command or workaround using du command to list the files/directories sorted by their size.
hi ,
iam trying to sort millions of records which is delimited and i cant able to
use sort command more than 60 million..if i try to do so i got an message stating that "File size limit exceeded",Is there any file size limit for using sort command..
How can i solve this problem.
thanks
... (7 Replies)
Hi,
I have to directory
/usr/inbound
-------------
10900.txt
10889.txt
109290202.txt
I need to create inbound directory
and i need to know size of these files one by one
if file size is zero i need to print message like "empty file"
Please help me how to solve this
thanks
krish. (1 Reply)
Hi ,
I have a list of files in the directory I want to sort based on the file name.
But in the middle of filename contains the number based on that I need to sort.Could you suggest me on the same?
Example filenames:
/user1$ls
RS.DEV.ISV.F1.RS.REFDATA.DATA... (1 Reply)
Hi,
I have directories with name like:
aaa
bbb
ccc
...
I would like to to see which directories are the largest and then list the files within each. I have success using:
du -ks * | sort -rin | head -n 20
which gives me an output like:
120 bbb
27 ccc
3 aaa
...
I would like... (3 Replies)
Hello. I do have a problem.
The statement sounds like this: Given a directory, find all subdirectories (regardless of depth) which contain a file that has more than a half of the size of the respective subdirectory.
I've tried to solve this in many ways, but all I came up with is half... (1 Reply)
Hi,
We currently have an Oracle database running and it is creating lots of processes in the /proc directory that are 1000M in size. The size of the /proc directory is now reading 26T. How can this be if the root file system is only 13GB?
I have seen this before we an Oracle temp file... (6 Replies)
Hello,
I've done
ls -ls >fileout1
When I do the sort command for +4 it sorts it bu group. When I do +5 it sorts it by date. But it's skipping the file size column. Example:
rwxr-xr-x 1 Grueben sup 65 16 Sep 13:58 cdee
How can I sort it by file size? It doesn't... (2 Replies)
To find the whole size of a particular directory i use "du -sk /dirname".. but after finding the direcory's size how do i make conditions like if the size of the dir is more than 1 GB i hav to delete some of the files inside the dir (0 Replies)
I have been searching both on Unix.com and Google and have not been able to find the answer to my question. I think it is partly because I can't come up with the right search terms.
Recently, my virtual server switched storage devices and I think the problem may be related to that change.... (2 Replies)
Hello,
Here is my code:
:~$ truncate -s 16M MyTestFile.txt
:~$ du -h MyTestFile.txt
4,0K MyTestFile.txt
Q1: Please why du -h does not work in this case ?
Q2: Other than "du -h", how can i get the size of a directory (using linux command)
Thanks a lot.
Best Regards. (2 Replies)
Discussion started by: chercheur111
2 Replies
LEARN ABOUT MOJAVE
datetime::locale::bs_ba5.18
DateTime::Locale::bs_BA(3) User Contributed Perl Documentation DateTime::Locale::bs_BA(3)NAME
DateTime::Locale::bs_BA
SYNOPSIS
use DateTime;
my $dt = DateTime->now( locale => 'bs_BA' );
print $dt->month_name();
DESCRIPTION
This is the DateTime locale package for Bosnian Bosnia and Herzegovina.
DATA
This locale inherits from the DateTime::Locale::bs locale.
It contains the following data.
Days
Wide (format)
Ponedjeljak
Utorak
Srijeda
Xetvrtak
Petak
Subota
Nedjelja
Abbreviated (format)
Pon
Uto
Sri
Xet
Pet
Sub
Ned
Narrow (format)
2
3
4
5
6
7
1
Wide (stand-alone)
Ponedjeljak
Utorak
Srijeda
Xetvrtak
Petak
Subota
Nedjelja
Abbreviated (stand-alone)
Pon
Uto
Sri
Xet
Pet
Sub
Ned
Narrow (stand-alone)
2
3
4
5
6
7
1
Months
Wide (format)
Januar
Februar
Mart
April
Maj
Juni
Juli
Avgust
Septembar
Oktobar
Novembar
Decembar
Abbreviated (format)
Jan
Feb
Mar
Apr
Maj
Jun
Jul
Avg
Sep
Okt
Nov
Dec
Narrow (format)
1
2
3
4
5
6
7
8
9
10
11
12
Wide (stand-alone)
Januar
Februar
Mart
April
Maj
Juni
Juli
Avgust
Septembar
Oktobar
Novembar
Decembar
Abbreviated (stand-alone)
Jan
Feb
Mar
Apr
Maj
Jun
Jul
Avg
Sep
Okt
Nov
Dec
Narrow (stand-alone)
1
2
3
4
5
6
7
8
9
10
11
12
Quarters
Wide (format)
Prvi kvartal
Drugi kvartal
TreXi kvartal
Xetvrti kvartal
Abbreviated (format)
K1
K2
K3
K4
Narrow (format)
1
2
3
4
Wide (stand-alone)
Prvi kvartal
Drugi kvartal
TreXi kvartal
Xetvrti kvartal
Abbreviated (stand-alone)
K1
K2
K3
K4
Narrow (stand-alone)
1
2
3
4
Eras
Wide
BCE
CE
Abbreviated
BC
AD
Narrow
BC
AD
Date Formats
Full
2008-02-05T18:30:30 = Utorak, 2008 Februar 05
1995-12-22T09:05:02 = Petak, 1995 Decembar 22
-0010-09-15T04:44:23 = Subota, -10 Septembar 15
Long
2008-02-05T18:30:30 = 2008 Februar 5
1995-12-22T09:05:02 = 1995 Decembar 22
-0010-09-15T04:44:23 = -10 Septembar 15
Medium
2008-02-05T18:30:30 = 2008 Feb 5
1995-12-22T09:05:02 = 1995 Dec 22
-0010-09-15T04:44:23 = -10 Sep 15
Short
2008-02-05T18:30:30 = 08/02/05
1995-12-22T09:05:02 = 95/12/22
-0010-09-15T04:44:23 = -10/09/15
Default
2008-02-05T18:30:30 = 2008 Feb 5
1995-12-22T09:05:02 = 1995 Dec 22
-0010-09-15T04:44:23 = -10 Sep 15
Time Formats
Full
2008-02-05T18:30:30 = 18:30:30 UTC
1995-12-22T09:05:02 = 09:05:02 UTC
-0010-09-15T04:44:23 = 04:44:23 UTC
Long
2008-02-05T18:30:30 = 18:30:30 UTC
1995-12-22T09:05:02 = 09:05:02 UTC
-0010-09-15T04:44:23 = 04:44:23 UTC
Medium
2008-02-05T18:30:30 = 18:30:30
1995-12-22T09:05:02 = 09:05:02
-0010-09-15T04:44:23 = 04:44:23
Short
2008-02-05T18:30:30 = 18:30
1995-12-22T09:05:02 = 09:05
-0010-09-15T04:44:23 = 04:44
Default
2008-02-05T18:30:30 = 18:30:30
1995-12-22T09:05:02 = 09:05:02
-0010-09-15T04:44:23 = 04:44:23
Datetime Formats
Full
2008-02-05T18:30:30 = Utorak, 2008 Februar 05 18:30:30 UTC
1995-12-22T09:05:02 = Petak, 1995 Decembar 22 09:05:02 UTC
-0010-09-15T04:44:23 = Subota, -10 Septembar 15 04:44:23 UTC
Long
2008-02-05T18:30:30 = 2008 Februar 5 18:30:30 UTC
1995-12-22T09:05:02 = 1995 Decembar 22 09:05:02 UTC
-0010-09-15T04:44:23 = -10 Septembar 15 04:44:23 UTC
Medium
2008-02-05T18:30:30 = 2008 Feb 5 18:30:30
1995-12-22T09:05:02 = 1995 Dec 22 09:05:02
-0010-09-15T04:44:23 = -10 Sep 15 04:44:23
Short
2008-02-05T18:30:30 = 08/02/05 18:30
1995-12-22T09:05:02 = 95/12/22 09:05
-0010-09-15T04:44:23 = -10/09/15 04:44
Default
2008-02-05T18:30:30 = 2008 Feb 5 18:30:30
1995-12-22T09:05:02 = 1995 Dec 22 09:05:02
-0010-09-15T04:44:23 = -10 Sep 15 04:44:23
Available Formats
d (d)
2008-02-05T18:30:30 = 5
1995-12-22T09:05:02 = 22
-0010-09-15T04:44:23 = 15
EEEd (d EEE)
2008-02-05T18:30:30 = 5 Uto
1995-12-22T09:05:02 = 22 Pet
-0010-09-15T04:44:23 = 15 Sub
Hm (H:mm)
2008-02-05T18:30:30 = 18:30
1995-12-22T09:05:02 = 9:05
-0010-09-15T04:44:23 = 4:44
hm (h:mm a)
2008-02-05T18:30:30 = 6:30 PM
1995-12-22T09:05:02 = 9:05 AM
-0010-09-15T04:44:23 = 4:44 AM
Hms (H:mm:ss)
2008-02-05T18:30:30 = 18:30:30
1995-12-22T09:05:02 = 9:05:02
-0010-09-15T04:44:23 = 4:44:23
hms (h:mm:ss a)
2008-02-05T18:30:30 = 6:30:30 PM
1995-12-22T09:05:02 = 9:05:02 AM
-0010-09-15T04:44:23 = 4:44:23 AM
M (L)
2008-02-05T18:30:30 = 2
1995-12-22T09:05:02 = 12
-0010-09-15T04:44:23 = 9
Md (M-d)
2008-02-05T18:30:30 = 2-5
1995-12-22T09:05:02 = 12-22
-0010-09-15T04:44:23 = 9-15
MEd (E, M-d)
2008-02-05T18:30:30 = Uto, 2-5
1995-12-22T09:05:02 = Pet, 12-22
-0010-09-15T04:44:23 = Sub, 9-15
MMM (LLL)
2008-02-05T18:30:30 = Feb
1995-12-22T09:05:02 = Dec
-0010-09-15T04:44:23 = Sep
MMMd (MMM d)
2008-02-05T18:30:30 = Feb 5
1995-12-22T09:05:02 = Dec 22
-0010-09-15T04:44:23 = Sep 15
MMMEd (E MMM d)
2008-02-05T18:30:30 = Uto Feb 5
1995-12-22T09:05:02 = Pet Dec 22
-0010-09-15T04:44:23 = Sub Sep 15
MMMMd (MMMM d)
2008-02-05T18:30:30 = Februar 5
1995-12-22T09:05:02 = Decembar 22
-0010-09-15T04:44:23 = Septembar 15
MMMMEd (E MMMM d)
2008-02-05T18:30:30 = Uto Februar 5
1995-12-22T09:05:02 = Pet Decembar 22
-0010-09-15T04:44:23 = Sub Septembar 15
ms (mm:ss)
2008-02-05T18:30:30 = 30:30
1995-12-22T09:05:02 = 05:02
-0010-09-15T04:44:23 = 44:23
y (y)
2008-02-05T18:30:30 = 2008
1995-12-22T09:05:02 = 1995
-0010-09-15T04:44:23 = -10
yM (y-M)
2008-02-05T18:30:30 = 2008-2
1995-12-22T09:05:02 = 1995-12
-0010-09-15T04:44:23 = -10-9
yMEd (EEE, y-M-d)
2008-02-05T18:30:30 = Uto, 2008-2-5
1995-12-22T09:05:02 = Pet, 1995-12-22
-0010-09-15T04:44:23 = Sub, -10-9-15
yMMM (y MMM)
2008-02-05T18:30:30 = 2008 Feb
1995-12-22T09:05:02 = 1995 Dec
-0010-09-15T04:44:23 = -10 Sep
yMMMEd (EEE, y MMM d)
2008-02-05T18:30:30 = Uto, 2008 Feb 5
1995-12-22T09:05:02 = Pet, 1995 Dec 22
-0010-09-15T04:44:23 = Sub, -10 Sep 15
yMMMM (y MMMM)
2008-02-05T18:30:30 = 2008 Februar
1995-12-22T09:05:02 = 1995 Decembar
-0010-09-15T04:44:23 = -10 Septembar
yQ (y Q)
2008-02-05T18:30:30 = 2008 1
1995-12-22T09:05:02 = 1995 4
-0010-09-15T04:44:23 = -10 3
yQQQ (y QQQ)
2008-02-05T18:30:30 = 2008 K1
1995-12-22T09:05:02 = 1995 K4
-0010-09-15T04:44:23 = -10 K3
yyQ (Q yy)
2008-02-05T18:30:30 = 1 08
1995-12-22T09:05:02 = 4 95
-0010-09-15T04:44:23 = 3 -10
Miscellaneous
Prefers 24 hour time?
Yes
Local first day of the week
Ponedjeljak
SUPPORT
See DateTime::Locale.
AUTHOR
Dave Rolsky <autarch@urth.org>
COPYRIGHT
Copyright (c) 2008 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the
same terms as Perl itself.
This module was generated from data provided by the CLDR project, see the LICENSE.cldr in this distribution for details on the CLDR data's
license.
perl v5.18.2 2017-10-06 DateTime::Locale::bs_BA(3)