Linux - NewbieThis 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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Hello y'all. I would lke you guys to help out please. Have few questions I need y'all to help with .#1-how can I make my sh interactive by default. That I don't have to always type --interactive everytime I log in. I want it to be always interactive. #2- how also do I turn of --posix mode parmanently ? Is there a line I need to drop somewhere or what do i do. Thanks in anticipation.
Assuming that you do not want to cripple or break your system, there is no need to mess with sh.
Generally startup and system scripts use sh, and expect it to act in posix mode. changing those factors would be stupid, and likely to cause both overt major and minor subtle problems.
If you are having to force interactive mode for sessions, there is something very odd about your system. I have never encountered a system that required that, and I have been doing this a LONG time!
You have another shell that is more commonly used for user scripts and both interactive and automated sessions. It is most likely bash, ksh, zsh or a variant. Why are you not using that shell as your logon default?
When did this start being a problem? Was it like this from install, or have you made recent changes that triggered this behavior?
What version of what distribution are we dealing with?
I have many more questions, but with those answers we can make a start.
Hey Wpeckham . Thanks anyway, yeah ma default shell really is BASH. And honestly, everything works fine. Am just an inquisitive one that is tying to know everything and also the possibility of learning it all. I still need my othe question answered. Thanks. Distro Red hat.
Normally you do not need to specify --interactive (or -i : check your shell man page) to force an interactive session. The shell should I/O is connected to a tty (including pseudoTTY) device and make that decision intelligently. It CAN be forced, but on a well designed system should rarely NEED to be.
Bash only runs in POSIX mode when called as 'sh' and not as 'bash' or when that mode is forced by a command-line option.
Again, for detail check your MAN pages and the web pages for your distribution for additional detail.
Wpeckham, thanks again. Really, everything works fine, and I actually run BASH shell by default. What I told you earlier is all about a learning process. I actually created a another user and configured the user to run on sh shell. So its was in the process I realize I learnt that a lot f things work differently and that sh was not interactive by default of its not the login shell. So hope you understand me now . Thanks anyway.