Hi All,
Not to ask too stupid a question, but it there a way to run an ls that only gives me the file name and its size?
Many thanks, -T
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 2019-04-17 at 20:25 -0700, ToddAndMargo via users wrote:
Hi All,
Not to ask too stupid a question, but it there a way to run an ls that only gives me the file name and its size?
Many thanks, -T
--
When you say, "I wrote a program that crashed Windows," people just stare at you blankly and say, "Hey, I got those with the system, for free." -- Linus Torvalds
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Hi,
ls -hs --block-size=k
May fit you needs.
Regards
Phil
- -- *** If this is a mailing list, I am subscribed, no need to CC me.***
Playing the game for the games sake.
Twitter: kathenasorg IRC: kathenas Web: https://kathenas.org Github: https://github.com/kathenas GitLab: https://gitlab.com/kathenas
GPG: A0C3 4C6A AC2B B8F4 F1E5 EDF4 333F 60DC B0B9 BB77
On 18Apr2019 04:45, Phil Wyett philwyett@kathenas.org wrote:
On Wed, 2019-04-17 at 20:25 -0700, ToddAndMargo via users wrote:
Not to ask too stupid a question, but it there a way to run an ls that only gives me the file name and its size?
ls -hs --block-size=k May fit you needs.
There's also the stat(1) command, which has a -c option to supply a format string.
Cheers, Cameron Simpson cs@cskk.id.au
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 2019-04-18 at 04:45 +0100, Phil Wyett wrote:
On Wed, 2019-04-17 at 20:25 -0700, ToddAndMargo via users wrote:
Hi All,
Not to ask too stupid a question, but it there a way to run an ls that only gives me the file name and its size?
Many thanks, -T
--
When you say, "I wrote a program that crashed Windows," people just stare at you blankly and say, "Hey, I got those with the system, for free." -- Linus Torvalds
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Hi,
ls -hs --block-size=k
May fit you needs.
Regards
Phil
You can just drop the block-size section also if you wish.
Regards
Phil
- -- *** If this is a mailing list, I am subscribed, no need to CC me.***
Playing the game for the games sake.
Twitter: kathenasorg IRC: kathenas Web: https://kathenas.org Github: https://github.com/kathenas GitLab: https://gitlab.com/kathenas
GPG: A0C3 4C6A AC2B B8F4 F1E5 EDF4 333F 60DC B0B9 BB77
On 4/17/19 8:45 PM, Phil Wyett wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 2019-04-17 at 20:25 -0700, ToddAndMargo via users wrote:
Hi All,
Not to ask too stupid a question, but it there a way to run an ls that only gives me the file name and its size?
Many thanks, -T
--
When you say, "I wrote a program that crashed Windows," people just stare at you blankly and say, "Hey, I got those with the system, for free." -- Linus Torvalds
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Hi,
ls -hs --block-size=k
May fit you needs.
Regards
Phil
Perfect! Thank you!