Header Ads

  • New Updates

    Linux SCP - Basic Commands







    Copy the file "abcd.txt" from a remote host to the local host


    $ scp your_username@ remotehost.com:abcd.txt /some/local/directory


    Copy the file "abcd.txt" from the local host to a remote host


    $ scp abcd.txt your_username@remotehost.com:/some/remote/directory


    Copy the directory "foo" from the local host to a remote host's directory "bar"


    $ scp -r foo your_username@ remotehost.com:/some/remote/directory/bar


    Copy the file "abcd.txt" from remote host "123.com" to remote host "456.in"

    Post Top Ad

    Post Bottom Ad

    Ads