LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-28-2012, 08:56 AM   #1
kimreily
LQ Newbie
 
Registered: Feb 2012
Location: Oslo, Norway
Distribution: Ubuntu
Posts: 2

Rep: Reputation: Disabled
How Hide user and machine information in terminal prompt


Can i hide the information about user and machin at the terminal prompt?
 
Old 02-28-2012, 08:59 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Of course. Assuming that you are using Bash: http://tldp.org/HOWTO/Bash-Prompt-HOWTO/c141.html
 
1 members found this post helpful.
Old 02-28-2012, 08:59 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
hide what from who?... and most importantly... WHY?

You can't really make it impossible to find out anything about what machine your on, unless you're looking at building a very strict chroot jail really.

---------- Post added 28-02-12 at 03:00 PM ----------

Quote:
Originally Posted by TobiSGD View Post
Of course. Assuming that you are using Bash: http://tldp.org/HOWTO/Bash-Prompt-HOWTO/c141.html
a bash prompt will make /proc/cpuinfo unavailable?

Last edited by acid_kewpie; 02-28-2012 at 09:01 AM.
 
Old 02-28-2012, 09:11 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by acid_kewpie View Post
a bash prompt will make /proc/cpuinfo unavailable?
You display /proc/cpuinfo in your terminal prompt? That must be awful looking and quite unhandy to work with.

The OP asked:
Quote:
Can i hide the information about user and machin at the terminal prompt?
(Emphasized by me).
Almost any distribution I know of comes with a somewhat standard shell prompt: $USERNAME@$HOSTNAME, may be followed with the current working directory.
 
Old 02-28-2012, 09:18 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Hmm, I guess. Let's see who interpreted it right, if anyone!
 
Old 02-28-2012, 09:35 AM   #6
kimreily
LQ Newbie
 
Registered: Feb 2012
Location: Oslo, Norway
Distribution: Ubuntu
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thumbs up Problem solved.

Quote:
Originally Posted by TobiSGD View Post
Of course. Assuming that you are using Bash: http://tldp.org/HOWTO/Bash-Prompt-HOWTO/c141.html
This was what I needed.
 
Old 02-28-2012, 09:41 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Where do I send the cheque?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to hide eth0 information (from ifconfig's output) from sudo user? dev_d Linux - Security 7 09-20-2011 02:19 AM
Hiding machine information and root information geletine Linux - Security 6 07-14-2006 07:57 AM
Prompt user for information immediately after login? bpottle Linux - Software 1 05-31-2006 09:59 AM
Apache2 + Debian: how to hide information about server? Warp22 Linux - Software 5 04-11-2005 12:27 AM
Possible to hide hostname information from w/who/finger ? SBing Linux - General 2 03-09-2004 04:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration