Skill 4 in course 1.1: Command-Line Foundations
Archives and Remote Login
Pack and compress files with tar, log in to other systems with SSH, and move files between them securely.
You will be able to
- Create, list, extract and verify tar archives, compressed with gzip, bzip2 or xz, and choose the right compressor.
- Log in to a remote system with ssh, run a single command remotely and understand host key warnings.
- Copy files and directories securely with scp, sftp and rsync.
Lessons
- 01Archives and compression with tarBundle a directory into one file, compress it with gzip, bzip2 or xz, and restore it to the right place.
targzipgunzipbzip2bunzip2xz0/5 exercises - 02Logging in to remote systems with SSHOpen a shell or run one command on another machine, and read host key warnings instead of ignoring them.
sshssh -pssh user@host cmdssh -v~/.ssh/known_hostsssh-keygen -R0/5 exercises - 03Securely transferring files: scp, sftp and rsyncCopy files and directories between systems over SSH, and know when to choose each tool.
scpsftprsyncscp -rscp -Prsync -av0/5 exercises