Posts Tagged ‘ubuntu’

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
Vers : 9.04

Sometimes when you plug in a flash drive or a usb in ubuntu it will not load instant, and you have to restart the computer to recognise the newly usb device. Try this to escape time wasting procedure

First try

$ sudo /etc/init.d/hal restart

then

$ lsusb

Now you should see the new added USB drive

Nothing selected
Nothing selected

OS : Ubuntu
#banner TEST

screenshot-4

$ sudo apt-get install toilet

toilet

$ sudo apt-get install figlet

figlet