This question already has an answer here:

I have a question on sudo -i and sudo -s on APPLE. When I use sudo -i, it will change to "root" this user. I use sudo -s and this has the similar situation but there is a "bash-3.2#" on my terminal. I don't know where it is and what it is meaning for. This is the first question.

I normally think it show as "mycomputername:~ myusername$". The first string is "mycomputername" and the second string is "myusername" which is also only one user on my computer. There is a weird scenario when I switch to "root" via "sudo -i". It shows up "googleapis:~ root#". I don't know why it looks like this. Why it shows up "googleapis"?

marked as duplicate by muru, heemayl, Satō Katsura, Ulrich Schwarz, countermode Mar 2 '17 at 7:47

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


I resolve the problem. First, I change my LAN ip manually and initially disconnect the wifi connection on my computer. For example, change>anyone such as with your subnet mask. I also get rid of my original ip on my router. Secondly, set the firewall and allow your wanted list program such as "google drive", messages chat software and something else. Then, when the internet is disconnected, I use the "sudo lsof -i" to show the PID and connection status. I find out a suspicious connection status and use "kill -9 thesuspiciousPID" to kill it. Why is is suspicious? When I reboot my computer after closing any potential threaten connection such as Google drive or Dropbox in few times, then I find out a trick thing about my connection making this matter. If I didn't connect to the internet, my terminal shows up the normal computer name. So, my direction is right for going to delete the suspicious process. The second point is the name of making my computer name. I find out a connection to a specific strange website which is owned by a organization. Moreover, it points to my mail host on the other machine.(i.e. This is quite daunting and I get the thriller.) Anyway, this make me know the potential threaten. Share for someone.

Not the answer you're looking for? Browse other questions tagged or ask your own question.