Skip to content

Linux

scp Secure Copy to remote host with Linux

Share Button

// Copy testFile.php from remote host/machine to Localhost

scp username@remote_host:/etc/practice/testFile.php ./

 

// Copy testFile.php from Localhost to remote host/machine

scp testFile.php username@remote_host:/etc/practice

 

 

Explanation:

scp_fileSending

Share Button

Get IP Addresses with ifconfig command

Share Button

Max OS X

ifconfig en0 | grep -i inet | awk '{print $2}' | cut -f 2 -d ':'

Result

178.62.55.250

 

RedHat

ifconfig eth0 | grep -i inet | awk '{print $2}' | cut -f 2 -d ':'

Result

178.62.55.250

Share Button

Linux File Permissions Table – Permissions Explained

Share Button

Linux Files Permissions Complete Guide.

Linux Files Permissions Complete Guide.
Linux Files Permissions Complete Guide.

Share Button