Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Feb 2008
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
/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