I am trying to tar a directory structure. but unable to do due to a symbolic link. Please help
indomt@behpux $ tar -cvf test.tar /home/indomt
a /home/indomt symbolic link to /dxdv/03/ap1dm1
Can someone help create a symbolic link where I append my own string to the name of the link?
I have my code mounted as an sshfs in my home directory, but the hierarchy is difficult to remember, so I created a symlink in my home directory leading to that directory.
I'm thinking no...
I simulated all cases in a test folder:
a b c/ d@ e@ f@
/tmp/test# file *
d: symbolic link to `c'
e: symbolic link to `a'
f: broken symbolic link to `nofile'
Now I can check, if a file exists and is a symbolic link with -L
for file in *; do
if [[ -L "$file" ]]; then echo "$file is a symlink"; else echo "$file is not a symlink"; fi
I am trying to make symbolic link:
ln -s /home/application /application
where /home/application is NFS mounted file. I got follwing error:
ln: creating symbolic link `application': No such file or directory even in su mode.
I have a symbolic link formerly pointing to a Dropbox directory.
Quote:EDIT: the /home directory already exists. Can I make a symbolic link to/from a directory that already exists?In ... [by TrevorH]
I have a symbolic link to a file in one directory. I would like to have that same link in another directory. How do I copy a symbolic link?
I tried to cp the symbolic link but this copies the file it points to instead of the symbolic link itself.
For a given directory tree in linux, I want to list:
all directories ,
all symbolic links to directories
not directories found by following a symbolic link.
Consider an empty directory, and execute
ln -s a c
echo "x" > f1
ln -s f1 f2
Then find . -type d gives
and so misses the symbolic link ./c, wheras find .