NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Newsat11
Sep 23, 2015Luminary
Finding Readynas file structure
I am using SSH to move a file to a directory where I can edit it and then move out back. Everytime I us the ls. command in the root directory nothing is returned, therefore I can't see the potential directory to move it to. Can anyone help me with the file structure on a Readynas OS6 unit?
try entering
cd //
after you log in.
4 Replies
Replies have been turned off for this discussion
- StephenBGuru - Experienced User
try entering
cd //
after you log in.
- Newsat11Luminary
Thanks again. One last question that my SSH training didn't cover. Do I want to move the file to an accessible share then move it back after it has been edited, or do I want to copy it then copy it back? If I use the copy function with the file automatically overwrite the previous version or is there something I need to be aware of?
- StephenBGuru - Experienced User
Start by making a local copy (same folder), just in case.
for instance
cp filename filename.orig
Then copy the file to the share, edit it, and then copy it back. Check the owner/group and permissions (ls -al) after you copy back. You can change the owner/group with chown and chgrp. chmod will let you change permissions. You can find linux man pages for all of those commands pretty easily.
With Windows, you need to be careful to use notepad++ and preserve linux text format conventions. That's not an issue on the Mac.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!