Hwo to copy the directory in Linux by using PuTTY?

·

1 min read

PuTTY, a dependable terminal emulator, acts as a safe gateway for command execution on remote Linux systems. Copying files between directories is a basic job in Linux server administration, and it is frequently used for data organizing, application installation, and general file management.

To copy files from one directory to another, use PuTTY and the following steps:

Install PuTTY:

Make sure PuTTY is downloaded and installed on your computer.

Connect to the Linux server by doing the following:

Open PuTTY and input the IP address and username of the Linux server in the Hostname section. Configure the connection type to SSH and the port to 22. To connect, press the "Open" button. Go to the Source Directory:

To navigate to the directory holding the files you want to copy, use the cd command.

cd path/to/source-directory

Copy the following files to the destination directory:

To copy files from the source directory to the target directory, use the cp command.

cp filename /path/to/destinationdirectory/

Change "filename" to the exact file name and change the destination directory path accordingly.

Also check how to use key based authentication to secure connection and passwordless login to remote server by using PuTTY.