Archiving and Searching Files
Archiving Commands
zip
zip /tmp/backup-notes.zip words.txt words2.txt
ls -l /tmp/
-rw-rw-r-- 1 user user 499 ago 28 20:11 backup-notes.zip
zip -r /tmp/backup-dirs.zip dir1 dir2
# -r option must be used to include the files in the sub-directoriesunzip
# List archive files without extracting anything.
unzip -l /tmp/backup-notes.zip
Archive: /tmp/backup-notes.zip
Length Date Time Name
--------- ---------- ----- ----
128 2022-08-28 19:27 words.txt
87 2022-08-28 19:35 words2.txt
--------- -------
215 2 filestar
gzip
Searching Commands
find
locate
which
whereis
Last updated