做者簡介web
李先生(Lemon),高級運維工程師(自稱),SRE專家(目標),夢想在35歲買一輛保時捷。喜歡鑽研底層技術,認爲底層基礎纔是王道。一切新技術都離不開操做系統(CPU、內存、磁盤)、網絡等。堅持輸入輸出,記錄本身學習的點滴,在平凡中堅持前行,總有一天會碰見不同的本身。公衆號:運維汪(ID:Leeeee_Li)。
tar -zcvf too.tar.gz too
#.tar.gz tar -zxvf too.tar.gz #.tar.gz2 tar -jxvf too.tar.gz2
3)排除某個目錄打包shell
tar -czvf too.tar.gz --exclude=too/logs too
tar -zcf api3.0_`date +%Y%m%d%H%M%S`.tar.gz -C /usr/local/tomcat/webapps api3.0
gzip filename
gzip -d filename # 打包的文件會被刪除
bzip2 examplefile or bzip2 -s examplefile
bzip2 -d examplefile.bz2 or bunzip2 examplefile.bz2
3)詳細說明api
bzip2 -v examplefile
lzma -c --stdout examplefile> examplefile.lzma
lzma -d --stdout examplefile.lzma >examplefile
xz examplefile
xz -d examplefile
pax -wf examplefile.tar examplefile pax -wf examplefile.tar.gz examplefile
pax -r <examplefile.tar
pax -f examplefile.tar
wget https://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/7/x86_64/Packages/p/p7zip-16.02-10.el7.x86_64.rpm wget https://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/7/x86_64/Packages/p/p7zip-plugins-16.02-10.el7.x86_64.rpm sudo rpm -U --quiet p7zip-16.02-10.el7.x86_64.rpm sudo rpm -U --quiet p7zip-plugins-16.02-10.el7.x86_64.rpm
7z a examplefile.7z examplefile
7z a examplefile.7z examplefile
yum -y install sharutils
shar examplefile > examplefile.shar
unshar examplefile.shar
ls | cpio -ov >/home/username/backup.cpio
cpio -idv <backup.cpio
ar cvsr examplefile.a examplefile
ar -xv examplefile.a
dd if=/media/dvd of=/home/username/filename.iso
3、學習交流tomcat
歡迎你們關注個人公衆號,一塊兒交流、學習。服務器