Friday, February 26, 2010

Copy directory in Unix

To copy the whole directory in Unix, I used the following command

cp -R /home/yogesh/sourceDir /home/yogesh/destinationDir

Share directory between Ubuntu guest and Windows host using Virtualbox

In order to mount shared folder for Ubuntu guest with Windows host using VirtualBox I used the following commands

sudo mkdir /mnt/windir
sudo mount.vboxsf shared /mnt/windir

In virtual box seetings, I created shared path as c:\virtual\shared and folder name is shared.

Tuesday, February 16, 2010

Ubuntu Server proxy settings

Ubuntu Server http proxy seetings I found inside file at

/etc/apt/apt.conf

Using grep command recursively

I used following command on Ubuntu server to find specific string under directories recursively, where /etc/ is root path under which I am interested to search.

grep -r 'myString' /etc/

Monday, February 08, 2010

Set HTTP proxy under Ubuntu server

In order to set proxy globally on Ubuntu sever, I added following line to /etc/bash.bashrc file.

export http_proxy="http://serverName:8080"