Kostas Krevatas

Coding for fun

If you are not a coder, developer or programmer you'll get bored in here

  • Download CV
  • Contact Me
  • Useful Tools
    • Online convertors
    • Graphics
  • 4Fun
  • Coding
    • WordPress
    • Html
    • CSS
    • Jquery / Javascript
    • PHP
    • Mysql
    • Prestashop
    • Git
  • Server
    • Apache
    • Htaccess
  • Articles

Tags

Address Field AniJS Awesomeplete Bacon Js Bootbox Js bootstrap compressor compressors ContextMenu Js Cropper css css compressor Dgrid ElementTransitions Js errors Facbeox facebook fontawesome headers htaccess html html compressor html minifier linux linux commands meta metatags mysql online compressor online html compressor online minifiers overflow password pdf phpmyadmin plugin redirect tags tar command tar untar ubuntu unzip update wordpress zip

TAR command to preserve file permissions

By Konstantinos Krevatas in Linux, Server November 12, 2014

Compress folder to folder.tar.gz:

tar -pcvzf file.tar.gz folder

Uncompress:

Just switch the ‘c’ flag to an ‘x’ to extract

tar -pxvzf file.tar.gz -C destination_folder 

Cheatsheet:

p == preserve permissions
c == create archive
v == verbose (print names while making tar)
z == gzip
f == tar file name

 

As read on: www.futurequest.net

Tags linuxlinux commandstar commandtar untarubuntu
Online Password Generators
zip-unzip on the unix command line
Proudly powered by WordPress. Theme: DW Minion by DesignWall.