[cmdline unix] totaal aantal bytes in ls -opdracht

Pagina: 1
Acties:

  • drm
  • Registratie: Februari 2001
  • Laatst online: 09-06-2025

drm

f0pc0dert

Topicstarter
Weet iemand hoe je het totaal aantal bytes gelist in een 'ls -la' opdracht kan zien? zeg maar zoiets als bij dos-dir:

1234567 bytes in 9 file(s)

Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz


Verwijderd

Gebruik eens `du' (of doe `man du').

Of als je echt de som wilt weten van de bytes, doe:

ls -la | awk 'b+=$5;END{print(b)}'

Je kunt daar natuurlijk een alias van maken.

  • drm
  • Registratie: Februari 2001
  • Laatst online: 09-06-2025

drm

f0pc0dert

Topicstarter
kijk, dat zijn van die dingetjes, die moet je ff weten.

thnx

Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz


  • marcelk
  • Registratie: December 2000
  • Niet online
oeps....

  • balk
  • Registratie: Januari 2000
  • Laatst online: 19-08 23:20
Op donderdag 05 juli 2001 13:07 schreef marcelk het volgende:
oeps....
Zit je al aan je HK-posts? >:)

df hoort in feite ook in dit rijtje thuis. Kan je fijn zien hoeveel bytes je hebt gebruikt op al je hd's