I can open another terminal from a terminal with this command:

open -a terminal

Also, I can start a terminal at a specified directory

open -a terminal ~/Desktop 

I intend to make the computer do it automatically after I power on the machine. How do I accomplish this?

  • I'm not sure if it's the most elegant way, but you could make an Automator Application with this command and set the app to open on startup by adding it to the login items in System Preferences. – Joonas Nov 20 '17 at 6:13

I would do this in two steps:

  1. Open terminal on log-in

    To do this, go to Apple menu > System Preferences > Users & Groups > Login Items and add terminal there.

  2. Run a specific command when terminal is launched

    Open Terminal, go to Settings > Profile > Shell and in the first box write the command that you want terminal to run. In your case something like cd ~/Desktop.


Enable auto-login, create a .sh script that does what you want and then add it to the startup items of the user that gets automatically logged in. If there's no concern about security that's how I might do it.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .