Lesson 6-2
Terminal
This is the program you should be familiar with by now, it's the black and grey window that you can use to navigate directories and compile files. I don't think there is more to say about it, given that it is the scope of this website more or less.
I will include a section about terminal commands at the end of this text for you to reference. They will help a lot for when you navigate the world of terminal and unlock many uses that you may not have thought of using terminal for. First up, let's learn how to open up a connection to a server in terminal.
Opening a connection in terminal
- Locate terminal on your Macintosh. It is already installed on your machine.
- Type in the command ssh username@domain.com and click return.
- Type in your password and click return.
- You should see some sort of welcome message, as well as on the bottom left, a line that says [yourUsername@theServer ~]$.This area is where you will input commands.
- For security reasons, it is crucial that you log out from a remote connection when you are done working. To close a connection, simply type in logout or just close the terminal window.
IU students: For you, it will be your IU username @silo.luddy.indiana.edu
IU students: For you, it will be your IU passphrase. You will have to complete duo authentication before proceeding to step 3.
The way this window works is that it uses your current position in the hard drive to allow you to do things with files in that directory. If you want to go to the desktop, you'd type cd Desktop/ when you first open terminal, and for each directory you go down, add a "/" to the command.
Please see 8-3 for an extensive list of commands you can use in Terminal.
Let's now review what we have learned in the next section.