Tag Archives: Linux

convert tab to space (vim)

:set expandtab tabstop=4 shiftwidth=4

Install Java Runtime Environment on Ubuntu 12.04

To install the Oracle version of JRE and JDK, you should update your PPA to add this new repository:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update

And then install it ! =)

sudo apt-get install oracle-java7-installer

untar files on terminal

tar -C path/to/folder -zxvf file.tar.gz

Install .deb package on terminal

sudo dpkg -i path/to/package.deb

zip files on terminal

zip -r /path/to/filename.zip /path/where/the/files/are/placed/

svn ignore

1 – go to folder where your files are placed

2 – Edit the properties for the current directory

svn propedit svn:ignore .

3 – Add the files or patterns ex:

Ignores all .conf files on the current directory


4 – Save your file (^X if you’re using nano)

5 – Confirm what you did (you can skip this)

You can see your property

svn propget svn:ignore .

You should see an ‘I’ next to the ignored files

svn status --no-ignore

6 – Commit your changes

svn commit -m 'svn ignore'

Now you can ask:
- Ok, but if I want to undo these changes or add some new files or patterns?

I say: Easy!

- If you and to add new files or patterns: Repeat all above steps (1 – 6)

If you want do undo these changes, you need to go to your directory and type:

svn propdel svn:ignore

chmod recursive on terminal

chmod permissionsettings dirname* -R

unrar files on linux ubuntu

sudo apt-get install unrar
unrar x file.rar

php.ini on ubuntu


Add all unversioned files to svn

Run this command on terminal

svn status | grep '?' | sed 's/^.* /svn add /' | bash

and after you can run this

svn commit -m 'Comments'
Page 1 of 212