Terminal use question - how to access directories start from the hard disk
I am learning the terminal and do not know how to do this:
access the directories of my hard disk from the terminal
eg: cd /MacintoshHD/Games/
can this be done and if so how can I do it?
access the directories of my hard disk from the terminal
eg: cd /MacintoshHD/Games/
can this be done and if so how can I do it?
*does it 5 seconds later*
man I'm such a meathead
man I'm such a meathead
Also, if you have several different partitions and/or drives, look in /Volumes
Another stupid question
how do you represent spaces when searching through directories?
open /games/Mine Swept/
opens at /games/Mine:
how do you represent spaces when searching through directories?
open /games/Mine Swept/
opens at /games/Mine:
open /games/Mine\ Swept/
If you hate doing that, and you're using Bash as your shell (10.3 and above, or manually configured below), just hit tab to autocomplete.
for instance, type "open /games/Min(TAB)" and it will fill in the rest. Very handy.
for instance, type "open /games/Min(TAB)" and it will fill in the rest. Very handy.
Of course, if the folder is already visible in the Finder, just drag it to the Terminal window, it will paste its path.
Also fyi you can drag any file or folder on top of the terminal window and Terminal.app will insert the full path.
neato, thanks guys
Byron Clarke Wrote:Another stupid question
how do you represent spaces when searching through directories?
open /games/Mine Swept/
opens at /games/Mine:
Hey, that's my game.
The brains and fingers behind Malarkey Software (plus caretaker of the world's two brattiest felines).
Or you can put the path in quotes, and you won't have to escape the spaces.
-malarkey-
lol my shareware $ is still in the mail :-) great job with the app. I have one complaint though (a small bug in the program maybe)
when you flag all of the mines, you still have to click all of the spaces before it acknowledges the win. adds a lot of time if you're going for the high score.
other than that its perfect
lol my shareware $ is still in the mail :-) great job with the app. I have one complaint though (a small bug in the program maybe)
when you flag all of the mines, you still have to click all of the spaces before it acknowledges the win. adds a lot of time if you're going for the high score.
other than that its perfect
Byron Clarke Wrote:-malarkey-
lol my shareware $ is still in the mail :-) great job with the app. I have one complaint though (a small bug in the program maybe)
when you flag all of the mines, you still have to click all of the spaces before it acknowledges the win. adds a lot of time if you're going for the high score.
other than that its perfect
Really?
I'm pretty sure that's not the case since I have code specifically in there to check when you have all the mines flagged and to end the game right there. I'll check it out, though.Edit: Nope, you're right. It's a bug. Good catch.

Edit: Oh wait, it's not a bug, it's a feature.
The reason it's that way is because if the game ends when you correctly flag all the mines without revealing all the squares, it becomes easy to cheat the last mine by marking and unmarking mines until the game ends.
The brains and fingers behind Malarkey Software (plus caretaker of the world's two brattiest felines).
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Hard drives | Carlos Camacho | 5 | 3,102 |
Mar 4, 2010 03:22 PM Last Post: SethWillits |
|
| iPhone’s Very Own Credit Card Terminal | michelle2010 | 0 | 1,816 |
Jan 11, 2010 10:59 AM Last Post: michelle2010 |
|
| Replacing MacBook Pro Hard Drive | BeyondCloister | 4 | 3,122 |
Dec 27, 2008 09:58 AM Last Post: BeyondCloister |
|
| ^D in terminal causes logout | unknown | 6 | 3,553 |
Jun 20, 2007 01:34 PM Last Post: Skorche |
|
| Terminal/bash one liners | unknown | 10 | 4,757 |
Apr 19, 2007 01:48 AM Last Post: unknown |
|

