一、ubuntu修改主机名
1978 cd /etc/hostname
1979 vim /etc/hostname
二 、Ubuntu 上传和下载文件
上传
上传单个文件
scp -p port source_dictionary_file user@ServerIp:target_dictionary_file
prot 默认是22,如果使用默认可以不写
示例: scp \全部客户月NCC销售账单拆分表.xlsx root@192.168.101.7:/home
scp /User/hellowood/wechat.jpg root@192.168.0.2:/home/hellowood/wechat.jpg
上传整个文件夹
scp -p port -r source_dictionary user@ServerIp:target_dictionary
scp -r /User/hellowood/tomcat root@192.168.0.2:/home/hellowood/tomcat
下载
下载单个文件
示例: $ scp -p root@192.168.101.7:/root/debs/mysql-common_5.8+1.0.5ubuntu2_all.deb
scp -p user@ServerIp:source_dictionary_file target_dictionary
scp root@192.168.0.2:/home/hellowood/wechat.jpg /User/hellowood/wechat.jpg
下载文件夹
scp -p port -r user@ServerIp:source_dictionary target_dictionry
scp -r root@192.168.0.2:/home/hellowood/tomcat /User/hellowood/tomcat
三 # ubuntu 安装 lrzsz 上传下载
apt-get install lrzsz
rz要上传的文件
sz要下载的文件