Posts Tagged ‘bash’
OS :Ubuntu
To create the archive of a directory : gzip compression: -c = Create -v = Verbosely list files processed -z = Filter the archive through gzip -p = Preserve Permissions ( extract all protection information) -f = Use archive file or device F
$ tar -pvczf BackUpDirectory.tar.gz /path/to/directory
I use this when i don`t want to transfer via FTP . My real example . 15000 files . 2 minutes to create the archive, 36 seconds to wget to the other server and 2 minutes to extract the archive.
Now to extract the archive : -x, –extract, –get
extract files from an archive
-v, --verbose verbosely list files processed-z, --gzip, --gunzip, --ungzip filter the archive through gzip-f, --file [HOSTNAME:]F use archive file or device F (default "-", meaning stdin/stdout)
$ tar -xvzf BackUpDirectory.tar.gz
OS : Ubuntu
#banner TEST

$ sudo apt-get install toilet

$ sudo apt-get install figlet

Os : Ubuntu
Step 1 : Press ALT+2
Step 2 Paste “sudo apt-get install yakuake”
Step 3 : After you type the password and press “Y”
Step 4 : gnome system => preferences => sessions => Startup Programs tab, and click Add, then just enter: yakuake