Dtrx - ການສະກັດເອົາຮວບຮວມແບບອັດສະລິຍະ (tar, zip, cpio, rpm, deb, rar) ເຄື່ອງມື ສຳ ລັບ Linux
ພວກເຮົາທຸກຄົນອາດຈະເຄີຍປະເຊີນກັບສະຖານະການໃນຊ່ວງເວລາໃດ ໜຶ່ງ ຫຼືເວລາອື່ນໃນຂະນະທີ່ ນຳ ໃຊ້ Linux tar.gz, tar.bz2, ຄຳ ສັ່ງ tbz. ປະເພດເກັບຫຼາຍສະນັ້ນ, ມີ ຄຳ ສັ່ງຫຼາຍຢ່າງທີ່ຕ້ອງຈື່…ດີ, ບໍ່ແມ່ນອີກ, ຍ້ອນເຄື່ອງມື dtrx.
<
Dtrx ແມ່ນຫຍັງ?
Dtrx ຫຍໍ້ມາຈາກ "Do The Extraction ທີ່ຖືກຕ້ອງ", ມັນເປັນແຫຼ່ງເປີດແລະການ ນຳ ໃຊ້ເສັ້ນ ຄຳ ສັ່ງທີ່ມີປະສິດທິພາບຫຼາຍ ສຳ ລັບລະບົບ * nix ທີ່ເຮັດໃຫ້ວຽກຂອງທ່ານງ່າຍຂື້ນໃນການສະກັດເອົາຮວບຮວມ.
ຄຳ ສັ່ງ dtrx ແມ່ນການທົດແທນ ຄຳ ສັ່ງ "tar -zxvf" ຫຼື "tar -xjf" ແລະມັນໃຫ້ ຄຳ ສັ່ງດຽວເພື່ອສະກັດເອົາຮວບຮວມໃນຫຼາຍຮູບແບບທີ່ແຕກຕ່າງກັນລວມທັງ tar, zip, rpm, deb, gem, 7z, cpio, rar ແລະອີກຫຼາຍໆຢ່າງ. ມັນຍັງສາມາດໃຊ້ເພື່ອລຶບໄຟລ໌ທີ່ບີບອັດດ້ວຍ bzip2, gzip ແລະອື່ນໆ.
ໂດຍຄ່າເລີ່ມຕົ້ນ, dtrx ສະກັດເນື້ອຫາເຂົ້າໃນໄດເລກະທໍລີທີ່ອຸທິດຕົນແລະຍັງແກ້ໄຂບັນຫາການອະນຸຍາດ (ເຊັ່ນວ່າການອະນຸຍາດຖືກປະຕິເສດ) ປະເຊີນ ໜ້າ ໂດຍຜູ້ໃຊ້ໃນຂະນະທີ່ສະກັດເນື້ອຫາເພື່ອຮັບປະກັນວ່າເຈົ້າຂອງສາມາດອ່ານແລະຂຽນເອກະສານທັງ ໝົດ ເຫຼົ່ານັ້ນ.
ຄຸນນະສົມບັດ Dtrx
<
ວິທີການຕິດຕັ້ງ Dtrx ໃນ Linux
ເຄື່ອງມື dtrx ແມ່ນຢູ່ໃນຄ່າເລີ່ມຕົ້ນທີ່ລວມຢູ່ໃນຫໍໄຕ Ubuntu, ສິ່ງທີ່ທ່ານຕ້ອງເຮັດແມ່ນງ່າຍດາຍທີ່ຈະເຮັດໃນການຕິດຕັ້ງໃນລະບົບຂອງທ່ານ.
$ sudo apt-get install dtrx
ໃນລະບົບທີ່ອີງໃສ່ Red Hat, dtrx ບໍ່ສາມາດໃຊ້ໄດ້ຜ່ານຫໍສະມຸດໃນຕອນຕົ້ນ, ທ່ານ ຈຳ ເປັນຕ້ອງດາວໂຫລດສະຄິບ dtrx ແລະຕິດຕັ້ງລະບົບໂປແກຼມທົ່ວເຖິງໂດຍໃຊ້ ຄຳ ສັ່ງດ້ານລຸ່ມເປັນຜູ້ໃຊ້ຮາກ.
# wget http://brettcsmith.org/2007/dtrx/dtrx-7.1.tar.gz # tar -xvf dtrx-7.1.tar.gz # cd dtrx-7.1 # python setup.py install --prefix=/usr/local
running install running build running build_scripts creating build creating build/scripts-2.6 copying and adjusting scripts/dtrx -> build/scripts-2.6 changing mode of build/scripts-2.6/dtrx from 644 to 755 running install_scripts copying build/scripts-2.6/dtrx -> /usr/local/bin changing mode of /usr/local/bin/dtrx to 755 running install_egg_info Creating /usr/local/lib/python2.6/site-packages/ Writing /usr/local/lib/python2.6/site-packages/dtrx-7.1-py2.6.egg-info
ວິທີການໃຊ້ ຄຳ ສັ່ງ dtrx
ຄຳ ສັ່ງ dtrx ແມ່ນຄ້າຍຄືວົງແຫວນ ໜຶ່ງ ທີ່ປົກຄອງພວກມັນທັງ ໝົດ ໃນ Lord of the Rings. ແທນທີ່ຈະຕ້ອງຈື່ ຈຳ syntax ສຳ ລັບແຕ່ລະຮວບຮວມ, ທັງ ໝົດ ທີ່ທ່ານຕ້ອງຈື່ແມ່ນ ຄຳ ສັ່ງ dtrx.
ຕົວຢ່າງ, ຂ້ອຍຕ້ອງການທີ່ຈະສະກັດເອກະສານເກັບໄວ້ທີ່ເອີ້ນວ່າ“ tecmint27-12-2013.gz“, ຂ້ອຍພຽງແຕ່ປະຕິບັດ ຄຳ ສັ່ງ dtrx ໂດຍບໍ່ຕ້ອງໃຊ້ທຸງໃດໆ.
dtrx tecmint27-12-2013.gz
ນອກ ເໜືອ ຈາກການເຮັດໃຫ້ການສະກັດເອົາງ່າຍຂື້ນ, ມັນມີຫລາຍໆຕົວເລືອກອື່ນເຊັ່ນການສະກັດເອກະສານໄປຍັງໂຟນເດີແລະການສະກັດເອົາເອກະສານອື່ນໆທັງ ໝົດ ພາຍໃນບ່ອນເກັບມ້ຽນທີ່ໄດ້ຮັບ.
ພິຈາລະນາວ່າທ່ານມີເອກະສານ“ dtrAll.zip“, ເຊິ່ງປະກອບດ້ວຍ dtr1.zip, dtr2.zip ແລະ dtr3.zip ແຕ່ລະອັນປະກອບດ້ວຍ dtr1, dtr2 ແລະ dtr3 ຕາມ ລຳ ດັບ. ແທນທີ່ຈະຕ້ອງສະກັດ zip dtrAll ດ້ວຍຕົນເອງກ່ອນແລະຫຼັງຈາກນັ້ນສະກັດເອົາແຕ່ລະ dtr1, dtr2 ແລະ dtr3 ທ່ານສາມາດສະກັດເອົາມັນໂດຍກົງໃນໂຟນເດີຕ່າງໆໂດຍການໃຊ້ dtrx ແລະໂດຍການເລືອກຕົວເລືອກ "a", ມັນຈະສະກັດທັງ ໝົດ ຂອງແຟ້ມ zip ຄືນ ໃໝ່.
dtrx dtrAll.zip
dtrx: WARNING: extracting /root/dtrAll.zip to dtrAll.1 dtrAll.zip contains 3 other archive file(s), out of 3 file(s) total. You can: * _A_lways extract included archives during this session * extract included archives this _O_nce * choose _N_ot to extract included archives this once * ne_V_er extract included archives during this session * _L_ist included archives What do you want to do? (a/o/N/v/l) a
ຫຼັງຈາກ, ການສະກັດເອົາ, ເນື້ອໃນຂອງໄດເລກະທໍລີທີ່ສະກັດສາມາດກວດສອບໄດ້ໂດຍໃຊ້ ຄຳ ສັ່ງ ls.
cd dtrAll ls dtr1 dtr1.zip dtr2 dtr2.zip dtr3 dtr3.zip
ບອກວ່າທ່ານຕ້ອງການທີ່ຈະສະກັດເອົາເອກະສານເກັບຂໍ້ມູນ ທຳ ອິດແລະບໍ່ແມ່ນບ່ອນເກັບມ້ຽນທີ່ເກັບໄວ້ຢູ່ໃນນັ້ນ. ໂດຍການເລືອກ N, ມັນພຽງແຕ່ສະກັດເອົາຮວບຮວມທີ່ມອບໃຫ້ແລະບໍ່ແມ່ນເອກະສານເກັບມ້ຽນອື່ນໆທີ່ຢູ່ໃນນັ້ນ.
dtrx dtrAll.zip
dtrx: WARNING: extracting /root/dtrAll.zip to dtrAll.1 dtrAll.zip contains 3 other archive file(s), out of 3 file(s) total. You can: * _A_lways extract included archives during this session * extract included archives this _O_nce * choose _N_ot to extract included archives this once * ne_V_er extract included archives during this session * _L_ist included archives What do you want to do? (a/o/N/v/l) N
ເນື້ອໃນຂອງໄດເລກະທໍລີທີ່ສະກັດສາມາດກວດສອບໄດ້ໂດຍໃຊ້ ຄຳ ສັ່ງ ls ດັ່ງທີ່ສະແດງໄວ້.
cd dtrAll ls dtr1.zip dtr2.zip dtr3.zip
ເພື່ອສະກັດຊັ້ນແຕ່ລະຮວບຮວມພາຍໃນຮວບຮວມຕາມແຕ່ລະກໍລະນີ i.e. , ຖ້າທ່ານຕ້ອງການທີ່ຈະສະກັດເອົາຊັ້ນ 2 ຂອງບ່ອນເກັບມ້ຽນແຕ່ບໍ່ແມ່ນຊັ້ນທີ 3, ທ່ານສາມາດໃຊ້ຕົວເລືອກ "o".
ພິຈາລະນາວ່າທ່ານມີແຟ້ມ zip "dtrNewAll.zip", ເຊິ່ງມີ "dtrAll.zip" ແລະ "dtrNew" ຍ້ອນວ່າມັນເປັນເນື້ອໃນ. ໃນປັດຈຸບັນຖ້າທ່ານຕ້ອງການສະກັດເນື້ອຫາຂອງ "dtrNewAll" ແລະ "dtrAll" ເຊັ່ນດຽວກັນແຕ່ບໍ່ແມ່ນຂອງ dtr1.zip, dtr2.zip ແລະ dtr3.zip, ທ່ານສາມາດໃຊ້ຕົວເລືອກ "o" ແລະ "n" ດັ່ງທີ່ສະແດງຢູ່ຂ້າງລຸ່ມ.
# dtrx dtrNewAll.zip
dtrNewAll.zip contains 1 other archive file(s), out of 2 file(s) total. You can: * _A_lways extract included archives during this session * extract included archives this _O_nce * choose _N_ot to extract included archives this once * ne_V_er extract included archives during this session * _L_ist included archives What do you want to do? (a/o/N/v/l) o
dtrAll.zip contains 3 other archive file(s), out of 3 file(s) total. You can: * _A_lways extract included archives during this session * extract included archives this _O_nce * choose _N_ot to extract included archives this once * ne_V_er extract included archives during this session * _L_ist included archives What do you want to do? (a/o/N/v/l) n
ເນື້ອໃນຂອງໄດເລກະທໍລີທີ່ສະກັດສາມາດກວດສອບໄດ້ໂດຍໃຊ້ ຄຳ ສັ່ງ ls ດັ່ງທີ່ສະແດງໄວ້.
cd dtrNewAll ls dtrAll dtrAll.zip dtrNew
cd dtrAll ls dtr1.zip dtr2.zip dtr3.zip
ພວກເຮົາເລືອກຕົວເລືອກ“ o” ກ່ອນເຊິ່ງ ໝາຍ ຄວາມວ່າເອກະສານເກັບຂໍ້ມູນທັງ ໝົດ ພາຍໃນ dtrNewAll ຈະຖືກສະກັດເອົາ. ຕໍ່ມາພວກເຮົາເລືອກຕົວເລືອກ“ n” ສຳ ລັບ dtrAll.zip ເຊິ່ງ ໝາຍ ຄວາມວ່າເອກະສານເກັບຂໍ້ມູນພາຍໃນມັນ dtr1.zip, dtr2.zip ແລະ dtr3.zip ຈະບໍ່ຖືກສະກັດ.
ຕົວເລືອກ "-m" ສະກັດຂໍ້ມູນ meta ຈາກ .deb, .rpm ແລະ .gem ຮວບຮວມ, ແທນທີ່ຈະເປັນເນື້ອຫາ ທຳ ມະດາ. ນີ້ແມ່ນຕົວຢ່າງຂອງ ຄຳ ສັ່ງ.
dtrx -m openfire_3.8.2_all.deb dtrx -m openfire-3.8.2-1.i386.rpm
ls conffiles control md5sums postinst postrm prerm
ມີຕົວເລືອກ dtrx ຫຼາຍທີ່ຈະ ສຳ ຫຼວດ, ພຽງແຕ່ ດຳ ເນີນການ“ dtrx –help” ເພື່ອບອກຕົວເລືອກທີ່ມີຢູ່.
dtrx --help Usage: dtrx [options] archive [archive2 ...] Intelligent archive extractor Options: --version show program's version number and exit -h, --help show this help message and exit -l, -t, --list, --table list contents of archives on standard output -m, --metadata extract metadata from a .deb/.gem -r, --recursive extract archives contained in the ones listed -n, --noninteractive don't ask how to handle special cases -o, --overwrite overwrite any existing target output -f, --flat, --no-directory extract everything to the current directory -v, --verbose be verbose/print debugging information -q, --quiet suppress warning/error messages
ລິ້ງອ້າງອີງ
ຫນ້າທໍາອິດ dtrx
ຂ້າພະເຈົ້າຄິດວ່າທ່ານຕ້ອງພະຍາຍາມ dtrx, ເພາະວ່າມັນແມ່ນເຄື່ອງມືເສັ້ນ ຄຳ ສັ່ງທີ່ມີປະສິດທິພາບເທົ່ານັ້ນທີ່ໃຫ້ ຄຳ ສັ່ງ ໜຶ່ງ ດຽວເພື່ອ ທຳ ລາຍທຸກຮູບແບບຂອງເອກະສານເກັບ. ນັ້ນແມ່ນ ສຳ ລັບຕອນນີ້, ແລະຢ່າລືມຝາກຈົດ ໝາຍ ຂອງທ່ານໄວ້ໃນສ່ວນ ຄຳ ເຫັນ.