Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have what I think is called an IP alias, which is used to access a Windows file server from a Unix server. The path on Unix looks something like:

/folder/file.txt

which is somehow resolved as:

\\server\folder\file.txt

This is used within an ftp command from a SAS program running on Unix. I know very little about Unix, but I believe the alias is configured on Unix itself (not by the SAS server). As a normal (non-root) user, is there a way of looking up this alias and seeing the IP address it refers to? Or even better, a list of aliases and their IP addresses?

Perhaps I'm using the wrong terminology? My Google searches have turned up command aliases, but otherwise I've found very little helpful information.

(I originally asked this on SU, but didn't get an answer: http://superuser.com/q/561921/113542)

share|improve this question
    
@MichaelMrozek unfortunely it's too old to migrate now. –  Sathya May 17 '13 at 2:38
    
@Sathya Ah, yes, that feature is...awesome. Well, you guys can close or not I guess –  Michael Mrozek May 17 '13 at 3:10
    
@MichaelMrozek - Did my best to correct the situation. The answerer below copied his/her answer to the original question. Perhaps delete this one? This is a really clunky UX and its frustrating to have overlapping sites. –  JDB May 18 '13 at 4:35
    
@Cyborgx37 It's fine, I forgot about the whole "can't migrate if the post is old thing", so reposting is pretty much all you could do if you wanted the question here –  Michael Mrozek May 18 '13 at 4:50
add comment

1 Answer

Unix lets you mount filesystems, including remote filesystems, under directories on your system. This is similar to the way you can attach a remote filesystem as a drive on your windows machine, e.g. creating a Z: that refers to \\server\folder. Instead of using drive letters, we have directories that refer to filesystems. So /folder could be a remote mount of a shared folder on the Windows file server, i.e. \\server\folder. Run the mount command, it will show you currently mounted filesystems, including remote ones. Also, do cat /etc/fstab and look for a line like

//192.168.0.244/Public  /networkstorage cifs    rw,user,noauto,guest  0 0

where //192.168.0.244/Public stands for \\192.168.0.244\Public and /networkstorage is the "mountpoint", the place in the Unix filesystem where the remote filesystem is attached.

IP aliases are something entirely different. Command aliases are not what you want either.

share|improve this answer
    
Hey... so I accidentally made the mods mad by cross posting. Would you mind copy/pasting your answer to SU for me? ... I'll upvote it there as well, then delete this question. superuser.com/q/561921/113542 –  JDB May 17 '13 at 3:45
    
mount gave me a list, but it does not include the mounts that I use in the SAS program. I don't have access to /etc/fstab. Clearly I'll need to work this out with the admins. Thanks though. –  JDB May 17 '13 at 13:23
    
Hi Cyborgx37, I copied it over. Good luck sorting your problem out, it is unusual that mount didn't give you what you needed. –  wingedsubmariner May 17 '13 at 23:23
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.