Page 1 of 2 12 LastLast
Results 1 to 15 of 19

Thread: terminal help

  1. #1


    Member Since
    May 13, 2013
    Posts
    10
    terminal help
    hi all,

    new apple user for about a year.

    recently logged into terminal to delete the recycle bin and saw this:

    ancrsmedistrtr-2:~ (username)$

    I've never seen this before, how do i delete it or reset it?
    (the reset command doesn't work).
    where did it come from? i'm sure it used to say 'mynotebook' before.

    thanks to all.

  2. #2

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,782
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    If you go to System Preferences > Sharing > Computer Name, what do you see?
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  3. #3


    Member Since
    May 13, 2013
    Posts
    10
    it says macbookair

  4. #4

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,782
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    Do you have a file in your user directory called .bashrc or .bash_profile? You'll have to show hidden files or use ls with the -a switch (so, ls -a ~) to see if you have them.

    If you do, what are the contents of those files?
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  5. #5


    Member Since
    May 13, 2013
    Posts
    10
    sorry, i'm lost on how to do that.

    i click on my device, then HD....then click on users, then my name (house icon), here i have desktop, documents, etc. is this where you mean?

  6. #6

    Raz0rEdge's Avatar
    Member Since
    Jul 17, 2009
    Location
    MA
    Posts
    8,474
    Specs:
    27" i7 iMac, 24" iMac, 13" Macbook Air, iPhone 6S, iPod Nano 7th GeniPad 3
    You type Vansmith's command in the Terminal not in Finder..
    --
    Regards
    ...Ashwin



    Be sure to read the Community Guidelines | The more information you provide, the better answers you get, remember GIGO.

  7. #7


    Member Since
    May 13, 2013
    Posts
    10
    enter this into terminal?

    ls -a ~

    ?

  8. #8

    Raz0rEdge's Avatar
    Member Since
    Jul 17, 2009
    Location
    MA
    Posts
    8,474
    Specs:
    27" i7 iMac, 24" iMac, 13" Macbook Air, iPhone 6S, iPod Nano 7th GeniPad 3
    Quote Originally Posted by marcusbou View Post
    enter this into terminal?

    ls -a ~

    ?
    Correct.
    --
    Regards
    ...Ashwin



    Be sure to read the Community Guidelines | The more information you provide, the better answers you get, remember GIGO.

  9. #9


    Member Since
    May 13, 2013
    Posts
    10
    did that.....

    i see .bash_history

  10. #10

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,782
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    Quote Originally Posted by marcusbou View Post
    did that.....

    i see .bash_history
    And what's in it? It's very possible that someone/something has modified what is called the PS1 environment variable.

    If you want to open it, simply execute the following: open ~/.bash_profile.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  11. #11


    Member Since
    May 13, 2013
    Posts
    10
    thanks for your help.

    open ~/.bash_profile.

    system says
    The file /Users/(user)/.bash_profile does not exist.

  12. #12

    Raz0rEdge's Avatar
    Member Since
    Jul 17, 2009
    Location
    MA
    Posts
    8,474
    Specs:
    27" i7 iMac, 24" iMac, 13" Macbook Air, iPhone 6S, iPod Nano 7th GeniPad 3
    When you did the "ls -a ~", is ".bash_history" the one file you saw or were there others? If there were others, list them all here..
    --
    Regards
    ...Ashwin



    Be sure to read the Community Guidelines | The more information you provide, the better answers you get, remember GIGO.

  13. #13


    Member Since
    May 13, 2013
    Posts
    10
    . .cups Documents
    .. .dropbox Downloads
    .CFUserTextEncoding .filezilla Dropbox
    .DS_Store .fontconfig Library
    .Trash .local Movies
    .Xauthority .spumux Music
    .bash_history Applications Pictures
    .config Desktop Public

  14. #14

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,782
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    Whoops, I read your last post as saying you saw a .bash_profile when it was actually .bash_history.

    There's nothing there that would have modified your bash prompt in any way. Are you using ATT in Alaska by any chance? It looks like ancrsmedistrtr-2 is part of some DNS server that serves ATT customers in Alaska.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  15. #15


    Member Since
    May 13, 2013
    Posts
    10
    not using att in alaska, in the uk.

    so back to square one, need to find out what changed it and how to change back.

    thanks for help.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Month in Terminal is in Russian - only in Terminal!
    By yoandrew in forum OS X - Operating System
    Replies: 4
    Last Post: 12-29-2012, 09:20 AM
  2. Terminal Help?
    By gts1117 in forum OS X - Operating System
    Replies: 2
    Last Post: 08-20-2012, 09:25 AM
  3. Terminal Help
    By LMCLUMD in forum OS X - Development and Darwin
    Replies: 1
    Last Post: 06-15-2011, 04:08 AM
  4. help!! terminal os 10.5.8
    By alcohol in forum OS X - Operating System
    Replies: 10
    Last Post: 04-10-2011, 12:35 PM
  5. using terminal
    By mayflyTR in forum OS X - Operating System
    Replies: 3
    Last Post: 08-22-2010, 05:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •