Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi guys. I have a /data and /backup. on backup there is a folder called Info that has a bunch of data on it, but its not shared through Samba. So what I'm thinking is that on one of my Samba shares on data there is a folder which is really just a link to that /backup/Info folder. Is there an easy way to search through /data to see if there's a link to it, or do i have to manually go through and do a ton of ls's?
find is a notoriously difficult command to master and its man page is not an easy introduction (although it is an impeccably correct reference). As a result there are lots of web pages about using find but I have not yet found one which explains how find works. Mostly they just give HOWTO examples of common tasks which is fine until you want to do something different and need to master find to use its immense power and flexibility.
You mentioned samba but that's for mounting Linux file systems on Windows in which case symlinks are meaningless on the Windows system. Do we need to know about your samba setup to understand the problem or is the problem within a Linux environment and just happens to be about a file system which is shared by samba?
My problem is that nobody can tell me anything about that Info folder I have. So I was taking a guess and thinking that maybe there was a folder on one of my Samaba shares on /data which people dropped files into, but it was really a link putting the files in /backup/Info instead, maybe to save space on /data.
If I do a ls in every single directory under /data that is shared out through samba I could see this probably, but that would take me hours of manual work.
Do you mean that /data is shared via Samba and that client systems (probably Windows) users are putting files in a directory on the share which directory is actually a symlink to /backup/Info so the files end up in /backup/Info?
So what you want to do is find symlinks on /data that point to /backup/Info? If that is correct then Samba is irrelevant to the question. Or have I not understood yet?
You have it right. I want to find symlinks on /data that point to /backup/Info. Samba isn't part of the problem, was just giving some background so you understood the situation/setup.
The files have the same owner and group as those on some of the samba shares on data. it was either that or someone did a copy of hte files from the server as that user, but nobody here knows.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.