Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

It prints :

"Last login: Tue Mar  1 17:19:48 on ttys000 ly-lanceedemacbook:~ lancee$ "

when I login terminal on my Macbook with networking.

But sometime go like this :

"229:~ lancee$"

random numbers, Is there any hackTools working within the local area network? or means what?

share|improve this question

migrated from Mar 1 '11 at 22:53

This question came from our site for professional and enthusiast programmers.

What does echo "$PS1" say? What about grep 'PS1' ~/.profile ~/.bashrc /etc/profile? – Dennis Williamson Mar 1 '11 at 10:46
If PS1 contains \! then the "random number" is the command history number. – glenn jackman Mar 1 '11 at 15:06

Could it be that one of the networks you visit hands out hostnames that "reflect" your IP? I´ve seen this in practice before, where the hostname auto-assigned to your machine essentially is eg. 154.local (or given a DHCP-provided IP of . Since you obviously use \h and not \H in your PS1 you would then only seem to have a random number as a hostname. Network Admins tend to do that to shorten the amount of repetitive numbers they have to type (and various other reasons).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.