FaLee

2025-11-24 - Using Unzip Command

Nov 23rd, 2025 (edited)
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. 1. Unzip multiple files using wildcards:
  2. To unzip multiple ZIP files in the same folder using a wildcard:
  3. ---------------------------
  4. unzip \*.zip
  5. ---------------------------
  6.  
  7. 2. Unzip a file to a specific directory:
  8. To extract the contents of a ZIP file to a different directory, use the -d option followed by the path to the destination directory:
  9. Code
  10.  
  11. unzip filename.zip -d /path/to/destination/directory
  12. Example:
  13. To unzip myarchive.zip into the /home/user/documents folder:
  14. Code
  15. ----------------------------------------------------
  16. unzip myarchive.zip -d /home/user/documents
  17. ----------------------------------------------------
  18.  
  19.  
  20.  
Advertisement
Add Comment
Please, Sign In to add comment