Thursday, December 10, 2009

How to change target of a symbolic link ?

dandyrandy


Is it possible to change the target of a symbolic link?

What I currently have is:
/home/Data1
/home/Data2
/home/Stores

In the Stores directory, I did: ln -s /home/Data1 /home/Stores/abc
$ pwd
/home/Stores
$ ls -latr
lrwxrwxrwx 1 dandy dandy 46 Feb 12 16:38 abc -> /home/Data1

I want to now change that target to:
abc -> /home/Data2

BUT, I don't want to do have to delete the link and re-create it to the new target. I just want to rename/change/modify the target. Is it possible?


fimblo

I normally delete the symlink and re-create it on one line, minimizing the time the link does not exist:

rm mysymlink ; ln -s mytargetfile mysymlink

I suppose you could write a little hack which does it in one go, but I've never heard of one which is included in standard POSIX systems...

shamrock

ln -s /home/Data1 /home/Stores/abc
ln -f -s /home/Data2 /home/Stores/abc


see:- http://en.wikibooks.org/wiki/LPI_Linux_Certification/Create_&_Change_Hard_&_Symbolic_Links

Wednesday, December 9, 2009

Monday, November 30, 2009

How to do everything with dd command

http://www.linuxquestions.org/linux/answers/Applications_GUI_Multimedia/How_To_Do_Eveything_With_DD

Tuesday, November 24, 2009

install flock in ubuntu

1) download flock from here:- http://flock.com/versions

2) Right-click on the file you downloaded Flock. Select Extract here and then the desktop will display a folder called 'flock'.

3) Use the root access
zodiac@zodioc:~$ sudo nautilus

4) move flock directory to /opt
To test whether you have correctly installed flock then run the following command from a terminal:
zodiac@zodioc: ~ $ /opt/flock/flock-browser


5) Create link

Now you create a link to the flock so that programs can be run by the user. Type the following command in a terminal:
zodiac@zodioc: sudo ln-s /opt/flock/flock-browser /usr/bin/flock-browser

6) Create shortcut

In order to create a shortcut flock, be it in the menu bar or desktop, follow these steps:

System - Preferences - Main Menu

In the Applications menu on the left you select Internet and then click New Item is located on the right.

Fill in the blank boxes with information such as the following:

Type: Application
Name: Flock
Command: flock-browser
Comment: Flock Browse


NB:- Tested on ubuntu 9.04, jaunty

allmyapps.com