CLI

ls

Typiquement la commande ls sert à lister.Ici nous sommes le raspberrypi et allons simplement lister les fichiers

pi@raspberrypi ~ $ ls
Desktop python_games

Bof pas très bavards, c’est étonnant que ce ne soit pas plus « peuplé’

Nous rajoutons un « argument » -l
qui va nous renseigner sur les droits
Propriétaire , taille, et dernière date de modification

pi@raspberrypi ~ $ ls -l
total 0
drwxr-xr-x 2 pi pi 240 Dec 16 20:41 Desktop
drwxrwxr-x 2 pi pi 1629 Jul 20 2012 python_games

Puis encore un argument, a
qui va développer les rep et nous montrer les fichiers cachés.

pi@raspberrypi ~ $ ls -la
total 89
drwxr-xr-x 16 pi pi 4096 Jan 27 20:39 .
drwxr-xr-x 4 root root 4096 Dec 16 20:39 ..
drwx—— 2 pi pi 4096 Jan 27 20:25 .aptitude
-rw——- 1 pi pi 95 Jan 27 21:15 .bash_history
-rw-r–r– 1 pi pi 220 Dec 15 18:40 .bash_logout
-rw-r–r– 1 pi pi 3243 Dec 15 18:40 .bashrc
drwxr-xr-x 6 pi pi 4096 Jan 23 10:22 .cache
drwxr-xr-x 10 pi pi 4096 Jan 24 12:26 .config
drwx—— 3 pi pi 4096 Jan 23 09:31 .dbus
drwxr-xr-x 2 pi pi 240 Dec 16 20:41 Desktop
drwx—— 2 pi pi 4096 Jan 24 12:37 .dillo
-rw-r–r– 1 pi pi 35 Jan 27 19:37 .dmrc
-rw——- 1 pi pi 16 Jan 23 10:17 .esd_auth
drwx—— 3 pi pi 4096 Jan 24 12:32 .fltk
drwx—— 2 pi pi 4096 Jan 27 20:26 .gconf
drwx—— 2 pi pi 4096 Jan 23 10:17 .gvfs
drwx—— 3 pi pi 4096 Jan 23 10:22 .local
drwx—— 2 pi pi 4096 Jan 24 12:29 .netsurf
-rw-r–r– 1 pi pi 675 Dec 15 18:40 .profile
drwx—— 2 pi pi 4096 Jan 27 20:22 .pulse
-rw——- 1 pi pi 256 Jan 23 10:17 .pulse-cookie
drwxrwxr-x 2 pi pi 1629 Jul 20 2012 python_games
drwx—— 4 pi pi 4096 Jan 27 20:23 .thumbnails
-rw——- 1 pi pi 56 Jan 27 19:37 .Xauthority
-rw——- 1 pi pi 300 Jan 27 20:23 .xsession-errors
-rw——- 1 pi pi 1285 Jan 27 19:37 .xsession-errors.old
>Lite des périphériques usb avec la commande lsusb

>Nous connaissons ls

pi@raspberrypi ~ $ lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 1bcf:0007 Sunplus Innovation Technology Inc. Optical Mouse
Bus 001 Device 005: ID 04d9:1503 Holtek Semiconductor, Inc. Shortboard Lefty

Par défaut

Laisser un commentaire