עזרה | חילוץ קובץ zip לתיקייה . - לינוקס, Mac ומערכות הפעלה אחרות - HWzone פורומים
עבור לתוכן
  • צור חשבון

עזרה | חילוץ קובץ zip לתיקייה .


alon2k2

Recommended Posts

שלום,

יש לי קובץ zip בשרת שנמצא בתוך תיקיית public_html עכשיו אני רוצה לחלץ את הקבצים לתיקייה 123 מבלי להעביר אותו לתיקייה ואז לחלץ אלה ישירות זה אפשרי ?

אני כעיקרון צריך או פקודה ב php או ftp או ssh2 אחד מאלה פקודה שבעצם מבצעת את מה שאמרתי .

קישור לתוכן
שתף באתרים אחרים

אוקיי, אז מה בדיוק הבעיה?

תנווט למיקום של הקובץ ותבצע unzip עם הפרמטרים שאתה צריך.

בקישור לman שנתתי לך (שאתה יכול לראות גם בשרת, אגב) בדיוק כתוב לך איך לבצע extract לdirecotry חדש:

[-d exdir]

An optional directory to which to extract files. By default, all files and subdirectories are recreated in the current directory; the -d option allows extraction in an arbitrary directory (always assuming one has permission to write to the directory). This option need not appear at the end of the command line; it is also accepted before the zipfile specification (with the normal options), immediately after the zipfile specification, or between the file(s) and the -x option. The option and directory may be concatenated without any white space between them, but note that this may cause normal shell behavior to be suppressed. In particular, ``-d ~'' (tilde) is expanded by Unix C shells into the name of the user's home directory, but ``-d~'' is treated as a literal subdirectory ``~'' of the current directory.

קישור לתוכן
שתף באתרים אחרים

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

×
  • צור חדש...