LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-06-2013, 04:34 PM   #1
eclecticdude21
LQ Newbie
 
Registered: Dec 2013
Posts: 2

Rep: Reputation: Disabled
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
 
Old 12-06-2013, 05:13 PM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
data is a symlink to /usr/test/softfac/

you can remove it by 'rm data'
 
Old 12-06-2013, 05:25 PM   #3
CincinnatiKid
Member
 
Registered: Jul 2010
Posts: 454

Rep: Reputation: 47
Quote:
Originally Posted by eclecticdude21 View Post
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.
 
Old 12-06-2013, 05:45 PM   #4
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Quote:
Originally Posted by eclecticdude21 View Post
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.
 
Old 12-06-2013, 06:36 PM   #5
eclecticdude21
LQ Newbie
 
Registered: Dec 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by haertig View Post
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.
 
Old 12-06-2013, 10:23 PM   #6
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
descendant_command gave you the exact command to do that in his post (the first reply in this thread).
 
Old 12-07-2013, 05:19 PM   #7
selfprogrammed
Member
 
Registered: Jan 2010
Location: Minnesota, USA
Distribution: Slackware 13.37, 14.2, 15.0
Posts: 635

Rep: Reputation: 154Reputation: 154
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

Last edited by selfprogrammed; 12-07-2013 at 05:23 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mod_rewrite help with folder redirection sir-lancealot Linux - Server 2 11-22-2013 09:28 AM
Linux Samba Server Folder Redirection jedilost1 Linux - Newbie 2 10-21-2008 11:42 AM
Samba Server Folder Redirection jedilost1 Linux - Server 2 10-19-2008 05:30 AM
Samba Ldap Roaming Profiles + Folder Redirection lramos85 Linux - Networking 1 11-17-2006 01:52 PM
Samba, roaming profiles, user access, printing and folder redirection... GD_19 Linux - Networking 1 08-30-2005 01:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration