Q.
A. To use unzip to extract all members of the archive letters.zip into the current directory and subdirectories below it, creating any subdirectories as necessary:
unzip letters
To extract all members of letters.zip into the current directory only:
unzip -j letters
To test letters.zip, printing only a summary message indicating whether the archive is OK or not:
unzip -tq letters
To test all zipfiles in the current directory, printing only the summaries:
unzip -tq \*.zip
unzip letters
To extract all members of letters.zip into the current directory only:
unzip -j letters
To test letters.zip, printing only a summary message indicating whether the archive is OK or not:
unzip -tq letters
To test all zipfiles in the current directory, printing only the summaries:
unzip -tq \*.zip
Linux Web Server Unzipped files, now cannot overwrite?
Q. I have root access. Had unzipped some files using "unzip filename.zip". Now when I wish to overwrite some of the files using a normal FTP program, it tells me "access denied". I can't change the permissions using the FTP program.
I have SSH access.
I have forgotten the command that resets all the files to NORMAL (like it would be if uploaded using normal FTP). Could someone please tell me the command to reset all the files and folders as if it were uploaded by a normal FTP program?
I have SSH access.
I have forgotten the command that resets all the files to NORMAL (like it would be if uploaded using normal FTP). Could someone please tell me the command to reset all the files and folders as if it were uploaded by a normal FTP program?
A. do a man chmod
chmod 755 filename usually should do the trick.
RJ
chmod 755 filename usually should do the trick.
RJ
Linux's unzip command...?
Q. I've been doing some work updating files on my minecraft server and all the Y pressing for yes to replace existing files is annoying, especially since I still have a lot to go. So here's my question, how would the below be modified to unzip the file as it does now but append Y to all the replaces automatically ?
unzip dynmap-0.39-bin.zip
@Canidog: That did the trick, got all the inflating messages without the added replace etc messages !
unzip dynmap-0.39-bin.zip
@Canidog: That did the trick, got all the inflating messages without the added replace etc messages !
A. unzip -o dynmap-0.39-bin.zip
The -o switch enables forceful overwrite, which will overwrite existing files without prompt.
The -o switch enables forceful overwrite, which will overwrite existing files without prompt.
Powered by Yahoo! Answers
No comments:
Post a Comment