Archive for the ‘Linux’ Category

Hard link: – Hard link is the mirror copy of original file – Same inode number for both Hard link and the original file – Even if you delete any of the file, noting will happen to other file – Hard link is not allowed for directory – UNIX or Linux does not allow creating hard [...]

How to set Java heap size in Tomcat

Posted: August 27, 2010 in Linux

Most of the time you may get ‘OutOfMemoryError’ when you run Tomcat application.  This is because your default tomcat heap size is small or it is not enough for your web applications. To set the java heap size, follow the below steps: – Stop Tomcat server – run the following command export CATALINA_OPTS=”-Xms256m -Xmx512m” or [...]

Creating a playlist for mplayer

Posted: February 28, 2008 in Linux

Use the below command to add the .mp3 files in a giving directory to your playlist for mplayer. Or add complete path of your music files in myplaylist.txt (one per line). $ find [/path/to/directory/] -name “*.mp3″ -print > myplaylist.txt Now use the mplayer command with a -playlist extension to play the music files. $ mplayer [...]

Change the default text editor in Linux

Posted: February 28, 2008 in Linux

To change the text editor from vi/vim to pico Find the binary path of pico # which pico /usr/bin/pico Now setup a new text editor by executing the command # export EDITOR=/usr/bin/pico OR # export EDITOR=pico Add the above line in /etc/bashrc Also we can add alias in the file /root/.bashrc alias vi=/usr/bin/pico thats all