Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
View Poll Results: What is your preferred Linux login shell?
The login shell is that shell that comes up when you either login on the commandline or start a terminal emulator on the GUI.
There are also other types of shells, for example the system shell, which for example is Dash on Debian, because nit is faster for non-interactive purposes.
I personally use Zsh, mostly because its superior completion (compared with the shells I used already), very good globbing features (which often times make the use of complex find commands unnecessary) and because it is easily extensible.
Zsh with syntax highlighting, in Vi mode with status indicator in a prompt on the right side, showing off a very simple globbing example and completion: http://slackeee.de/stuff/zsh.png
bash - more powerful than its ancestor /bin/sh (circa 1969) yet lightweight and flexible. Enduring standard although scripting is shifting to python, more and more, for better and worse.
Actually, I have no idea what it is - am obviously very green!
Here are some ways you can find out. Type in any one of these commands at the shell command line.
Code:
grep $USER: /etc/passwd
echo $SHELL
echo $0
But if you're running a recent version of Linux and no one went out of his way to change it, you're almost undoubtedly running bash (and for good reason, as these poll results suggests).
Serendipity7000, us newbies will just have to stay out in the cold, I wonder if all these posters actually know what it's about, seeing nobody seems anble to tell us!
The result here is a foregone conclusion: most of us use what we're given. The only Linux I can remember defaulting to anything other than bash is Arios, which uses zsh.
I used to love the shell on my Sinclair QL, full of mysterious things like "dup" (i.e. "cd ..") and the ability to set keyboard shortcuts in my boot script with commands like
ert hot_cmd(x, "prog_use 'win1_psion_' : ex xchange_exe")
to get Alt-x to run the office suite.
Serendipity7000, us newbies will just have to stay out in the cold, I wonder if all these posters actually know what it's about, seeing nobody seems anble to tell us!
HAHA! The difficulty for old salts who spend their days in a shell trying to explain "what it is" to you greenies, is that there is no common frame of reference to make such an explanation meaningful!
By analogy, consider if someone who has only ever travelled by train were to make a visit to a formula 1 pit area. Fascinated by the unfamiliar machines, they ask the driver, "What is this round thing? What does it do?", referring to the steering wheel. The experienced driver may reply, "It allows me to control where the car goes.", but that hardly tells the train rider anything useful about the importance of the wheel to the complex interaction between driver and car at speed on the track!
So please don't think the old timers unhelpful, just stay in the driver's seat long enough and it will all become clear!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.