Linux tar 修改终端命令
Linux 下打包除了某一个文件下的子文件夹
打包命令
tar --exclude ProducSpider/data -czvf Sample.tar ProducSpider/
使用exclude命令 注意 exclude后面的文件夹名称不能使用/否则无效
把打包文件远程拷贝另一台主机
scp Sample.tar root@192.168.1.200:/home/root
解压文件:tar -zxvf Sample.tar
修改终端
位置/etc/profile
添加:export PS1='[\u@\h:\w] \$'
立即生效:source /etc/profile
修改后效果:[ab@CC-200:~/ProducSpider/config] $