LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 09: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, 09:59 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
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, 09:59 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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 10:01 AM.
 
Old 02-28-2012, 10:11 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
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, 10:18 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Hmm, I guess. Let's see who interpreted it right, if anyone!
 
Old 02-28-2012, 10: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, 10:41 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:19 AM
Hiding machine information and root information geletine Linux - Security 6 07-14-2006 08:57 AM
Prompt user for information immediately after login? bpottle Linux - Software 1 05-31-2006 10:59 AM
Apache2 + Debian: how to hide information about server? Warp22 Linux - Software 5 04-11-2005 01:27 AM
Possible to hide hostname information from w/who/finger ? SBing Linux - General 2 03-09-2004 05:47 AM


All times are GMT -5. The time now is 09:33 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration