THE IT IDEAS

  • Home

Tuesday, 18 November 2014

SCP Command Example

 THE IT IDEAS     10:29     SCP command   

To copy file from localmachine to remote machine
e.g. # scp file.txt ubuntu@192.168.0.1:/home/ubuntu/Desktop




Copy the file from a remote machine to the local machine
# scp ubuntu@192.168.0.1:/home/ubuntu/Desktop/file.txt /home 



To make file transfer fast use "-C" switch, it will compress the data on the go and deliver same format file at destination.

# scp -C file.txt ubuntu@192.168.0.1:/home/ubuntu/Desktop


To make limit of transfer bandwidth use "l" switchIt.

# scp -l 400 file.txt ubuntu@192.168.0.1:/home/ubuntu/Desktop

The 400 value behind “-l” parameter is mean that we limit the bandwidth for SCP process only 50 KB/sec. One thing to remember that bandwidth is specified in Kilobits/sec (kbps). It is mean that 8 bits equal with 1 byte.


Specify specific port to use with SCP

# scp -P 24 file.txt ubuntu@192.168.0.1:/home/ubuntu/Desktop

 

To Copy Folder

# scp -r pictures file.txt ubuntu@192.168.0.1:/home/ubuntu/Desktop

 

To Hide progress meter and warning / diagnostic messages from SCP, you may disable it using “-q” switch.
# scp -q file.txt ubuntu@192.168.0.1:/home/ubuntu/Desktop



Copy the file "file.txt" from remote machine "ubuntu1" to remote machine "ubuntu2"
#scp ubuntu1@192.168.0.1:/home/ubuntu/Desktop/file.txt ubuntu2@192.168.0.2:/home/
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Email ThisBlogThis!Share to XShare to Facebook

Related Posts:

  • SCP Command Example To copy file from localmachine to remote machinee.g. # scp file.txt ubuntu@192.168.0.1:/home/ubuntu/Desktop Copy the file from a remote machine to … Read More
Newer Post Older Post Home

Like Us !!!

Recent Posts

Blog Archive

  • ►  2016 (1)
    • ►  April (1)
  • ►  2015 (12)
    • ►  August (1)
    • ►  May (2)
    • ►  April (8)
    • ►  March (1)
  • ▼  2014 (23)
    • ►  December (8)
    • ▼  November (12)
      • How to setup Network Configuration in Ubuntu Serve...
      • Amazon RDS Restore MySQL Backup with functions
      • How to install Tomcat in Ubuntu
      • How to install Oracle JAVA JDK with apt-get command
      • How to set environment Variable permenantly in MAC...
      • How to Mount AWS S3 Bucket into AWS EC2 Instance (...
      • How to change DocumentRoot path in Apache Ubuntu 1...
      • How to Benchmarking Webserver
      • How to Choose AWS EC2 Instance
      • SCP Command Example
      • MySQL Basic Commands for Linux
      • How to enable mod rewrite module in apache2
    • ►  April (2)
    • ►  March (1)
  • ►  2013 (7)
    • ►  December (1)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (3)
  • ►  2012 (15)
    • ►  December (6)
    • ►  November (9)

Categories

apache2 EC2 error mysql php ubuntu aws aws rds browser github installation linux mount s3 AWS Bucket CentOS Computer DocumentRoot change How to Benchmarking Webserver IP LAMP Restart Computer SCP command SQL SERVER XRDP administrator amazon rds backup basic commands chat command line disable download drupal ec2.chroot environment external storage device fstab functions geoip gmail google home page iis instance internet java mod rewrite mongodb multiple login network password one password php5 php5-fpm php7 private browsing python repair filesystem repo reset password rhel sa password same computer script sftp share skype ssh tomcat ubuntu 16.04 ubuntu16 visudo windows 8 youtube
JobsMagBlogJobsMag.InThingsGuide

Popular Posts

  • How to Install PHP 7.0, Apache 2.4.18, & MySQL 5.7 on Ubuntu 16.04 LTS
    Update your repo list with below command $ sudo apt-get update -- > Install Apache 2.4.18 $ sudo apt-get install apac...
  • How to Use Python ‘SimpleHTTPServer’ to Serve Files Instantly
    How to Use Python ‘SimpleHTTPServer’ to Serve Files Instantly first check is python available or not. #python –V If command return version...
  • How to setup Network Configuration in Ubuntu Server 14.04
    Open Network Configuration file. #nano /etc/network/interface Then Add below mentioned lines and make changes as per your need. auto eth0 i...

Copyright © 2025 THE IT IDEAS | Powered by Blogger