-
-
Save igorpronin/cd294da4cb98e27bdfb1a64942c8af7e to your computer and use it in GitHub Desktop.
Копирование файлов по ssh, работа с zip, утилита cp (копирование файлов)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Перенесено в мой ман https://github.com/igorpronin/my-mans/blob/master/ssh-zip/ssh.md | |
Пример 1: Копируем файл «file.txt» из удаленного сервера на локальный компьютер. | |
$ scp [email protected]:file.txt /some/local/directory | |
Пример 2: Копируем файл «file.txt» с локального компьютера на удаленный сервер. | |
$ scp file.txt [email protected]:/some/remote/directory | |
Пример 3: Копируем папку «dir1» с локального хоста в директорию «dir2» на удаленном хосте. | |
$ scp -r dir1 [email protected]:/some/remote/directory/dir2 | |
больше тут: | |
https://www.shellhacks.com/ru/copy-files-ssh-10-examples/ | |
Запаковать текущую папку с подпапками в zip-архив folder.zip | |
zip -r folder.zip ./ | |
Распаковать архив folder.zip в папку folder | |
unzip ./folder.zip -d ./folder | |
cp | |
https://losst.ru/kopirovanie-fajlov-v-linux |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment