LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 03: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, 02:37 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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, 10:56 AM   #3
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
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, 12:20 PM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

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


Reply



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 07:23 AM
[SOLVED] #define in C++ ravishekhar.82 Programming 12 04-06-2010 07:03 AM
Help with a #define Wynd Programming 4 04-22-2007 03:30 PM
define jhon Linux - Networking 2 08-30-2004 07:42 PM
named daemon variable ${ROOTDIR} in init.d does not allow zones to be read r00tnuke Red Hat 0 01-24-2004 05:08 PM

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

All times are GMT -5. The time now is 02:41 PM.

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