Solved

Interactive shells

Posted on 2011-03-22
2
368 Views
Last Modified: 2012-05-11
Hello, I am self learing bash from a book online(http://tille.garrels.be/training/bash/. There is an exercise for interactive shells.
Are the following shells interactive shells? Are they login shells?
A shell opened by clicking on the background of your graphical desktop, selecting "Terminal"
or such from a menu.
¨
¨ A shell that you get after issuing the command ssh localhost.
¨ A shell that you get when logging in to the console in text mode.
¨ A shell obtained by the command xterm &.
¨ A shell opened by the mysystem.sh script.
A shell that you get on a remote host, for which you didn't have to give the login and/or
password because you use SSH and maybe SSH keys.
¨

Open in new window

Thanks for help.
0
Comment
Question by:zhshqzyc
2 Comments
 
LVL 16

Accepted Solution

by:
Joseph Gan earned 100 total points
ID: 35193117
My quick answer to this is, only the console logging is login shell. All others are interactive shell.
0
 
LVL 48

Expert Comment

by:Tintin
ID: 35193714
It's a very badly worded question.  Hopefully that's not an indication of the quality of the book.

The could potentially all be interactive shells if they are sh, bash, ksh, csh, tcsh, zsh or any other interactive shell.

It's pointless to ask if a shell is a login shell or interactive shell as all login shells can potentially be an interactive shell.   It does depend on the type of shell and the profile set up as to whether it is actually interactive.

0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question