Transfer file to Server and vice versa

Local to Server:

 scp -P 2222 /absolute_path/source-folder/some-file user@example.com:/absolute_path/destination-folder


Server to Local:
scp -P 2222 user@example.com:/absolute_path/destination-folder /absolute_path/source-folder/some-file

How do I extract tar.xz files in Linux?

The syntax is:

  1. Install xz using the dnf install xz on a CentOS/RHEL/Fedora Linux.
  2. Debian/Ubuntu Linux users try apt install xz-utils command.
  3. Extract tar.xz using the tar -xf backup.tar.xz command
  4. To decompress filename.tar.xz file run: xz -d -v filename.tar.xz

Comments

Popular posts from this blog

Generate SHA-1 and SHA-256 for Debug and Release android app

JAVA_HOME setup and Integrate with Android Studio Project in Ubuntu