Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

terminal zip

# to compress
tar -zcvf archive_name.tar.gz folder_to_compress
# to extract
tar -zxvf archive_name.tar.gz

# the "v" flag is for verbose and is not required
Comment

zip a file terminal

gzip test.txt
Comment

zip file in terminal

echo "<h1><center> This will bve zipped</h2></center>" > index.html # create file 
cat index.html # just confirming the file is created and has content in it
zip index.zip index.html # this command will creaed a zipped version on the file index.html

Comment

PREVIOUS NEXT
Code Example
Shell :: create r anaconda environment 
Shell :: awk get second column from command output 
Shell :: git reload .gitignore file 
Shell :: where is my .git config mac 
Shell :: remove root permission from folder 
Shell :: alpine linux install lsof 
Shell :: readline/readline.h: No such file or directory 
Shell :: how to remove git history for a file 
Shell :: how to search all subfolders in linux for file 
Shell :: mkdir: /data/db: Read-only file system 
Shell :: brew install iterm2 
Shell :: how upgrade notebook with conda command 
Shell :: alternative to installonair 
Shell :: connect to hidden network linux 
Shell :: git revert all local changes 
Shell :: docker clear build cache 
Shell :: how to recover from git stash 
Shell :: clean up untagged docker images 
Shell :: install xrdp ubuntu 18.04 
Shell :: linux find multiple filenames 
Shell :: Fix the upstream dependency conflict, or retry 
Shell :: gcloud disable interactive prompts 
Shell :: awk only first six letters 
Shell :: install calliope on mac 
Shell :: create alias ubuntu 
Shell :: delete non empty directory 
Shell :: how to uninstall vscode from terminal ubuntu 
Shell :: ufw allow ssh 
Shell :: microPY lib 
Shell :: which service using port 80 command 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =