You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Cambiare e creare directory: cd, pwd e mkdir 29<br />
$ ls -l /usr/bin/ | more<br />
total 119712<br />
-rwxr-xr-x 2 root root 20092 Jul 26 2001 [<br />
-rwxr-xr-x 1 root root 5144 Aug 18 2001 3ds2m<br />
-rwxr-xr-x 1 root root 7612 Aug 18 2001 3ds2rib<br />
-rwxr-xr-x 1 root root 5732 Aug 18 2001 3dsdump<br />
-rwxr-xr-x 1 root root 5380 Apr 1 20:00 411toppm<br />
-rwxr-xr-x 1 root root 1649 Mar 17 10:54 822-date<br />
-rwxr-xr-x 1 root root 29080 Jan 28 00:04 9wm<br />
-rwxr-xr-x 1 root root 94264 Jan 10 18:20 a2p<br />
-rwxr-xr-x 1 root root 276600 Apr 14 20:28 a2ps<br />
lrwxrwxrwx 1 root root 4 Apr 4 10:06 aaaa -> host<br />
-rwxr-xr-x 1 root root 15512 Feb 9 23:12 aaxine<br />
lrwxrwxrwx 1 root root 7 Apr 11 09:59 abiword -> AbiWord<br />
-rwxr-xr-x 1 root root 1971 Apr 4 04:34 AbiWord<br />
lrwxrwxrwx 1 root root 27 Mar 21 09:53 AbiWord_d -> /etc/altern<br />
atives/AbiWord_d<br />
-rwxr-xr-x 1 root root 4143780 Apr 4 04:35 AbiWord_d.gtk<br />
-rwxr-xr-x 1 root root 3645 Apr 4 04:34 abw2html.pl<br />
-rwxr-xr-x 1 root root 3844 Apr 27 07:05 access<br />
-rwxr-xr-x 1 root root 10742 Oct 19 2001 aclocal<br />
-rwxr-xr-x 1 root root 236 Feb 4 21:44 acroread<br />
-rwxr-xr-x 1 root root 19268 Mar 17 05:16 addftinfo<br />
--More--<br />
Notate che more non ci stà presentando la percentuale di linee lette. Questo non è<br />
possibile in quanto riceve i dati da una pipe e quindi non può sapere in anticipo quante<br />
linee leggerà in totale. 15<br />
3.6 Cambiare e creare directory: cd, pwd<br />
e mkdir<br />
Il comando cd è un acronimo di change directory e serve a spostare la propria posizione<br />
da una directory ad un’altra. La sintassi è elementare:<br />
cd nuovadirectory<br />
Le directory possono essere indicate in percorsi assoluti (ossia con uno slash davanti)<br />
oppure in percorsi relativi. Per sapere in quale directory ci troviamo possiamo usare il<br />
comando pwd ossia print working directory :<br />
15<br />
Ma noi lo sappiamo grazie ad ls. Sarebbero state 119712. Meglio aver usato more