Find the answer to your Linux question:
Results 1 to 5 of 5
Im messing around with VMware. While in the terminal it appears as: sidebiteATubuntu:~$ Why are there no brackets? Like: [sidebitATubuntu: ~$] Thanx...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2010
    Posts
    2

    Terminal question


    Im messing around with VMware. While in the terminal it appears as: sidebiteATubuntu:~$
    Why are there no brackets? Like: [sidebitATubuntu: ~$]







    Thanx

  2. #2
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    Location
    the hills
    Posts
    1,134
    Why do you expect to see brackets? My terminal has
    no brackets.

  3. #3
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,049
    Welcome to the forums!

    Quote Originally Posted by sidebite
    Im messing around with VMware. While in the terminal it appears as: sidebiteATubuntu:~$
    Why are there no brackets? Like: [sidebitATubuntu: ~$]
    Did you expect there to be brackets?

    You can get them there if you really want to, I just wouldn't know why?

    edit: ah rcgreen beat me to it
    Can't tell an OS by it's GUI

  4. #4
    Just Joined!
    Join Date
    Sep 2010
    Posts
    2
    Than you both for your quick replies. Ive been reading though a Linux book, and all thier examples look like: [mpalmerATlocalhost ~]$

    I just feel like I have done something wrong or missed a step.

  5. #5
    Linux Newbie sarlacii's Avatar
    Join Date
    May 2005
    Location
    South Africa
    Posts
    110
    Hi sidebite, and welcome.

    Your prompt is a hugely configurable thing. Most flavours of Linux will sport a different prompt, depending on the whim of the developers. Firstly, to identify your shell (which is often the main determinant of your prompt's appearance), you can use something like the following (10 ways to skin a cat in Linux, as ever):

    [sarlacii@home ~]$ echo $SHELL
    /bin/bash
    [sarlacii@home ~]$ ps | grep "$$"
    17520 pts/1 00:00:00 bash
    [sarlacii@home ~]$ find "/proc/$$/exe"
    /proc/17520/exe
    [sarlacii@home ~]$ userinfo
    Note that certain commands may not work, depending on which shell you are using. In my case, I'm using Bash, as you can see.

    Within the shell environment, you can then configure your prompt to display as much, or as little, information as you like, depending on what suits you. A common thing is to display a different prompt for the root user, like colouring the prompt red, to remind you that you are root. You can also, for example, put square brackets around the path displayed in the prompt, or not, as you noticed.

    Check out Bash Reference Manual for information on configuring your Bash prompt, if that's what you are using.

    Go well!
    Respectfully... Sarlac II
    ~~
    The moving clock K' appears to K to run slow by the factor (1-v^2/c^2)^(1/2).
    This is the phenomenon of time dilation.
    The faster you run, the younger you look, to everyone but yourself.

Posting Permissions

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