โดย mindphp » 09/01/2010 2:53 am
แตกไฟล์ zip, tar, gz, tgz, .tar.gz ผ่าน SSH บน Linux Ubuntu
เข้าไปใน path ย่อยที่ต้องการ
cd /big/dom/xdomain/www/directory/ {enter}
เปลี่ยน Path เป็นที่เก็บไฟล์ของเราเอง หรือถ้าไม่เปลี่ยนก็สามารถใช้คำสั่ง ระบุแบบ Full Path ได้
ถ้าไฟล์นามสกุล .zip (for example, file.zip), type:
ถ้าไฟล์นามสกุล .tar (e.g., file.tar), ใช้คำสั่ง:
ถ้าไฟล์นามสกุล .gz (for example, file.gz), type:
ถ้าไฟล์นามสกุล .tar.gz (e.g. file.tar.gz), type:
แล้วแจก ไฟล์อีกรอบ
ถ้าไฟล์นามสกุล .tgz (e.g. file.tgz), type:
ศึกษาเพิ่มเติมได้ที่หมวดนี้ โลกของ Linux
https://www.mindphp.com/%E0%B8%9A%E0%B8 ... sting.html
ubuntu,
directory,
linux
[b]แตกไฟล์ zip, tar, gz, tgz, .tar.gz ผ่าน SSH บน Linux Ubuntu[/b]
เข้าไปใน path ย่อยที่ต้องการ
cd /big/dom/xdomain/www/directory/ {enter}
เปลี่ยน Path เป็นที่เก็บไฟล์ของเราเอง หรือถ้าไม่เปลี่ยนก็สามารถใช้คำสั่ง ระบุแบบ Full Path ได้
ถ้าไฟล์นามสกุล .zip (for example, file.zip), type:
[code]unzip file.zip[/code]
ถ้าไฟล์นามสกุล .tar (e.g., file.tar), ใช้คำสั่ง:
[code]tar -xvf file.tar[/code]
ถ้าไฟล์นามสกุล .gz (for example, file.gz), type:
[code]gzip -d file.gz[/code]
ถ้าไฟล์นามสกุล .tar.gz (e.g. file.tar.gz), type:
[code]gzip -d file.tar.gz[/code]
แล้วแจก ไฟล์อีกรอบ
[code]tar -xvf file.tar[/code]
ถ้าไฟล์นามสกุล .tgz (e.g. file.tgz), type:
[code]tar -xvzf file.tgz [/code]
ศึกษาเพิ่มเติมได้ที่หมวดนี้ โลกของ Linux
https://www.mindphp.com/%E0%B8%9A%E0%B8%97%E0%B8%84%E0%B8%A7%E0%B8%B2%E0%B8%A1/66-server-hosting.html
[mtag]ubuntu[/mtag], [mtag]directory[/mtag], [mtag]linux[/mtag]