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

generate zip file terminal

zip -r directory.zip directory
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 :: switch user in windows 10 
Shell :: how to zip and unzip tar 
Shell :: install v2ray 
Shell :: git diff two commits 
Shell :: how to avoid nginx not found 404 error ubuntu react app 
Shell :: ssh key 
Shell :: how to get out of branch git 
Shell :: how to kill all emulator 
Shell :: relaunch doc macos 
Shell :: right click touchpad ubuntu budgie 
Shell :: linux add user to group 
Shell :: docker image add tag 
Shell :: install rstudio ubuntu 20.04 
Shell :: $$ in shell script 
Shell :: install python 3.10 on raspberry pi 
Shell :: install vscodium 
Shell :: Bash print elements in array 
Shell :: ubuntu vs kali linux 
Shell :: npm vs yarn command 
Shell :: ubuntu change user 
Shell :: linux command line search file by size 
Shell :: github pages is not free 
Shell :: luarocks 
Shell :: github oauth 2 
Shell :: godaddy ssl integration to the ubuntu apache 
Shell :: remove all files in a directory linux that match pattern 
Shell :: why i am not able to paste anything in htdocs folder in ubuntu 
Shell :: use a specific version of node 
Shell :: python convert excel to html table 
Shell :: linux create user with homedir 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =