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