Compress Files in Shell
Level 250 keystrokes
tar packs the current directory into a gzip-compressed archive, excluding node_modules.
Shell code
# -c create, -z compress with gzip, -v list each file, -f name of the archive# Archives the current directory (.) into backup.tar.gz, skipping node_modules1tar -czvf backup.tar.gz --exclude='node_modules' .Output
./src/ ./src/index.js ./package.json ./README.md
Practice typing this code. Results are not recorded in the rankings.
Symbols in this code
The symbols you type in this Shell code and how often they appear.
-× 3.× 3'× 2_× 1=× 1