LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Define ROOTDIR , / (https://www.linuxquestions.org/questions/linux-software-2/define-rootdir-4175586114/)

klong915 08-02-2016 03:47 PM

Define ROOTDIR , /
 
Hi,
I would like to open a terminal like xterm or mintty and establish the root directory for that session of ksh or bash. Such that "/" or root can be defined to be of your choosing, .ie "/" = C: or C:/somedir. How do I do this. cygwin does this but I don't see how it's done.
Thanks,
Keith

chrism01 08-03-2016 02:37 AM

If(!) this is actually on Linux, then it doesn't work that way.
*nix does not use C:, D: etc.. All dirs are in one dir tree which subsumes all disks...
Perhaps you could explain a bit more exactly what you you want to do and why - there is probably a better more Unixy way.
There is such a thing as chroot, but its a bit non-trivial and possibly not what you need.

RockDoctor 08-03-2016 10:56 AM

For mate-terminal, the command you want may be:
Code:

mate-terminal --working-directory=<dirname>
Not sure about other terminal programs, but should be similar. For specifics:
Code:

man <your-terminal-program>

rtmistler 08-03-2016 12:20 PM

A symbolic link sounds like the solution here.


All times are GMT -5. The time now is 06:57 PM.