0
votes
0answers
38 views

Copy symbolic link using install command?

Is there a way I can copy a symbolic link (as a symbolic link instead of the target file) using the install command? I have a slink in /home/user1/files/link.txt. I need to copy link.txt (which is a ...
3
votes
1answer
52 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 ...
10
votes
3answers
4k 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
54 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
291 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
156 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
602 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
481 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
402 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
1k 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
1k 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
529 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?
6
votes
1answer
4k 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
233 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
498 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
568 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 ...
5
votes
3answers
13k 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
1k 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"?