ssh username@hostname -p portnumber
|
du -sh /etc
"s" permet de n'afficher que le total de la taille du répertoire.
"h" pour "human readable" qui permet d'afficher le résultat en Kilo-octet, Mega-octet, Giga-octect... |
scp /home/com2me/data/Ficher2 root@192.168.10.131:/var/www/
|
scp -r /home/com2me/data/ root@192.168.10.131:/var/www/
scp -r -P 7256 /home/com2me/data/ root@192.168.10.131:/var/www/
|
mv dossier dossier_renomme
mv fichier.txt fichier_renomme.txt
|
mv fichier.txt /home/user/dossier/
mv nom_dossier /home/user/dossier/
|
mkdir ./myNewDirectory
mkdir -p ./this/is/a/nested/directory
|
rm myFile.txt
|
rm -f myFile.txt
|
rm -f *.txt
|
rm -rf /path/to/directory
|
rm -v myFile.txt
|
rm -i myFile.txt
|
zip archive-name.zip your-file.php your-file.php your-file.php
|
zip -r archive-name.zip /path/to/directory
zip -r archive-name.zip /path/to/directory -x fileToExclude
zip -r root.zip root/ -x root/.git\* root/vendor\*
zip -r root.zip root/ -x root/.git/**\* root/vendor/**\*
|
unzip zippedArchive.zip
|
tar -czvf archive-name.tar.gz your-file.text your-file.php your-file.html
|
tar -czvf archive-name.tar.gz /Directory-Name
|
tar -zxvf archive-name.tar.gz /Directory-Name
|
tar -zcf archive-name.tar your-file.php your-file.php your-file.html
|
tar -zcf archive-name.tar.gz /directory-name
|
tar -xvf archive-name.tar
|
rar a archive-name.rar your-file.txt your-file.php your-file.html
|
rar a archive-name.rar /directory-name
|
unrar x archive-name.rar
|