vendredi 24 janvier 2014

Example syntax for Secure Copy (scp)


Example syntax for Secure Copy (scp)

What is Secure Copy?

scp allows files to be copied to, from, or between different hosts. It uses ssh for data transfer and provides the same authentication and same level of security as ssh.

Examples


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

    $ scp your_username@remotehost.edu:foobar.txt /some/local/directory

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

    $ scp foobar.txt your_username@remotehost.edu:/some/remote/directory

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

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

lundi 20 janvier 2014

How to Install Oracle Java JDK 6/7/8 on Ubuntu 13.04 / 12.10 / 12.04



In this article I will show you how to install the Oracle Java (JDK) 8, Oracle Java (JDK + JRE) 7 or Oracle Java (JDK) 6 on Ubuntu 13.04, Ubuntu 12.10 and Ubuntu 12.04.
The Oracla Java has been removed from the official Ubuntu repositories due to some Java licence issues.
Before you install it, remove OpenJDK, if you have it installed
$ sudo apt-get purge openjdk*

To install Java 8/7/6, do this:
In order not to get issues with the add-apt-repository command, install the following package:

$ sudo apt-get install software-properties-common

Add the PPA:
$ sudo add-apt-repository ppa:webupd8team/java

Update the repo index:
$ sudo apt-get update

install Java 8:
$ sudo apt-get install oracle-java8-installer

Or, install Java 7:
$ sudo apt-get install oracle-java7-installer

Or, install Java 6:
$ sudo apt-get install oracle-java6-installer