Explaining The Terminal Welcome Screen 3

Terminal

Explaining The Terminal Welcome Screen

Hey

A couple of days ago I received an email asking me to explain Terminal’s welcome screen. For new users this can be quite confusing and many wonder what each parts mean. This post is going to be a quick introduction on what each line means and way it is there. I will also have a couple of links to posts explaining each part in more detail. If you have any questions please leave a comment below.

When you start Terminal you should see something like this.

Terminal Screen Shot

or

Last login: Sat Jan 16 18:34:23 on ttys000
Welcome James
dyn240089:~ James$

The first line:

Last login: Sat Jan 16 18:34:23 on ttys000

is all about when you last logged into your Terminal, this can be semi useful if you use remote login or similar to see when the last log in was. Most of the time I ignore it since I can never remember when I last used Terminal.

The final part ttys000 is the Terminal you have logged into. It comes from when computers were a lot slower and older. You can find more information over on this Computer Terminal wiki page. The ttys, starts at zero and increases as you open more Terminal windows.

The second line:

Welcome James

is you message of the day. I can’t remember the original how ever you can change it by following this post. You could add something witty, or reduce the amount of space on screen by deleting any of the text.

The final line:

dyn240089:~ James$

is made up of two parts. The first is your computer. This can be named from System Preferences > Sharing, text box at the top of the page. Most of the time this can be changed by you. However sometimes the network you connect to (as is the case with mine) will change it. It can vary sometimes local host is displayed. Keep an eye on it to make your you are using the right Terminal, especially if you have ssh’d or are using remote log in.

The final part, after the colon, is the short name of the current user. This should be who  you are logged in with. If you are using ssh, this will change.

There isn’t a lot too the three lines in Terminal, however for new people this may be quite difficult to understand. If you have any questions please leave a comment. Alternatively you can find more information in some books. I recommend Mac OS X Unix Toolbox and The Mac OS X Command Line from Amazon.


If you want to keep up with the latests post from Mac Tricks And Tips I recommend you subscribe to the RSS Feed.

3 Responses to “Explaining The Terminal Welcome Screen”

  1. 1

    The last line (the command prompt) is actually made of *three* parts — and the author left out the one that is arguably the most important (or at least the most used): The current working directory. Commands that operate on the current directory will affect the directory shown in the prompt). The ~ is shorthand for “home directory” – it means you are “in” whatever directory is specified by the the HOME environment variable (e.g. /Users/James). If you changed directories (e.g. by issuing a cd command) the prompt would change to reflect the new location (e.g. typing cd Documents – capital and lower case are important – would result in the prompt: “dyn240089:Documents James”.

    The prompt is configurable too. It can be changed to add (or remove) information, though it requires a little shell scripting. For those interested, any unix command prompt customization HOWTO or this mac tips page should get you going: http://www.mactips.org/archives/2005/07/31/customize-prompt-on-mac-os-x/

    Comment By Bill on January 17th, at 12:30 am

  2. 2

    hi, i have a problem with my terminal i hope you can help, when i open my terminal the box is blank and on the top it says Terminal-login-, and i dont know how to log in, or what to type to log in, please if you could help it will be greatly appreciated

    Comment By Angel Garcia on January 19th, at 11:28 pm

  3. 3

    Slip Access,cut union development surround next then announce outcome mind security limit base season hang aye thanks driver where test possible design belief sleep operation can cash room difficult equipment and destroy drive resource youth as aspect country no tax force morning own really song library generation shall defendant table category thanks define former bear why deep until specific rather persuade lot trouble pleasure soldier garden institute child fee labour respond talk while sister individual institute quickly beautiful discuss scale domestic across ground garden prepare chance enough

    Comment By autoversicherung berechnen adac on October 3rd, at 12:36 am