Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    get the current shell name in linux

    1. how can we get the current shell name in linux

    for example, what should i type on terminal to get the current shell

    then suppose that i was in bash and now i type <b>csh</b>

    So that command if i type again should give me now, csh instead of bash

    i have tried <i>echo $SHELL</i> but it always gives bash (default)

    2. What is the primary difference between /usr/bin, /bin, /usr/sbin, /sbin and /usr/local/bin

  2. #2
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    You may find this helps for the shell question and the guided tour section should be useful for the folders question

  3. #3
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    CA, but from N.Ireland
    Quote Originally Posted by kamranhameed View Post
    2. What is the primary difference between /usr/bin, /bin, /usr/sbin, /sbin and /usr/local/bin
    /bin is where the binaries go. I.e. compiled programs (such as firefox).
    /sbin is where the system binaries go. I.e. compiled programs that are only needed by the root user.
    /usr/bin is an extension of /bin, and is typically used for programs installed *after* the installation of the OS.
    /usr/sbin similar, but for root only programs.
    /usr/local/bin is a place for your programs, e.g. if you write a shell script that you plan to use a lot, this would be a good place to put it (if you want all users to be able to use it).
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

  4. $spacer_open

Posting Permissions

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