?
Solved

Interactive shells

Posted on 2011-03-22
2
Medium Priority
?
387 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 16

Accepted Solution

by:
Joseph Gan earned 400 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

Interactive Way of Training for the AWS CSA Exam

An interactive way of learning that will help you visualize core concepts so that you can be more effective when taking your AWS certification exam.  Built for students by a student to help them understand the concepts that they are being taught.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month9 days, 23 hours left to enroll

762 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