3
votes
1answer
49 views

Move a file and all of its symlinks

For the icon themes I'm developing, I have different files with a different number of symlinks placed in different folders. Here is an example of one of them: FlatWoken/FlatWoken/scalable/apps$ find ...
7
votes
2answers
616 views

How to find and list all the symbolic links created for a particular file?

I had created many symbolic links on various paths for a particular file or a directory. I want the whole list of created symbolic links paths (location). Example: I created symbolic links for ...
1
vote
1answer
36 views

How to make the path of a symbolically linked directory the exactly the path of the original directory?

I have created a symbolic link on my desktop that links to my /var/www/wordpress dir via $ ln -s /var/www/wordpress/ ~/Desktop/wordpress-link When I open bash and cd into ~/Desktop/wordpress-link I ...
3
votes
4answers
161 views

Is it safe to place symlinks in /bin directory ?

I have many command line tools that I use frequently. I was using the normal method to traverse till the complete path of that command through terminal and then did ./command-name BUT this is a ...
1
vote
1answer
118 views

Is a shortcut and symbolic link the same? If not, how do I create a shortcut?

I found this link on Wikipedia: http://en.wikipedia.org/wiki/Symbolic_link According to them Symlinks are not really shortcuts. I had the need to create a shortcut to a program on the Desktop and I ...
1
vote
2answers
345 views

Delete directory by referencing symbolic link

To set up the question, imagine this scenario: mkdir ~/temp cd ~/ ln -s temp temporary rm -rf temporary, rm -f temporary, and rm temporary each will remove the symbolic link but leave the directory ...
12
votes
4answers
391 views

Restore 'cd ..' functionality after following a symbolic link

If I create a symbolic link in the terminal with a command like ln -s /path/to/some/directory symbolicLink and then follow the link with cd symbolicLink the terminal appears to think that the cwd ...
0
votes
3answers
250 views

Question about the symlink of the ln command

Can anybody give me an example why should we use the symlink kind of the "ln" command between files? I know that when you create symlink file, that file size is very small and it redirect to the main ...
2
votes
1answer
881 views

How can I make a symbolic link to run a program with command line argument?

How can I make a symbolic link to run a program with command line argument? For example, I want to run sample with -i eth0 argument every time when I click on a symbol link.
0
votes
2answers
665 views

Unfortunately Deleted /usr/bin/python

Unfortunately I deleted the /usr/bin/python in my ubuntu 12.04 I went to /usr/bin/ and run ls -al then I got lrwxrwxrwx 1 root root 64 Jul 13 14:58 python -> ...
1
vote
2answers
480 views

show the target of current directory(symbolic link)

I'm in directory ~/a which is a symbolic link to ~/b/c. My prompt looks like: ~/a$ But I hope to cd to ~/b/c. ~/a$ cd . ~/a$ It doesn't work. What's the right way?
5
votes
1answer
3k views

Can't change destination of symbolic link

I want to change the destination of an existing symbolic link, without removing the link or the old destination. I have previously created a symbolic link to a directory such as follows : $ cd ...
1
vote
1answer
215 views

find . -type l says missing argument

I want to find all symbolic links in the current directory and below. Therefore, I used: find . -type l Running that clears the screen showing "Pattern not found (press RETURN)" at the bottom of ...
2
votes
1answer
460 views

Changing symlinks does not work for directories

In order to change a symbolic link, one can use the -fs option to eliminate the need to unlink or delete the old link first. However, trying to do so on directories does not seem to work: $ mkdir ...
5
votes
1answer
494 views

How to move files leaving symlinks behind?

How can I move/copy files from one directory to another, leaving the symlinks in the original directory. I know the ln -screates symlinks in the destination, but I want to leave the symlinks in the ...
4
votes
3answers
11k views

How to check whether ln -s created a symbolic link or a hard link?

I'm trying to create a symbolic link with ln -s old.file new.file but ln seems to stubbornly create hardlinks instead. For instance, when I move the link to another folder, it becomes broken. What's ...
6
votes
2answers
962 views

How can I create an alias so that when I enter “kt” it executes “killall gnome-terminal”?

How can I create an alias so that when I enter "kt" it executes "killall gnome-terminal"?