Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| elearning:workbooks:solaris:10:junior:l120 [2020/01/17 09:39] – admin | elearning:workbooks:solaris:10:junior:l120 [2020/01/30 03:28] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 869: | Ligne 869: | ||
| ==== ftp ==== | ==== ftp ==== | ||
| - | La commande | + | Avant de commencer, placez-vous dasn le répertoire |
| - | | + | < |
| + | # cd /tmp | ||
| + | # pwd | ||
| + | /tmp | ||
| + | </ | ||
| - | En saisissant cette commande, vous obtiendrez un résultat similaire à celle-ci | + | La commande |
| < | < | ||
| - | # ftp ftp.microsoft.com | + | # ftp localhost |
| - | Connected to ftp.microsoft.com. | + | Connected to localhost. |
| - | 220 Microsoft | + | 220 solaris.i2tch.loc FTP server ready. |
| - | Name (ftp.microsoft.com: | + | Name (localhost: |
| - | 331 Anonymous access allowed, send identity (e-mail name) as password. | + | 331 Password required for user1. |
| - | Password: | + | Password:tra@inee |
| - | 230-Welcome to FTP.MICROSOFT.COM. Also visit http:// | + | 230 User user1 logged in. |
| - | 230 Anonymous user logged in. | + | Remote system type is UNIX. |
| - | Remote system type is Windows_NT. | + | Using binary mode to transfer files. |
| - | ftp> | + | ftp> |
| </ | </ | ||
| Ligne 914: | Ligne 918: | ||
| < | < | ||
| ftp> pwd | ftp> pwd | ||
| - | 257 "/" | + | 257 "/export/ |
| ftp> ls | ftp> ls | ||
| 200 PORT command successful. | 200 PORT command successful. | ||
| 150 Opening ASCII mode data connection for file list. | 150 Opening ASCII mode data connection for file list. | ||
| - | bussys | + | local.cshrc |
| - | deskapps | + | local.login |
| - | developr | + | local.profile |
| - | KBHelp | + | |
| - | MISC | + | |
| - | MISC1 | + | |
| - | peropsys | + | |
| - | Products | + | |
| - | PSS | + | |
| - | ResKit | + | |
| - | Services | + | |
| - | Softlib | + | |
| 226 Transfer complete. | 226 Transfer complete. | ||
| - | 101 bytes received in 0, | + | 41 bytes received in 0.00014 |
| ftp> dir | ftp> dir | ||
| 200 PORT command successful. | 200 PORT command successful. | ||
| 150 Opening ASCII mode data connection for /bin/ls. | 150 Opening ASCII mode data connection for /bin/ls. | ||
| - | dr-xr-xr-x | + | total 8 |
| - | dr-xr-xr-x 1 owner group 0 Feb 1 2006 deskapps | + | -rw-r--r-- |
| - | dr-xr-xr-x 1 owner group 0 Feb 1 2006 developr | + | -rw-r--r-- |
| - | dr-xr-xr-x 1 owner group 0 Feb 1 2006 KBHelp | + | -rw-r--r-- |
| - | dr-xr-xr-x 1 owner group 0 Feb 1 2006 MISC | + | -rw-r--r-- |
| - | dr-xr-xr-x 1 owner group 0 Feb 1 2006 MISC1 | + | |
| - | dr-xr-xr-x 1 owner group 0 Feb 1 2006 peropsys | + | |
| - | dr-xr-xr-x 1 owner group 0 Jul 18 2006 Products | + | |
| - | dr-xr-xr-x 1 owner group 0 Feb 1 2006 PSS | + | |
| - | dr-xr-xr-x | + | |
| - | dr-xr-xr-x | + | |
| - | dr-xr-xr-x | + | |
| 226 Transfer complete. | 226 Transfer complete. | ||
| - | 809 bytes received in 0, | + | 276 bytes received in 3.1e-05 |
| </ | </ | ||
| - | Une commande ftp très utile est : | + | Par contre notez que le serveur FTP de SUN fourni en standard n'est **pas** dans un **chroot** |
| - | | + | < |
| + | ftp> | ||
| + | 250 CWD command successful. | ||
| + | ftp> ls | ||
| + | 200 PORT command successful. | ||
| + | 150 Opening ASCII mode data connection for file list. | ||
| + | Desktop | ||
| + | Documents | ||
| + | bin | ||
| + | boot | ||
| + | core | ||
| + | core.882 | ||
| + | dev | ||
| + | devices | ||
| + | etc | ||
| + | export | ||
| + | home | ||
| + | inetd.tftp | ||
| + | kernel | ||
| + | lib | ||
| + | lost+found | ||
| + | mnt | ||
| + | net | ||
| + | opt | ||
| + | platform | ||
| + | proc | ||
| + | pwd.txt | ||
| + | rep | ||
| + | sbin | ||
| + | system | ||
| + | tmp | ||
| + | usr | ||
| + | var | ||
| + | vol | ||
| + | 226 Transfer complete. | ||
| + | 196 bytes received in 0.0012 seconds (153.31 Kbytes/s) | ||
| + | </ | ||
| - | Cette commande permet d' | + | Une commande ftp très utile est **!**. |
| < | < | ||
| - | | + | ftp> !pwd |
| - | /Desktop | + | /tmp |
| </ | </ | ||
| Pour transférer un fichier vers le serveur, il convient d' | Pour transférer un fichier vers le serveur, il convient d' | ||
| - | | + | < |
| + | ftp> | ||
| + | hsperfdata_noaccess | ||
| + | ftp> cd / | ||
| + | 250 CWD command successful. | ||
| + | ftp> put ntp.conf | ||
| + | 200 PORT command successful. | ||
| + | 150 Opening BINARY mode data connection for ntp.conf. | ||
| + | 226 Transfer complete. | ||
| + | local: ntp.conf remote: ntp.conf | ||
| + | 454 bytes sent in 0.00039 seconds (1127.48 Kbytes/s) | ||
| + | </ | ||
| - | Vous pouvez également transférer plusieurs fichiers à la fois grâce à la commande **mput**. | + | Vous pouvez également transférer plusieurs fichiers à la fois grâce à la commande **mput**. |
| - | | + | < |
| + | ftp> | ||
| + | ftp> !cp ntp.conf ntp2.conf | ||
| + | ftp> !ls | ||
| + | hsperfdata_noaccess | ||
| + | </ | ||
| - | Notez l' | + | Ensuite téléversez les fichiers : |
| + | |||
| + | < | ||
| + | ftp> mput ntp* | ||
| + | mput ntp.conf? y | ||
| + | 200 PORT command successful. | ||
| + | 150 Opening BINARY mode data connection for ntp.conf. | ||
| + | 226 Transfer complete. | ||
| + | local: ntp.conf remote: ntp.conf | ||
| + | 454 bytes sent in 0.00046 seconds (972.30 Kbytes/s) | ||
| + | mput ntp1.conf? y | ||
| + | 200 PORT command successful. | ||
| + | 150 Opening BINARY mode data connection for ntp1.conf. | ||
| + | 226 Transfer complete. | ||
| + | local: ntp1.conf remote: ntp1.conf | ||
| + | 454 bytes sent in 0.00033 seconds (1344.94 Kbytes/s) | ||
| + | mput ntp2.conf? y | ||
| + | 200 PORT command successful. | ||
| + | 150 Opening BINARY mode data connection for ntp2.conf. | ||
| + | 226 Transfer complete. | ||
| + | local: ntp2.conf remote: ntp2.conf | ||
| + | 454 bytes sent in 0.00026 seconds (1711.30 Kbytes/s) | ||
| + | </ | ||
| + | |||
| + | <WRAP center round important> | ||
| + | **Important** - Notez l' | ||
| + | </ | ||
| Dans le cas où on ne souhaite pas la demande de confirmation lors des transferts multiples, il convient de saisir la commande **prompt** : | Dans le cas où on ne souhaite pas la demande de confirmation lors des transferts multiples, il convient de saisir la commande **prompt** : | ||
| - | | + | < |
| + | ftp> prompt | ||
| + | Interactive mode off. | ||
| + | ftp> mput ntp* | ||
| + | 200 PORT command successful. | ||
| + | 150 Opening BINARY mode data connection for ntp.conf. | ||
| + | 226 Transfer complete. | ||
| + | local: ntp.conf remote: ntp.conf | ||
| + | 454 bytes sent in 0.00023 seconds (1929.68 Kbytes/s) | ||
| + | 200 PORT command successful. | ||
| + | 150 Opening BINARY mode data connection for ntp1.conf. | ||
| + | 226 Transfer complete. | ||
| + | local: ntp1.conf remote: ntp1.conf | ||
| + | 454 bytes sent in 0.00031 seconds (1438.13 Kbytes/s) | ||
| + | 200 PORT command successful. | ||
| + | 150 Opening BINARY mode data connection for ntp2.conf. | ||
| + | 226 Transfer complete. | ||
| + | local: ntp2.conf remote: ntp2.conf | ||
| + | 454 bytes sent in 0.00026 seconds (1720.71 Kbytes/s) | ||
| + | </ | ||
| <WRAP center round important 60%> | <WRAP center round important 60%> | ||
| Ligne 980: | Ligne 1065: | ||
| </ | </ | ||
| - | La navigation distante est obtenue en utilisant | + | Pour transférer un fichier du serveur, il convient d' |
| - | + | ||
| - | ftp>cd nom_repertoire | + | |
| - | + | ||
| - | Dans le cas de notre exemple, la commande est : | + | |
| - | + | ||
| - | ftp>cd MISC [Entrée] | + | |
| - | + | ||
| - | En saisissant cette commande, vous obtiendrez un résultat similaire à celui-ci | + | |
| < | < | ||
| - | ftp> | + | ftp> |
| - | 250 CWD command successful. | + | 257 "/ |
| + | ftp> !pwd | ||
| + | /tmp | ||
| + | ftp> !rm ntp* | ||
| + | ftp> !ls | ||
| + | hsperfdata_noaccess | ||
| + | ftp> get ntp.conf | ||
| + | 200 PORT command successful. | ||
| + | 150 Opening BINARY mode data connection for ntp.conf (454 bytes). | ||
| + | 226 Transfer complete. | ||
| + | local: ntp.conf remote: ntp.conf | ||
| + | 454 bytes received in 3.6e-05 seconds (12284.49 Kbytes/s) | ||
| + | ftp> !ls | ||
| + | hsperfdata_noaccess | ||
| </ | </ | ||
| - | Pour transférer | + | Vous pouvez également |
| - | ftp>get nom_fichier | + | Pour supprimer un fichier sur le serveur, il convient d' |
| - | + | ||
| - | Dans le cas de notre exemple, nous allons télécharger le fichier / | + | |
| < | < | ||
| - | ftp> | + | ftp> |
| 200 PORT command successful. | 200 PORT command successful. | ||
| - | 150 Opening ASCII mode data connection for /bin/ls. | + | 150 Opening ASCII mode data connection for file list. |
| - | dr-xr-xr-x | + | local.cshrc |
| - | -r-xr-xr-x | + | local.login |
| - | dr-xr-xr-x | + | local.profile |
| - | dr-xr-xr-x | + | ntp.conf |
| - | -r-xr-xr-x | + | ntp1.conf |
| - | dr-xr-xr-x | + | ntp2.conf |
| - | dr-xr-xr-x | + | |
| - | dr-xr-xr-x | + | |
| - | dr-xr-xr-x | + | |
| - | -r-xr-xr-x | + | |
| - | dr-xr-xr-x | + | |
| - | dr-xr-xr-x | + | |
| - | dr-xr-xr-x | + | |
| - | dr-xr-xr-x | + | |
| - | dr-xr-xr-x | + | |
| - | -r-xr-xr-x | + | |
| - | -r-xr-xr-x | + | |
| - | -r-xr-xr-x | + | |
| - | -r-xr-xr-x | + | |
| - | -r-xr-xr-x | + | |
| - | dr-xr-xr-x | + | |
| - | -r-xr-xr-x | + | |
| - | -r-xr-xr-x | + | |
| - | dr-xr-xr-x | + | |
| - | dr-xr-xr-x | + | |
| - | dr-xr-xr-x | + | |
| - | dr-xr-xr-x | + | |
| - | dr-xr-xr-x | + | |
| - | dr-xr-xr-x | + | |
| - | -r-xr-xr-x | + | |
| - | dr-xr-xr-x | + | |
| - | dr-xr-xr-x | + | |
| 226 Transfer complete. | 226 Transfer complete. | ||
| - | 2174 bytes received in 0,0045 seconds (474, | + | 73 bytes received in 0.00015 |
| - | ftp> | + | ftp> |
| + | 250 DELE command successful. | ||
| + | ftp> del ntp1.conf | ||
| + | 250 DELE command successful. | ||
| + | ftp> del ntp2.conf | ||
| + | 250 DELE command successful. | ||
| + | ftp> ls | ||
| 200 PORT command successful. | 200 PORT command successful. | ||
| - | 150 Opening ASCII mode data connection for INDEX.TXT(97 bytes). | + | 150 Opening ASCII mode data connection for file list. |
| + | local.cshrc | ||
| + | local.login | ||
| + | local.profile | ||
| 226 Transfer complete. | 226 Transfer complete. | ||
| - | local: INDEX.TXT remote: INDEX.TXT | + | 41 bytes received in 8.7e-05 |
| - | 97 bytes received in 0, | + | |
| - | ftp> | + | |
| </ | </ | ||
| - | |||
| - | Vous pouvez également transférer plusieurs fichiers à la fois grâce à la commande **mget** ( voir la commande **mput** ci dessus ). | ||
| - | |||
| - | Pour supprimer un fichier sur le serveur, il convient d' | ||
| - | |||
| - | ftp>del nom_fichier | ||
| Pour fermer la session, il convient d' | Pour fermer la session, il convient d' | ||
| Ligne 2890: | Ligne 2953: | ||
| Copyright © 2020 Hugh Norris. | Copyright © 2020 Hugh Norris. | ||
| </ | </ | ||
| + | |||