interactive shells

How do I check in GNU/Bash if a shell is running in interactive mode or not while writing shell scripts?

{ 5 comments }

Q. There is a way to cd a particular directory even if you spelled incorrectly on the command line. The command was added to my shell startup file. After formatting my hard disk, I lost my original file. Can you tell me the shell option or command that will automatically correct errors in the spelling […]

{ 2 comments }