Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Comment configurer la commande LS ??

2 réponses
Avatar
m
Bonjour,

Je cherche =E0 configurer la commande /bin/ls qui donne ce genre de=20
r=E9sultat :

[root@heberge files]# ls -al -h -p=20
total 32K
drwxr-xr-x 8 root root 4.0K oct 8 18:12 ./
drwxr-xr-x 5 root root 4.0K oct 5 10:37 ../
drwxr-xr-x 9 palerme palerme 4.0K f=E9v 26 2005 palerme/
drwxr-xr-x 8 betatesteur betatesteur 4.0K oct 28 11:22=20
betatesteur/
drwxrwxrwx 4 root root 4.0K oct 8 19:01 servlets/
drwxrwxrwx 4 root root 4.0K oct 8 18:40 www/

Mon but est de conserver l'alignement des colonnes m=EAme s'il y a des=20
utilisateurs et des groupes qui depassent 8 caracteres (comme=20
l'utilisateur betatesteur ci-dessus) car c'est difficile =E0 lire quand il=
=20
y a beaucoup de donn=E9es.

J'ai essay=E9 sans succ=E8s les modificateurs -T (ou --tabsize=20
nbredecoloness) pour r=E9gler les tabulations, puis -w ou --width cols,=20
mais le r=E9sultat reste le m=EAme...

La seule chose qui marche c'est de faire afficher les num=E9ros des UID et=
=20
GID a la place des noms complets, mais ce n'est pas ce que je=20
souhaite...

Je suis sous Red Hat enterprise 3.0,
ls --version
ls (coreutils) 4.5.3
=C9crit par Richard Stallman and David MacKenzie.

Merci.


--
michel

=20

2 réponses

Avatar
TiChou
Dans le message <news:,
*m* tapota sur f.c.o.l.configuration :

Bonjour,


Bonjour,

Je cherche à configurer la commande /bin/ls qui donne ce genre de
résultat :

[ files]# ls -al -h -p
total 32K
drwxr-xr-x 8 root root 4.0K oct 8 18:12 ./
drwxr-xr-x 5 root root 4.0K oct 5 10:37 ../
drwxr-xr-x 9 palerme palerme 4.0K fév 26 2005 palerme/
drwxr-xr-x 8 betatesteur betatesteur 4.0K oct 28 11:22
betatesteur/
drwxrwxrwx 4 root root 4.0K oct 8 19:01 servlets/
drwxrwxrwx 4 root root 4.0K oct 8 18:40 www/

Mon but est de conserver l'alignement des colonnes même s'il y a des
utilisateurs et des groupes qui depassent 8 caracteres (comme
l'utilisateur betatesteur ci-dessus) car c'est difficile à lire quand il
y a beaucoup de données.


[...]

Je suis sous Red Hat enterprise 3.0,
ls --version
ls (coreutils) 4.5.3
Écrit par Richard Stallman and David MacKenzie.


pegase test # ls-4.5.3 --version
ls (coreutils) 4.5.3
Written by Richard Stallman and David MacKenzie.

pegase test # ls-4.5.3 -al -h -p
total 2.0K
drwxr-xr-x 3 root root 128 Oct 31 16:48 ./
drwxrwxrwt 14 root root 800 Oct 31 16:50 ../
-rw-r--r-- 1 root root 0 Oct 31 16:47 fichier1
-rw-r--r-- 1 betatesteur betatesteur 0 Oct 31 16:48 fichier2
drwxr-xr-x 2 root root 48 Oct 31 16:48 repertoire1/


pegase test # ls --version
ls (coreutils) 5.2.1
Written by Richard Stallman and David MacKenzie.

pegase test # ls -al -h -p
total 2.0K
drwxr-xr-x 3 root root 128 Oct 31 16:48 ./
drwxrwxrwt 14 root root 800 Oct 31 16:47 ../
-rw-r--r-- 1 root root 0 Oct 31 16:47 fichier1
-rw-r--r-- 1 betatesteur betatesteur 0 Oct 31 16:48 fichier2
drwxr-xr-x 2 root root 48 Oct 31 16:48 repertoire1/


2003-12-20 Jim Meyering

* Version 5.1.0.

2003-12-03 Paul Eggert

* NEWS: ls -l (and similar options) now adjust all columns to
fit the data. Generalized from a suggestion by Leah Q for file
sizes.

Merci.


De rien.

--
TiChou

Avatar
m
In article ,
says...

||
||
|| pegase test # ls --version
|| ls (coreutils) 5.2.1
|| Written by Richard Stallman and David MacKenzie.
||

Merci!

--
michel