LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   managing directories of multiple linux OSs simultaneously from command line (https://www.linuxquestions.org/questions/linux-newbie-8/managing-directories-of-multiple-linux-oss-simultaneously-from-command-line-4175465814/)

textillis 06-13-2013 03:01 AM

managing directories of multiple linux OSs simultaneously from command line
 
Hi folks,
Can one globally manage contents of one's entire hard drive from command line?

It seems that I can access and manage things from file manager up to a point;
I was wondering if the Command line offered greater depth of control over wider range of file management commands.

Put concretely: can i, say, open and edit a file using vim while in mint OS on sda1, when the file in question is in a directory in my slackware OS on sda2?

Thanks for help

evo2 06-13-2013 03:33 AM

Hi,
Quote:

Originally Posted by textillis (Post 4970825)
Hi folks,
Can one globally manage contents of one's entire hard drive from command line?

Yes.

Quote:

It seems that I can access and manage things from file manager up to a point;
I was wondering if the Command line offered greater depth of control over wider range of file management commands.
Sorry, I can't really comment on specifics since I don't use file managers, but I'd be amazed if there were any file managers that offered the full set of features available on the command line.

Quote:

Put concretely: can i, say, open and edit a file using vim while in mint OS on sda1, when the file in question is in a directory in my slackware OS on sda2?
Yes. What exactly is the problem? Have you mounted /dev/sda2 while running your mint install?
eg
Code:

mount -t ext3 /dev/sda2 /mnt
vi /mnt/path/to/slackfile.txt

Cheers,

Evo2.

textillis 06-13-2013 07:35 AM

Quote:

Originally Posted by evo2 (Post 4970840)
Hi,

Yes.


Sorry, I can't really comment on specifics since I don't use file managers, but I'd be amazed if there were any file managers that offered the full set of features available on the command line.


Yes. What exactly is the problem? Have you mounted /dev/sda2 while running your mint install?
eg
Code:

mount -t ext3 /dev/sda2 /mnt
vi /mnt/path/to/slackfile.txt

Cheers,

Evo2.

No problem: was simply seeking precisely the kind of commands you offer here but didn't know how to execute them, as I am a beginner at command line.

Thanks kindly.

chrism01 06-13-2013 07:46 AM

You'll find this very helpful http://rute.2038bug.com/index.html.gz

textillis 06-13-2013 09:38 AM

Quote:

Originally Posted by chrism01 (Post 4970943)
You'll find this very helpful http://rute.2038bug.com/index.html.gz

This is sooooo timely!
Just the ticket, Chris: thanks heaps
(I'm wading in ankles deep already!)
: 0 )

chrism01 06-13-2013 07:20 PM

Its a great tutorial. :)
You may want these for ref later
http://tldp.org/LDP/Bash-Beginners-G...tml/index.html
http://www.tldp.org/LDP/abs/html/
http://mywiki.wooledge.org/
http://www.grymoire.com/Unix/ - particularly for the awk & sed tutorials.

Don't try to swallow the lot in one go or your head will explode! :)


All times are GMT -5. The time now is 08:07 AM.