Friday, July 24, 2009

Unzip or decompress multiple zips or archives in a folder

Lets face this sittuation when you have a large no of zips or rar files or tar files in a directory. You want to unzip all of them in one go...
For unzipping multiple zip files in a directory use this command (first change to that directory).

$unzip '*.zip'

those quotes are necessary.. it prevents the shell from expanding the wild characters..

Now if you want to untar large no of files use

$tar -xvf  '*.tar'

How to Find Inode Count in your system.

Each File and directory on you hardisk counts 1 inode. Now if you are using a webhost if you need to find no of files occupying you hosting account here is the code. This works only if you have shell access.

find . -printf "%i\n" | sort -u | wc -l

you can also use the following instead of above


find * -print | wc -l

Wednesday, December 31, 2008

How to install Extensions in Openoffice.org

To install extension in openoffice first go to (click on image below to go to site) Extension Section of Open Office Website.


Download the extension you want by searching on that website and copy it to any folder which you will not be deleting.

No open any one of the openoffice.org applications.

Go to Tools---> Extension Manager as shown in figure


Now click on add in the extension manager window.


Now select the downloaded extension file and click on open.

Now you can see you extension installed. Check for versions for which the extensions are valid before downloading

Friday, December 26, 2008

Cropping Images using GIMP

Steps for cropping or cutting parts of image using gimp in Linux

1) Open the image in gimp



2) Select the cropping button as shown in figure or go to tools-->transform tools --> crop


3) Select the area of the image you want to crop


4) Click Inside the selected area and you will see the crop image and save it.

Wget Cheat Sheet

Action Command
Download file wget http://link-to-file
Resumable Downloads wget -c http://link-to-file
Download Entire Website wget -r http://link-to-site
Download Only PDFs from a page wget -A.pdf -r -l1 -nd --no-parent http://link-to-webpage
Download Only mp3 files from a page wget -A.mp3 -r -l1 -nd --no-parent http://link-to-webpage
Donot Download mp3 files from a page wget -R.mp3 -r -l1 -nd --no-parent http://link-to-webpage
Ignore robots.txt wget -erobots=off http://link-to-fileordirectory
Limit download Speed in kbps wget --limit-rate=20 http://url-to-fileorwebsite
Mask as firefox or act as firefox wget -U Mozilla http://your-link-to/file

Thursday, December 25, 2008

Text Web Browsers in Linux

These are the text webbrowsers in linux. That means you can search web or surf the net using these. You can also view html from console using these text browsers. Here is the list

w3m
This is one of the simplest internet browsers you have seen..


Then we have links. This is sibling of w3m


Elinks. IT is a bit more complicated that links & w3m and has commanline user interface.


Lynx
This webbrowser is suggested by google to simulate web spider.

Scaling Images using GIMP

Use GIMP to scale images in linux. Gimp is user friendly and very easy to use.
Scaling or resizing images in gimp is an easy task.
1) Open the image in gimp


2) Click on the scale button and click on image scale button gimp

or go to Image --> Scale as shown in figure



You will see the options as below. Now change the size you want to scale the original image and click on save button. Now save the image.