Notices

Overclockers Forums > Software > Alternative Operating Systems
Alternative Operating Systems Linux, Mac, Unix Operating Systems and Applications
Forum Jump

Mac OS X

Post Reply New Thread Subscribe Search this Thread
 
 
Thread Tools
Old 08-18-04, 11:20 AM Thread Starter   #1
Frodo Baggins
Member



Join Date: Aug 2001
Location: City of Dreaming Spires

 
Mac OS X


I need some quick help to get some work done. I usually compile and run my programs on a PC, but here at my lab, I have to do all my work on a Mac (OS X). The problem is that I have to direct my programs to a certain directory, but I have NO IDEA how the directories work on this Mac.

For example, in Windows, I would simply state "C:\myworkdir\andsoforth\"

But I have no idea what is going on with my Mac here. What I can do is show you what the Terminal looks like within my directory, so you can show me the path I need to use:

Code:
Welcome to Darwin!
[macdonald:~/Ego] trinh%
trinh is my user name, and /Ego is the directory where my files are held. What path would I use for my java programs?
Frodo Baggins is offline   QUOTE Thanks
Old 08-18-04, 01:42 PM   #2
fiji
Member

 
fiji's Avatar 

Join Date: Jul 2002
Location: berlin

 
well if osx is somewhat similar to linux

~/ <--- means your users home directory, not the root of the drive


so you could try ~/Ego


also if you want your full home user directory location

type
*example*

tom@gentoo tom $ file ~/
/home/tom/: directory
tom@gentoo tom $


here my home directory is /home/tom
and where you want to save the files (if your home dir was /home/tom)
would be /home/tom/Ego

__________________
---AthlonIIx4 4GBDDR3 NV9800GT---

running Win7x64
fiji is offline   QUOTE Thanks
Old 08-18-04, 02:34 PM   #3
Titan386
Senior Member

 
Titan386's Avatar 

Join Date: Jun 2002

 
I usually put my code inside the src/ directory, which I put in my home directory. So, to set it up like that, you could do:

mkdir ~/src
cd ~/src

Now you are inside the src directory. I like to have seperate directories for each project, so do that, the steps are similar:

mkdir ~/src/someproject
cd ~/src/someproject

And repeat that for each project you want a directory for.

Here is a listing of unix terminal commands that you might find useful coming from a Windows environment:
http://www.yolinux.com/TUTORIALS/uni...dos_users.html
Titan386 is offline   QUOTE Thanks
Old 08-18-04, 02:41 PM   #4
kaltag
Senior Member

 
kaltag's Avatar 

Join Date: Jul 2002
Location: Boise Idaho

10 Year Badge
 
the absolute path would be
/Users/trinh/Ego
Remember that unix/linux are case sensitive so use capitalization where appropriate

__________________
`______
/l ,[____],
l---L –0lllllll0-
()_) ()_)--o-)_)
kaltag is offline   QUOTE Thanks
Old 08-18-04, 05:02 PM Thread Starter   #5
Frodo Baggins
Member



Join Date: Aug 2001
Location: City of Dreaming Spires

 
Thanks guys, got it
Frodo Baggins is offline   QUOTE Thanks

Post Reply New Thread Subscribe


Overclockers Forums > Software > Alternative Operating Systems
Alternative Operating Systems Linux, Mac, Unix Operating Systems and Applications
Forum Jump

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Mobile Skin
All times are GMT -5. The time now is 11:32 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
You can add these icons by updating your profile information to include your Heatware ID, Benching Profile ID or your Folding/SETI profile ID. Edit your profile!
X

Welcome to Overclockers.com

Create your username to jump into the discussion!

New members like you have made this the best community on the Internet since 1998!


(4 digit year)

Why Join Us?

  • Share experience
  • Max out your hardware
  • Best forum members anywhere
  • Customized forum experience

Already a member?