New answers tagged

2

No. Symbolic links will continue pointing to the same location and become dangling symlinks. To make them point to the new location you can either remove them and recreate them correctly or make a double indirection: create symlinks from the current location of the tools to the new one so that the symlinks in /usr/local/bin continue to point (though ...


2

Your file stills there. You only changed the file's path and name since you only execute mv and not rm command. Your original file must be in /fullchain.pem. You moved the fullchain.pem file from its original path /etc/letsencrypt/live/fullchain.pem to / that's why you can't see it any more in the main. Just execute $ mv /fullchain.pem ...


2

You have created an "infinite loop" with a softlink that points to itself. You may have mixed up the arguments to ln. Since the second argument to ln is an existing directory, it will create a softlink with the same "base name" as the first argument, inside that directory. So you create a softlink ROOT which points to ROOT. When trying to resolve this you ...


2

Basically, the section 8.12.4 Using Symbolic Links is advising you that it is possible to make the database-directory (such as /var/lib/mysql) a symbolic link to another location with more space. With Ubuntu, you can do that, or you could make /dev/sdb mounted on /var/lib/mysql. A mountpoint may be (slightly) more efficient. Either way, to migrate your ...


0

I think you're reading too much into the symlink. httpd will not look if you have files that are symlinks to files that are called index.html in either case. It looks for a file named index.html in your DocumentRoot. The FollowSymLinks is needed when such a file exists and is a symlink. (Imagine if, by accident or malice, a symlink to say, /etc/passwd or ...


0

To search ALL links, this worked for me: find -L . -name \*.txt


0

For *.so search: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:your_lib_dir For executable search: export PATH=$PATH:your_executable_dir I think this two environment variable is enough.


6

Set the mark-symlinked-directories readline option. The usual way to do this is to edit ~/.inputrc, put set mark-symlinked-directories on in there, then start a new bash shell (or press Ctrl+X Ctrl+R to reload your readline settings). Less commonly, you could also put it straight in your ~/.bashrc like this bind 'set mark-symlinked-directories on'


0

Symlinks With absolute paths does not work on a cifs share. Try to remake them using relative paths. (e.g. in your case: cd f:\dir mklink file2symlink file


1

A rewrite to reduce duplication #!/bin/bash # Make script executable with: chmod u+x brew.sh # Ask for the administrator password upfront. sudo -v # Keep-alive: update existing `sudo` time stamp until the script has finished. while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & # Create '.other'-folder echo "--> ...


3

Programs using dot files for configuration expect them to live directly in your home directory. Symlinks can indeed help with this. What you want to do can be achieved by moving your dot file to the required sub-directory (.dotfiles or .other in your example) and then symlinking the file you just moved into your home directory. Example (code to run from ...


1

On Unix, everything is a file descriptor. In this case, "everything" includes normal files, directories, partitions (e.g. /dev/sda1), devices (e.g. /dev/sda), virtual devices (e.g. /dev/null) and symlinks. But what is a "file descriptor" in this case? It's an entry in your file system root, pointing to the data location on your disk or in the memory (for ...


3

readlink expects a symbolic link, and then displays the file/dir that symbolic link points to. in your first attempt: it sees the symbolic link, so it displays what it points to in your second attempt: it sees music/., which is Music/. which is the pointed directory, not the symbolic link pointing to that directory, so it doesn't have a link to interpret. ...


0

ln -s /cygdrive/c ./C: Thanks! @St├ęphaneChazelas I posted this under my own account so this question would have an answer not buried in the comments. This is after I just discovered my own question while googling it :S



Top 50 recent answers are included