BuDop's mbp:~ budop$ changes to dhcp-v062-202:~ budop$...not quite why?

 
Thread Tools Search this Thread
Operating Systems OS X (Apple) BuDop's mbp:~ budop$ changes to dhcp-v062-202:~ budop$...not quite why?
# 1  
Old 04-29-2014
BuDop's mbp:~ budop$ changes to dhcp-v062-202:~ budop$...not quite why?

the name on my terminal changed from BuDop's MBP:~ budop$ to dhcp-v06:~ budop$ after I set up a local server using nodejs.

This was was I did prior to the change:

I installed a middleware framework for node
1. npm install connect

2. created a server file called server.js

3. ran the node server

When I quit out of the server, I noticed that my terminal name has change. I am pretty new unix user and can't figure why my terminal name has changed.

My questions are:

Why did my terminal name changed?

How can I changed it back to my original name?

I appreciate any guidance this forum can provide.

BuDop
# 2  
Old 04-29-2014
What is your current directory?

Many terminal prompts are configured to show the current directory name as part of it.
# 3  
Old 04-29-2014
currently in my home directory.
# 4  
Old 04-29-2014
Lots of software will fiddle with the window name. I use ksh as my shell. In my .kshrc file I put a function:
Code:
        function retitle {
        echo -e "\\033]0;$*\\007\\c"
        }

Now I can just just type stuff like retitle my new window name

But I rarely do. I don't really care about my window name.
# 5  
Old 04-29-2014
@Perderabo: thanks for the reply. I am using bash. I have a .bash_profile file. Do I put the function in there? I haven't done much in that file because I am relatively new to unix and worried that I may make some damage that I can't fix.

As a new unix user, I am curious/concerned with changes that I don't explicitly made myself.

BuDop
# 6  
Old 04-29-2014
.bash_profile is certainly an option. You could just type those lines in at your prompt (or cut and paste). Or you can put them in a file called "anything" and then type source anything to read them in.
# 7  
Old 04-29-2014
Quote:
Originally Posted by BuDop
@Perderabo: thanks for the reply. I am using bash. I have a .bash_profile file. Do I put the function in there? I haven't done much in that file because I am relatively new to unix and worried that I may make some damage that I can't fix.
I really don't think there's anything to be alarmed about here.

Change into a different directory now, see if it changes again.

If it does, that's all it means -- it's telling you what directory you're in.
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. OS X (Apple)

Let your iMac/MBP detect a burglar whilst idle...

Hi folks... (Apologies for typos.) I have been working on a very simple MacBook_Pro/iMac centric project. I have called it Spy . If you just want to test for fun you only need ./Spy and this defaults to a 5 second video with Medium sensitivity from the working directory whre Spy is. (Just... (1 Reply)
Discussion started by: wisecracker
1 Replies

2. IP Networking

Get DHCP relay interfaces IP address using DHCP

Hi All , please view the set up below: ------------------------------------------------------------------- | DHCP Server |-----------| ROUTER & |-----------| Clients | | 192.168.99.1 | - -<eth1>| DHCP-RELAY|<eth2>-- | 192.168.88.X | ... (2 Replies)
Discussion started by: gdangoor
2 Replies

3. Solaris

Solaris 10 310-202 Question

Hello All, Below I'm posting a question regarding a possible Solaris 10 310-202 exam question that I think is wrong. I do not agree that the answer is B. The inetadm command does not even have a flag/option of -a. Can anyone provide any assistance? Thanks! You've tried connecting to... (2 Replies)
Discussion started by: VeeDub78
2 Replies

4. Homework & Coursework Questions

310-202 question

Hi guys, i need help : The system admin wants to configure user_attr(4)sources in the /etc/nsswitch.conf Which line needs to be configured? a: passwd b: user_attr The answer is A but wait !! I did a man nsswitch.conf and user_attr is a valid database ( at least for soalris 10) ,... (0 Replies)
Discussion started by: binary0011
0 Replies

5. AIX

change user id from 200 to 202

Hi AIX Experts, i need your help in this issue, i want to change user id of xyz user from 200 to 202 note that this xyz user owner for many files and directories so my issue how to change the user id from 200 to 202 and the files still under his ownership this is an urgent work ,... (4 Replies)
Discussion started by: sh_day1
4 Replies
Login or Register to Ask a Question