I use command line a lot, like most programmers.  I want to be able to launch Finder, Safari or any other application for that matter from command line e.g.      finder .   where it will start Finder app, and the set the view to the current folder that I am in at the command line.
123993
If I am in a specific path in a Terminal window, how can I open that same window in a new Finder window?   Note: This is the opposite of .
8197
I'm really new to Mac OSX and UNIX based systems. I wanted to run a few Windows games on my Mac Mini so I started installing Wine and MacPorts. I think the installs are correct, but when I type sudo port install wine I see a not found error in my terminal. I tried other basic commands like say and clear and all of them return the same not found error. My research shows that my PATH might be incorrectly set, but it lacks steps I can implement. Specifically, I ran this command: echo $PATH and it returned:  /opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin  I'm a complete newbie to mac and have no idea where .bash_profile or any of those files are. My skills let me install Xcode and the Command Line tools for Xcode and I sense I need to level up on path management. At this point I need help managing my dot files and changing my path to fix these specific errors on Mountain Lion. What are my next steps?
43318
Update: The link below does not have a complete answer. Having to set the path or variable in two places (one for GUI and one for shell) is lame.  Not Duplicate of:     Coming from a Windows background where it's very easy to set and modify environment variables (just go to System Properties > Advanced > Environment Variables), it does not seem to be that straight forward on Mac OS 10.5. Most references say I should update /etc/profile or ~/.profile. Are those the equivalent of System Variables and User Variables? For example, where should I set my JAVA_HOME variable?    EDIT:  I want to be able to access the variable from the terminal as well as an app like Eclipse. Also, I hope I don't have to restart/logout to make this take effect.
97701
I have a Python script I recently wrote that I call using the command line with some options. I now want a very thin web interface to call this script locally on my Mac.  I don't want to go through the minor trouble of installing mod_python or mod_wsgi on my Mac, so I was just going to do a system() or popen() from PHP to call the Python script.  Any better ideas? Thanks in advance!
36903
How can I make a Click-once deployed app run a startup?  The best option I found by searching was to set the Publisher on the app to Startup, so the Start menu shortcut would be placed in the Startup folder, but that seems like a huge hack and I would like there to be a Start menu icon people can find.  What options do I have?
67072
I recently switched from Ubuntu, and I was feeling very comfortable with using Ctrl + Alt + T to launch terminal. Can I assign Shift + Cmd + T to do the same thing in Yosemite? Specifically, I want a new terminal window to be opened.
121025
I would like to be able to choose any already-open window and minimize it from the command line. Is this possible?
64012
I have a Python script which I would like to execute at every startup. I can run it by adding this to the startup applications:  python3 /path/to/script.py   That works, but it doesn't open a terminal window, so I can't see the program's output. How could I make it open a terminal window and execute the script in there?  Note: I get the window to stay open with input(' ') at the end of the Python script. Thanks!
45007
I often use the Cmd+Tab shortcut to switch between different applications (for example: Xcode and Google Chrome), but is there a shortcut to switch between different windows of the same application (for example, from one window in Google Chrome, to another)?
60564
How can I restart X Window Server from the command line?  I'd really like to be able to restart my GUI without having to do a full system reboot.
81133
I am new to Ubuntu.  Whenever I open a terminal my current working directory /home/Varun (as found by typing pwd).  Is there any way I can make the terminal's path to be set as /home/Varun/Desktop/Java Files when it opens?
45307
Is there a way to hide certain apps from cmd+tab?  The problem I'm facing is that I have some apps (like iTunes and of course Finder) always open. But when I'm working and switching between apps that are relevant for me (Chrome, Sublime, Terminal) with cmd+tab I'll always see these 'irrelevant' apps in the menu.  Thanks
112535
In previous OS versions one could set the system-wide PATH environment variable in /etc/launchd.conf to make it available for all apps (not just the command line).  In Mavericks this appears to be no longer used.  Is there another technique for doing this in mavericks?
61971
When I'm working in a folder in Windows Explorer, sometimes I have a need to run some CMD command in this folder.  How do I open the command line from a current folder, so the console opens in the current directory?  Example:  I work in D:\Apps\Test. I would like to have a possibility to open a command prompt with the same context (meaning: D:\Apps\Test), so I don't have to navigate to this folder again within a console, ie. so it opens cd'd to the current location.  EDIT: The solutions from  do not work for me, what's why I asked a separate question.
18702
After following , I cannot launch Sublime Text from command line. How can I fix this?
122442
I want to make a  program that can be run as a CLI or GUI application depending on what flags are passed into it. Can this be done?  I have found these related questions, but they don't exactly cover my situation:
123348
I quite like using full-screen apps on OSX Mavericks (Safari, iTunes, Mail, etc).  I'd like all apps that are capable of running full-screen to launch in full-screen mode automatically, instead of me having to press Ctrl-Cmd-F each time, is that possible?