#1 Le 15/06/2015, à 15:27
- yaba64
Utilisation commande ls[RESOLU]
bonjour j'aimerai utiliser ls pour lister un seul type de fichier dans un repertoire disant sans passer par cd est ce possible ?
car en essayant avec ceci ça ne marche pas :
OrdinateurLinux@de@marc:~$ ls /home/marc/phototest *.png
ls: impossible d'accéder à *.png: Aucun fichier ou dossier de ce type
/home/marc/phototest:
1062211__wallpapers-wallaper-format-linux-background_p.jpg
116875.jpg
125706__art-background-ball-sphere-crystal-cell_p.jpg
1492-ubuntu-WallFizz.jpg
279438.jpg
303197.jpg
328981.jpg
442587.jpg
75092.jpg
Debian_GNU_Linux.jpg
ubuntu_008.jpg
ubuntu-12.10-quantal-quetzal.jpg
url.jpeg
url.png
merci pour votre aide
Dernière modification par yaba64 (Le 15/06/2015, à 15:52)
Ordi : i7 3770K- CM DZ77GA 70K - Gigabyte GTX 1050ti - 16go Ram DDR3
Hors ligne
#2 Le 15/06/2015, à 15:38
- gl38
Re : Utilisation commande ls[RESOLU]
Tu as oublié le / entre phototest et *.png :
ls /home/marc/phototest/*.png
Cordialement,
Guy
Hors ligne
#3 Le 15/06/2015, à 15:51
- yaba64
Re : Utilisation commande ls[RESOLU]
Ok en effet
Merci beaucoup
Ordi : i7 3770K- CM DZ77GA 70K - Gigabyte GTX 1050ti - 16go Ram DDR3
Hors ligne