Commande linux
hey
-
amirou10 Messages postés 18 Statut Membre -
amirou10 Messages postés 18 Statut Membre -
Bonjour,
Je voudrais savoir a quoi correspond le total quand on fait ls -l, c'est ecrit sur la toute 1ere ligne,et comment recuperer cette info?
merci
Je voudrais savoir a quoi correspond le total quand on fait ls -l, c'est ecrit sur la toute 1ere ligne,et comment recuperer cette info?
merci
Configuration: Windows Vista Internet Explorer 7.0
4 réponses
-
Un simple 'info coreutils ls' donne:
For each directory that is listed, preface the files with a line 'total BLOCKS', where BLOCKS is the total disk allocation for all files in that directory. The block size currently defaults to 1024 bytes, but this can be overridden (*note Block size::). The BLOCKS computed counts each hard link separately; this is arguably a deficiency.
Bonne continuation -
et en tapant man ls tu accède à l'aide sur cette commande...
-
Salut,
et comment recuperer cette info?
ls -l | head -1
-
re: slt,
la commande head affiche le contenu du fichier elle s'ecrit de cette manier #head <nom du fichier>
par contre #ls -l fournit les information sur l'ensemble des fichiers ou répertoires (le contenu du chemin)