linux 入门笔记

1 修改时区

sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

2 修改原件源

1 vi /etc/apt/sources.list
2 apt-get update

deb http://mirrors.aliyun.com/ubu... trusty main restricted universe
multiverse deb http://mirrors.aliyun.com/ubu... trusty-security main
restricted universe multiverse deb http://mirrors.aliyun.com/ubu...
trusty-updates main restricted universe multiverse deb
http://mirrors.aliyun.com/ubu... trusty-proposed main restricted
universe multiverse deb http://mirrors.aliyun.com/ubu...
trusty-backports main restricted universe multiverse deb-src
http://mirrors.aliyun.com/ubu... trusty main restricted universe
multiverse deb-src http://mirrors.aliyun.com/ubu... trusty-security
main restricted universe multiverse deb-src
http://mirrors.aliyun.com/ubu... trusty-updates main restricted
universe multiverse deb-src http://mirrors.aliyun.com/ubu...
trusty-proposed main restricted universe multiverse deb-src
http://mirrors.aliyun.com/ubu... trusty-backports main restricted
universe multiverse

3 tar

打包 tar -cf aa.tar aa
解压 tar -xvf aa.tar

4 主机文件copy

scp showdoc.tar [email protected]:/var/www

你可能感兴趣的:(linux)