LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to remove folder redirection (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-remove-folder-redirection-4175487136/)

eclecticdude21 12-06-2013 04:34 PM

How to remove folder redirection
 
When I do ls -l data for directory data, I see this
lrwxrwxrwx 1 1257 sftop 37 Apr 6 2005 data > /usr/test/softfac/

I am wondering what is data > /usr/test/softfac/ and how can I remove > /usr/test/softfac/ . When I try to access data directory through fileZilla, it get redirected somewhere else instead of showing it's content, I want to get rid of it.
Thanks

descendant_command 12-06-2013 05:13 PM

data is a symlink to /usr/test/softfac/

you can remove it by 'rm data'

CincinnatiKid 12-06-2013 05:25 PM

Quote:

Originally Posted by eclecticdude21 (Post 5076661)
When I do ls -l data for directory data, I see this
lrwxrwxrwx 1 1257 sftop 37 Apr 6 2005 data > /usr/test/softfac/

I am wondering what is data > /usr/test/softfac/ and how can I remove > /usr/test/softfac/ . When I try to access data directory through fileZilla, it get redirected somewhere else instead of showing it's content, I want to get rid of it.
Thanks

The reason you are "redirected" is because it is a symbolic link. In Windows term, this would kind of be like a shortcut. For example, if you click on a shortcut for Filezilla that is on your desktop, you will be "redirected" to the filezilla program.

haertig 12-06-2013 05:45 PM

Quote:

Originally Posted by eclecticdude21 (Post 5076661)
I am wondering what is data > /usr/test/softfac/ and how can I remove > /usr/test/softfac/ .

If you don't know what it is, why do you want to remove it? Since this is apparently your first post to LQ.org (welcome, BTW!) I would assume that you are a new Linux user. My advice to a new user would be to NOT remove things that you don't yet understand.

eclecticdude21 12-06-2013 06:36 PM

Quote:

Originally Posted by haertig (Post 5076696)
If you don't know what it is, why do you want to remove it? Since this is apparently your first post to LQ.org (welcome, BTW!) I would assume that you are a new Linux user. My advice to a new user would be to NOT remove things that you don't yet understand.

I don't want to delete folder 'data', I just want to remove the system link to /usr/test/softfac. If someone can guide me how to remove the link, I would really appreciate it.

haertig 12-06-2013 10:23 PM

descendant_command gave you the exact command to do that in his post (the first reply in this thread).

selfprogrammed 12-07-2013 05:19 PM

You don't have a directory named data.
Your data directory is /usr/test/softfac (indirectly).

As said, to remove the symlink, without doing anything to /usr/test/softfac.
>> rm data

To put it back again after you discover that was the wrong thing to do.
>> ln -s /usr/test/softfac data

If you delete the directory /usr/test/softfac, the symlink data will be a broken link and will not work anymore. This cannot be easily fixed, unless you saved the /usr/test/softfac and put it back again.

Why it is setup this way is not obvious, but there usually was a reason.
You should first determine if the reason no longer applies.
It would probably be safer to just a different name than data for filezilla.
Alternatively rename the thing until you figure it out.
>> mv data data_softfac


All times are GMT -5. The time now is 11:34 PM.