Terminal problem-weird appearance before name

When I open Terminal "n014h151" appears before my name
I never seen tihs before, usually its just Andrew$ or something simular.
I've been trying to use this comand sudo rm -rf ~/.Trash to empty my trash as i have a file in there about 78GB its my iphoto library and its taking forever to delete. i'm not having much luck. I'm wondering if something is wrong with my computer to have that weird combination of letters and numbers show up before the name.
Any suggestions and ideas would be apprecated

The default prompt is
hostname:current_working_directory username$
where typically what you initially see for current_working_directory is a tilda ~ which is Unix shorthand for your home directory.
The thing that confuses most home users is that the bash shell takes the current IP address, does a reverse DNS lookup to get the name associated with that address, and plugs that into the hostname field of the prompt.
This gives the expected results when there is no outside your Mac DNS name associated with your IP address, as the Mac DNS lookup code will then substitute the System Preferences -> Sharing -> Computer name.
However, every once in a while, the reverse DNS lookup returns a value, and you get some very strange results for hostname.
While confusing, sometimes annoying, it is harmless.
With respect to deleteng files from the trash, if you have a lot of file it can take awhile to delete each file.  If the space used by those files is a lot (and 78GB is a lot) AND you specified "Secure Erase" it can take a very long time to erase the contents of each file, before freeing the storage.
But having your hostname say n014h151 is harmless.
If you do not use Terminal all that much, just ignore it.  If you use Terminal enough that this kind of uncertanty bothers you, then you can tell 'bash' to use the prompt you want.
Try creating, or modify .bash_profile and adding:
PS1='$(networksetup -getcomputername):\W \u\$ '
NOTE;  the bash shell uses just one of the following, looking for them in the following order
.bash_profile
.bash_login
.profile
If and only if one of these files exist.  You would choose to put the PS1 promot into the one that exists, or create a .bash_profile if non-of them exist.

Similar Messages

  • Weird Terminal problem with AIX

    Hi,
    I have kind of an odd problem with the Terminal.app that I hope someone can assist me in figuring out.
    I'm connecting to an AIX 5.3 server and the top portion of the window is always "cut off". It's there, it's just one screen up in the buffer and I can't figure out why. I can connect with iTerm and things display appropriately.
    Below is a link to a side by side picture of Terminal.app (left) and iTerm (right). If I scroll up in the Terminal.app buffer, I can see the missing lines from the top of the screen.
    http://picasaweb.google.com/andy.black10/Misc#5407855064094337554
    Thanks,
    Andy

    Minor point: would you please fill in your Forum profile information, at least the Mac OS X operating system version.
    I'm currently using Leopard and I can reproduce this problem in Terminal vs iTerm. I used your script output (thank you) in order to generate the escape sequences.
    BY THE WAY, if the script output contains any sensitive login info, you might want to change your password on the Pharamcy OSU system
    It looks like there is a Terminal problem handling Scrolling Regions as set by <esc>[1;24r. It looks like <esc>[0J is not erasing from the current cursor position to the end of the display, but rather it starts the erase above the current cursor position. The erase behavior without a scrolling region appears better, but not perfect.
    I would encourage you to file a bug with Apple at either:
    <http://www.apple.com/feedback/macosx.html>
    or
    <http://bugreporter.apple.com>
    Free ADC (Apple Developer Connection) account needed for BugReporter
    The BugReporter would be better.
    If you want, I have a little script that can be used to demonstrate the problem
    #!/usr/bin/env bash
    echo -e "e[1;24re[He[0Je[He[0Je[?6he[1;24re[He[0Jc"
    for j in {1..3}
    do
    echo BEFORE should remain on screen $j $j $j $j $j
    done
    for j in {4..23}
    do
    echo FILLER should be erased $j $j $j $j $j
    done
    echo -e "e[4;24re[He[0Jc"
    for j in {4..23} # our next command prompt will be 24th line
    do
    echo AFTER should remain on screen $j $j $j $j $j
    done
    Here is example output from Terminal:
    BEFORE should remain on screen 1 1 1 1 1
    AFTER should remain on screen 4 4 4 4 4
    AFTER should remain on screen 5 5 5 5 5
    AFTER should remain on screen 6 6 6 6 6
    AFTER should remain on screen 7 7 7 7 7
    AFTER should remain on screen 8 8 8 8 8
    AFTER should remain on screen 9 9 9 9 9
    AFTER should remain on screen 10 10 10 10 10
    AFTER should remain on screen 11 11 11 11 11
    AFTER should remain on screen 12 12 12 12 12
    AFTER should remain on screen 13 13 13 13 13
    AFTER should remain on screen 14 14 14 14 14
    AFTER should remain on screen 15 15 15 15 15
    AFTER should remain on screen 16 16 16 16 16
    AFTER should remain on screen 17 17 17 17 17
    AFTER should remain on screen 18 18 18 18 18
    AFTER should remain on screen 19 19 19 19 19
    AFTER should remain on screen 20 20 20 20 20
    AFTER should remain on screen 21 21 21 21 21
    AFTER should remain on screen 22 22 22 22 22
    AFTER should remain on screen 23 23 23 23 23
    and here is example output from iTerm:
    BEFORE should remain on screen 1 1 1 1 1
    BEFORE should remain on screen 2 2 2 2 2
    BEFORE should remain on screen 3 3 3 3 3
    AFTER should remain on screen 4 4 4 4 4
    AFTER should remain on screen 5 5 5 5 5
    AFTER should remain on screen 6 6 6 6 6
    AFTER should remain on screen 7 7 7 7 7
    AFTER should remain on screen 8 8 8 8 8
    AFTER should remain on screen 9 9 9 9 9
    AFTER should remain on screen 10 10 10 10 10
    AFTER should remain on screen 11 11 11 11 11
    AFTER should remain on screen 12 12 12 12 12
    AFTER should remain on screen 13 13 13 13 13
    AFTER should remain on screen 14 14 14 14 14
    AFTER should remain on screen 15 15 15 15 15
    AFTER should remain on screen 16 16 16 16 16
    AFTER should remain on screen 17 17 17 17 17
    AFTER should remain on screen 18 18 18 18 18
    AFTER should remain on screen 19 19 19 19 19
    AFTER should remain on screen 20 20 20 20 20
    AFTER should remain on screen 21 21 21 21 21
    AFTER should remain on screen 22 22 22 22 22
    AFTER should remain on screen 23 23 23 23 23

  • I'm trying to export a file as .dwg for Autocad but it's not showing the dwg preview and it appears to be saving as code (lots of gobbledegook when reopening the file).  I'm on OS 10.5.8.  Never had a problem with this before.  What am I missing? Any idea

    I'm trying to export a file as .dwg for Autocad but it's not showing the dwg preview and it appears to be saving as code (lots of gobbledegook when reopening the file).  I'm on OS 10.5.8.  Never had a problem with this before.  What am I missing? Any ideas?

    First be sure login and password are OK. Sometimes the address starts wit "http://..." and sometime starts with "ftp://...". Try both normal FTP access and Scure FTP access (SFTP). At the end, contact the site's provider.

  • What is the name of that thing that appears before a film, in black and white, with numbers counting backwards and with circle motion ?

    what is the name of that thing that appears before a film, in black and white, with numbers counting backwards and with circle motion ?

    Thanks a lot, not only I got what I needed, but also discovered a great site
    thanks
    fp

  • [Gnome] weird appearance of special characters

    Hi,
    Yesterday I installed a new arch on my PC. When I was looking for a file on my HDD I saw an weird appearance of special characters like "☆" or "♪", they've been replaced by a square...
    I think this is a problem with my locales but I don't know where is my problem...
    In my rc.conf I have :
    LOCALE="fr_FR.UTF-8"
    I also tried to set "utf8" in lower case but didn't worked.
    In my locale.gen I have uncommented :
    fr_FR.UTF-8 UTF-8
    fr_FR ISO-8859-1
    When I type on a Terminal "locale" I get that :
    LANG=fr_FR
    LC_CTYPE="fr_FR"
    LC_NUMERIC="fr_FR"
    LC_TIME="fr_FR"
    LC_COLLATE="fr_FR"
    LC_MONETARY="fr_FR"
    LC_MESSAGES="fr_FR"
    LC_PAPER="fr_FR"
    LC_NAME="fr_FR"
    LC_ADDRESS="fr_FR"
    LC_TELEPHONE="fr_FR"
    LC_MEASUREMENT="fr_FR"
    LC_IDENTIFICATION="fr_FR"
    LC_ALL=
    But nothing with utf8...
    I also try to type "locale-gen" between different steps but it didn't worked too...
    Thanks for you help !

    I went toe Edit → special characters which opened up the special characters window, which is the same as the Character view that I can access for my menu bar in the upper right of the screen (next to the battery icon), then I went to the "Greek" option on the side so the greek letters showed up and doubled clicked on my symbol of choice.
    I will do below to see if it works here:
    α β
    Also thanks Peter I will check her version of word, I am pretty sure if it is running that then she probably doesn't know about it.
    Kari

  • Problems with applications & item names, possibly related to malware?

    I apologize for posting twice about a similar topic but I found out a new important piece of information that could possibly help others as well.
    Previously I asked why safari keeps shutting down and citing the plug in "microsoftgenuine.so" and was told it was the flashback trojan. Is this trojan really infecting as many computers as they say or are users overreacting? The dr.web thing told me I did not have it but when I ran "defaults read ~/.MacOSX/environment DYLD_INSERT_LIBRARIES" in my terminal, "/Users/Shared/.MicrosoftOfficeGenuine.so" showed up. Offfffff course. The other two lines that I was told to put in my terminal came back as "do not exist" though. I have the report crash if needed, from safari.
    Also, some right click options as well as my devices display names such as n152 and SD3 instead of "open with" etc.
    This problem began long before the application crashes.
    I'm quite careful- do not enter my password unless I know why I am being asked for it, do not update software except from my desktop (aka don't go to 3rd party sites) and I run sophos as recommended by my school, although another user told me it was crap. I don't believe I intentionally downloaded any program and certainly did not install one asking for my password except for standard things that I downloaded from trusted sites.
    Also when clicking on links from pages I will be directed to an entirely different page. It's usually when I click on a link from a google search. It will take me to a yellow pages search or something that is minutely related to my search terms. I'll have to click "back" multiple times until I'm returned to the initial page and when I click the SAME link a second time, it takes me to the site it should.
    Annnny tips would be appreciated.  Unfortunately I do not own my own hard drive, much less the multiple ones suggested to me. I back up school files on discs occasionally but that is all.
    Thanks!

    Current recommendations is turn Java off.  Generally you don't need it.  Do not confuse it with Javascript which you do need for your browsers.   
    You can disable in the browser you are using and/or more globally using the Java Preferences too (in Utilities), General tab (uncheck the checkboxes).
    More new tricks from Flashback
    How to check for and disable Java in OS X
    Protect Yourself from the Mac OS X Java Vulnerability
    If it turns out you need it for some specific application or web site that you trust then turn it on only when running that application or visiting that site. If your work requires Java be enabled then at least disable it in your browsers.
    If you do need to run Java, be sure that you pick up the Java Software Update 7 posted recently that takes 10.6 and 10.7 up to Java SE 6 revision 31.
    Flashback is a moving target with lots of strains (various versions, permutations) and changing all the time.  So who knows what's next?

  • Terminal not showing machine's name. Why?

    Hi,
    Terminal not showing machine's name. Why?
    Before I used to have "Martin Parris’s iMac:" on the prompt. Now, I always have this "unknown..." line. Anybody know why and how to fix it?
    Cheers
    MPAC

    The default PS1 prompt variable ha \h in it which the bash shell substitutes the hostname, however, bash determines the hostname by first taking you IP nn.nn.nn.nn address and doing a reverse DNS lookup. If bash gets a value back, no matter what it is, even unknown, bash uses that value. If the Mac OS X lookup does not get a response from the DNS servers, Mac OS X will use your System Preferences -> Sharing -> Computer name.
    In your cast, it appears a DNS server is returning unknown
    You can set your PS1 prompt to whatever you want. See "man bash" and look for 'prompt'
    You could also search the forums for 'PS1' and find similar discussings on the Terminal and your prompt.

  • Database termination Problem

    Hi every body ..plz help me on this..
    We are facing database termination problem in ECC6 production syste.
    Database: Oracle 10.2, O/S: Windows 2003. Spam  :27, SP level 13.
    Error is:
    Errors in file f:\oracle\p02\saptrace\background\p02_ckpt_6520.trc:
    ORA-00206: error in writing (block 3, # blocks 1) of control file
    ORA-00202: control file: 'D:\ORACLE\P02\ORIGLOGB\CNTRL\CNTRLP02.DBF'
    ORA-27072: File I/O error
    OSD-04008: WriteFile() failure, unable to write to file
    O/S-Error: (OS 33) The process cannot access the file because another process has locked a portion of the file.
    When we are performing backup then data base termination occuring freequently.
    Give right solution as early as possible.
    Thanks,
    Nani.

    Hi,
    Have a look at below snote which actually speaks about the oracle error codes
    Snote :  546006
    within the Snote it says :-
    " If you cannot access a database file (for instance a data file, control file or RedoLog) for whatever reason, an ORA-270xx appears. The actual cause comes from additional error messages (usually in the operating system) that occur on ORA-270xx. "
    And as per your last update
    " ORA-00206: error in writing (block 3, # blocks 1) of control file
    ORA-00202: control file: 'D:\ORACLE\P02\ORIGLOGB\CNTRL\CNTRLP02.DBF' "
    i think there is problem accessing the database control file. Hence you  are facing the above problem.
    I think if you recreate your control file i think, it should resolve the problem.
    Hope it will be helpful to resolve your problem.
    Rgds
    Radhakrishna D S

  • Presently using iMac: OS X 10.9.4 (13E28)  1. Open website; click drop-down and this appears:  Before viewing PDF documents in this browser you must launch Adobe reader and accept the end-user license agreement, then quit and relaunch the browser.  2. Usi

    Presently using iMac: OS X 10.9.4 (13E28)
    1. Open website; click drop-down and this appears:
    Before viewing PDF documents in this browser you must launch Adobe reader and accept the end-user license agreement, then quit and relaunch the browser.
    2. Using an iMac, open founder and click downloads
    3. Click AdbeRdr1013_en_US-1.dmg         Apr. 4 2012, 7:11 AM 73 MB Disk Image  Feb 27, 2013, 10:00 AM
    4. Screen indicates it is opening Adobe reader X installer.package
    5. Click this icon
    6. Open Adobe installer; double-click install Adobe reader; putting password to access; click next; Note: Application is already installed; click finish.
    Screen indicates: thank you and enjoy Adobe reader. Click Return to Prior Website. Click install now: total size 99.1 MB
    Initializing arises with the following information: to proceed, open your download folder and locate the Adobe reader installer file, named Adobe reader installer [ XXX].dmg
    It takes me back to steps that have already taken of locating down load file double-click to mount the disk image; double-click install Adobe reader; agreed by clicking open; entering name and password and clicking okay.
    Did this several times with no success.
      11.       www.forums.adobe.com

    Sorry if I failed to mention, I have done this as well.

  • In Unicode Programs , the "-" CHARACTER CANNOT APPEAR IN NAME

    HI,
       I am checking the routines for the transfer rules(0SRM_GLSPEND_INVOICE) in the ODS Object (0GLS_INV).
    WARNING :In Unicode programs, the "-" character cannot appear in names, as it does here in the name
    " L-LOCAL_ID"
    this is only before unicode conversion .
    thanks & regards
    subba reddy.

    HI,
       I am checking the routines for the transfer rules(0SRM_GLSPEND_INVOICE) in the ODS Object (0GLS_INV).
    WARNING :In Unicode programs, the "-" character cannot appear in names, as it does here in the name
    " L-LOCAL_ID"
    this is only before unicode conversion .
    thanks & regards
    subba reddy.

  • Problem sorting by artist name

    itunes 9 sort by artist is not consistent (e.g Alberta Hunter appears before Harry Allen). Why? And is this fixable?

    Because it sorts by the name in the artist column.
    Alberta comes before Harry.
    If you want *Harry Allen* filed under A and *Alberta Hunter* under H then put the names in the *Sort Artist* column as *Allen, Harry* and *Hunter, Alberta*.

  • Found 0 results for While browsing eBay, when I watch or bid on an item, and later view it again, many inches of white space appears before item appears. If I delete the clear recent history box, the pages will come up as they should for several times, th

    While browsing eBay, when I watch or bid on an item, and later view it again, many inches of white space appears before item appears. If I delete the clear recent history box, the pages will come up as they should for several times, then go back to a lot of extra white space. How can I prevent this? Thank you, Rick in English
    == This happened ==
    Every time Firefox opened
    == About a month ago

    As stated in 1.:
    1. This procedure is a diagnostic test. It changes nothing, for better or worse, and therefore will not, in itself, solve the problem.
    Obviously, it will not harm your computer provided you follow the instructions. However, if you don't post your results in the thread where you were given those instructions, then the person helping you cannot help you further. As he asks at the end, "please post the test results on Pastebin, then post a link here to the page you created."

  • Outlook notification appears before email arrives in inbox

    issue we have with a couple of folks,  outlook notification appears before email arrives in inbox.  any idea why this happens?
    if they click on the inbox, then click on another folder, then click back on the inbox, they email shows up.  users are getting frustrated.  I cant find anything wrong.
    Josh

    Hi,
    Are the users using any rules? Temporarily disable all rules in Outlook to check if the problem persists.
    You can also use Outlook in Safe Mode to determine if this is 3rd-party add-ins related:
    Press Win + R and type “outlook.exe /safe” in the blank box, then press Enter.
    If there’s no problem in Safe Mode, disable the suspicious add-ins to verify which add-ins caused this issue.
    For Exchange Accounts, please switch to Exchange Online mode to check the result.
    In addition, if you are using Remote Desktop Service, this problem may also be caused by the performance delay, try to optimize the RDS performance, check the result again:
    http://blogs.msdn.com/b/rds/archive/2010/02/05/announcing-the-remote-desktop-protocol-performance-improvements-in-windows-server-2008-r2-and-windows-7-white-paper.aspx
    Regards,
    Melon Chen
    TechNet Community Support

  • Padlock sign is not appearing before Record in Record Center Template

    Hi All,
    I am facing quite a strange problem.
    In SharePoint 2010 Record Center Template Site whenever i declare a document as a Record OR Hold the document "padlock" sign is not appearing before the Record.
    Although in case of Team Suite Template whenever declare a Record using In place Record management OR Hold the document "padlock" sign appears.
    Is it OOB beahvior OR am i missing some settings???
    Any comments on this would be appreciated.

    Hi,
    This is true in my virtual machine as well. I am able to edit data and meta data in documents that are on hold. This is because holds add meta data to documents and
    prevent document deletion but do not necessarily prevent editing.
    If you would like to prevent users for editing a document you will need to edit user permissions on that document itself; which can be done in the document drop down
    under 'Manage Permissions' in the Records Center library.
    Regards, Savoeurn Va Microsoft Online Community Support

  • Ical cannot send invites anymore. "?" appears before email address

    I can no longer send invitation to calendar events from Ical. a "?" mark appears before the email address. Have gone into preference and have no idea what might hace affected this.  Any help appreciated.

    I have the exact same problem with a caveat - I shouldn't be using one company's mail server to send invitations related to another company! A corporate resources no-no.
    It would be nice if each calendar could be associated with an email account.
    See http://discussions.apple.com/thread.jspa?messageID=7539832&#7539832 for a full discussion. When iCal invokes Mail to send the invitation Mail uses the preference for 'Send new mail from' which in my case is the 'Account of last viewed mail'. So I can work around the problem by going to Mail, selecting the account that I want iCal to use and then sending the invitation.
    Message was edited by: Ed Gamble

Maybe you are looking for

  • HP printer problem with Leopard

    Just upgraded to 10.5.5 and now can't get HP2015d printer to print off any Office documents (Word, Excel or Powerpoint). Othe HP printers work fine. I have installed updated driver and still can't solve. Help!

  • Tables missing in SQL Server 2008 for Hyperion Application

    Hello Experts, I am cuurently working on Hyperion Finacial close management (Account Reconciliation Manager) application version 11.1.2.3, O.S is Windows 2008 R2 and relational database is SQL Server 2008. When I am trying to copy Account Profiles to

  • Problem with a link from a seeded page

    I know that there has to be something stupid I am doing wrong here, but I cannot figure it out. I am trying to link from a seeded page to a custom page of mine. Here is my link: OA.jsp?page=/oracle/apps/ar/cusstd/localizationExt/webui/AcctLocalizatio

  • OSB 11g (11.1.1.5)  Code promotion to production

    Hi , Could you please help me in the below query.... For composite(BPEL) project , As i know that we can generate configuration plan for code promotion (test env to prod env), In the same way do we have any options available for OSB projects code pro

  • Read value selected in Dropdown list in user exit

    Hello, I have mulitple variable in my web interface. The first one is a list of months that the user can change and the others are calculated by user exit. The problem is that i need the month in the user exit. When the user has already a variable se