Solved

Interactive shells

Posted on 2011-03-22
2
363 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now