LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-02-2016, 04:47 PM   #1
klong915
LQ Newbie
 
Registered: Aug 2016
Posts: 2

Rep: Reputation: Disabled
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
 
Old 08-03-2016, 03:37 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,949

Rep: Reputation: 2634Reputation: 2634Reputation: 2634Reputation: 2634Reputation: 2634Reputation: 2634Reputation: 2634Reputation: 2634Reputation: 2634Reputation: 2634Reputation: 2634
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.
 
Old 08-03-2016, 11:56 AM   #3
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,780

Rep: Reputation: 425Reputation: 425Reputation: 425Reputation: 425Reputation: 425
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>
 
Old 08-03-2016, 01:20 PM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,457
Blog Entries: 13

Rep: Reputation: 4552Reputation: 4552Reputation: 4552Reputation: 4552Reputation: 4552Reputation: 4552Reputation: 4552Reputation: 4552Reputation: 4552Reputation: 4552Reputation: 4552
A symbolic link sounds like the solution here.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I define a unique label in a #define macro? schmitta Programming 1 05-08-2014 08:23 AM
[SOLVED] #define in C++ ravishekhar.82 Programming 12 04-06-2010 08:03 AM
Help with a #define Wynd Programming 4 04-22-2007 04:30 PM
define jhon Linux - Networking 2 08-30-2004 08:42 PM
named daemon variable ${ROOTDIR} in init.d does not allow zones to be read r00tnuke Red Hat 0 01-24-2004 06:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration