It would depend on the path. PASE provides a version of du. You probably have coreutils installed from the open source repository.
du in /qopensys/pkgs/bin is different from du in /qopensys/usr/bin
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Justin Taylor
Sent: Wednesday, January 09, 2019 8:24 AM
To: Midrange Systems Technical Discussion
Subject: RE: How to obtain size of ifs directories and sub-directories
Bash is the shell I use over SSH.
It's interesting that your QSH gives an error on the -h flag. I would have thought it would be the same regardless of what shell you have set. Are you on 7.3? Running du without the -h flag gives me all the results in KB, without a label.
FYI, some info on shells:
http://ibmsystemsmag.com/blogs/open-your-i/august-2017/tech-tip-be-like-a-turtle/
-----Original Message-----
From: Alan Shore [mailto:ashore@xxxxxxxx]
Sent: Wednesday, January 09, 2019 8:13 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: RE: How to obtain size of ifs directories and sub-directories
Thanks for the reply Justin
I tried this command in STRQSH and received the reply
/QOpenSys/usr/bin/du: Not a recognized flag: h
Usage: du [-a | -s] [-rlkmgx] [ -H | -L ] [Name ...]
$
AND
This is where I show my ignorance
What is bash?
Alan Shore
E-mail : ASHORE@xxxxxxxx
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
'If you're going through hell, keep going.'
Winston Churchill
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
https://amazon.midrange.com
[
https://www.medtronsoftware.com/img/MedtronMinilogo.bmp] Kevin Bucknum
Senior Programmer Analyst
MEDDATA / MEDTRON
120 Innwood Drive
Covington LA 70433
Local: 985-893-2550
Toll Free: 877-893-2550
https://www.medtronsoftware.com
CONFIDENTIALITY NOTICE
This document and any accompanying this email transmission contain confidential information, belonging to the sender that is legally privileged. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party and is required to destroy the information after its stated need has been fulfilled. If you are not the intended recipient, or the employee of agent responsible to deliver it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or action taken in reliance on the contents of these documents is STRICTLY PROHIBITED. If you have received this email in error, please notify the sender immediately to arrange for return or destruction of these documents.
As an Amazon Associate we earn from qualifying purchases.