Go Back   MacRumors Forums > Apple Applications > Mac Applications and Mac App Store

Reply
 
Thread Tools Search this Thread Display Modes
Old Feb 8, 2013, 10:03 AM   #1
TallDoug
macrumors newbie
 
Join Date: Jan 2013
Location: Gainesville, VA, USA
Use Terminal to move between dirs on Network Storage

I am new to MacRumors (this is my first post - not sure if this is the right area) and I need help using Terminal to access a directory on my NAS (Synology drive).

I am familiar with how to move around directories on a PC but have not been able to use Terminal to navigate around directories / folders on my NAS. I can use Finder to view all the Folders on my Synology drive but need Terminal so that I can document all the files / folders in a particular folder including the file / folder details.

I want to use Terminal's ability to output a csv file containing the details on all the files and folders within a folder that I can import into Excel.

I have hundreds of folders that I want to be able to see the folder creation date.

Using Terminal I have been able to reach a SHARED folder on the NAS but can not step down one level to a folder inside the SHARED folder.

I have been searching on Google and have found the Terminal commands to produce the file but can not find out how to locate the folder with the folders in it that I need.

This is the file structure captured within Windows Explorer:
\\DISKSTATION\Shared\MOVE TO HERE

MOVE TO HERE is my primary repository for my files and folders.

I have tried various queries trying to find some information about how to use Terminal to access and move around a NAS with out success.

Thank you for your help.

Doug Cameron
TallDoug is offline   0 Reply With Quote
Old Feb 8, 2013, 10:17 AM   #2
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
There is nothing special about a NAS hosted file system. You change directories using the exact same command as local directories. NAS will be mounted as it's volume name in /Volumes. cd <directory name> will change to the directory. Spaces need to be escaped with \ or enclosed in "". So if your NAS was mounted as Shared you could do:

Code:
cd /Volumes/Shared/MOVE\ TO\ HERE
or
Code:
cd "/Volumes/Shared/MOVE TO HERE"
robbieduncan is offline   0 Reply With Quote
Old Feb 8, 2013, 11:22 AM   #3
LPZ
macrumors 65816
 
Join Date: Jul 2006
Quote:
Originally Posted by TallDoug View Post
I am new to MacRumors (this is my first post - not sure if this is the right area) and I need help using Terminal to access a directory on my NAS (Synology drive).

I am familiar with how to move around directories on a PC but have not been able to use Terminal to navigate around directories / folders on my NAS. I can use Finder to view all the Folders on my Synology drive but need Terminal so that I can document all the files / folders in a particular folder including the file / folder details.

I want to use Terminal's ability to output a csv file containing the details on all the files and folders within a folder that I can import into Excel.

I have hundreds of folders that I want to be able to see the folder creation date.

Using Terminal I have been able to reach a SHARED folder on the NAS but can not step down one level to a folder inside the SHARED folder.

I have been searching on Google and have found the Terminal commands to produce the file but can not find out how to locate the folder with the folders in it that I need.

This is the file structure captured within Windows Explorer:
\\DISKSTATION\Shared\MOVE TO HERE

MOVE TO HERE is my primary repository for my files and folders.

I have tried various queries trying to find some information about how to use Terminal to access and move around a NAS with out success.

Thank you for your help.

Doug Cameron
In Terminal, type cd and an extra space or two. Don't press return. Then simply drag the icon for the folder you want and drop it in the Terminal window. The folder will not actually be moved, but its path will be appended to the cd command (and all spaces should be properly escaped automatically). Then press return. This works for me.
LPZ is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Applications > Mac Applications and Mac App Store

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
G5 as network attached storage? Beliblis PowerPC Macs 5 Jun 27, 2013 04:39 PM
Move Users folder to network drive Jexta OS X 10.8 Mountain Lion 0 Jan 31, 2013 11:07 PM
Seagate or WD network storage hajime Buying Tips and Advice 0 Dec 9, 2012 11:32 AM
Terminal - move all files named... Aikiman Mac Programming 4 Nov 13, 2012 04:49 PM
Network Storage Advice Needed! Sam Hodgson Mac Peripherals 2 Sep 28, 2012 06:27 AM

Forum Jump

All times are GMT -5. The time now is 08:50 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC