Linux-related operations

Source: Internet
Author: User

1. SCP

Http://www.cnblogs.com/xuxm2007/archive/2010/08/04/1792179.html

SCP is short for secure copy. SCP is a secure remote file copy command based on SSH login in Linux. The SCP command of Linux can copy files and directories between Linux servers.

1) copy from local server to remote server

SCP
/Home/Linux/soft/scp.zip root@www.mydomain.com:/home/Linux/Others/soft
# File

SCP
-R/home/Linux/soft/root@www.mydomain.com:/home/Linux/Others/
# Directory

2) copy from remote server to local server

The Exchange Order is the same as above.


2. RZ and Sz.

These two sz/Rz tools can be easily used for file transmission (sending and receiving) between Linux and Windows at a speed of about 10 kb/s, suitable for small and medium files. Rz/SZ
Transmit data through the zmodem protocol.

These two are the easiest to use. In Linux, you just need to break down the command and not understand man.

Experience: for a slightly larger file, it is often terminated after a part is uploaded. In this case, try the RZ-e option.


3 ,~. /Bashrc

This file stores personal personalized settings, such as command aliases and environment variables. The following is an example:

# User specific
Aliases and functions

Alias hadx = '~ /Hadoop-Client/hadoop/bin/hadoop'

Export Path = $ path :~ /Hadoop-Client/hadoop/bin

Save and exit.

But why can't hadoop or hadx commands be used? This is because the bashrc file is loaded every time the shell is restarted. Restart the shell to run hadoop or hadx commands.

4.
Decompress the file

$ Tar
Zxvf xxxx.tar.gz



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.