LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 02-17-2010, 05:50 AM   #1
sumit1203
LQ Newbie
 
Registered: Sep 2008
Posts: 13

Rep: Reputation: 0
problem with shell


please tell me the diffrence between login and non login shell.
What does it mean by user enviorment.
 
Old 02-17-2010, 05:53 AM   #2
irmin
Member
 
Registered: Jan 2010
Location: the universe
Distribution: Slackware (modified), Slackware64 (modified), openSuSE (modified)
Posts: 342

Rep: Reputation: 62
http://learnlinux.tsf.org.za/courses...g/ch02s02.html
 
Old 02-17-2010, 05:56 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
A login shell is one that is started when you login. If that shell (or one its descendent processes) starts another shell no further login is required (the user is already logged in) and the new shell is a non-login shell. Any shells started from the GUI desktop are non-login shells.

Can you be more specific about "user environment"? It could have several meanings, depending on the context in which it is used.
 
Old 02-17-2010, 07:22 AM   #4
Refractor
Member
 
Registered: Oct 2008
Location: Rousse, Bulgaria
Distribution: Debian
Posts: 91

Rep: Reputation: 25
A login shell executes ~/.bash_profile while a non-login shell executes ~/.bashrc
The login shell also sends you to the user home directory.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
shell problem ust Linux - Software 2 01-24-2008 06:47 AM
Problem with shell 9GB Programming 2 10-13-2006 02:07 AM
shell script problem, want to use shell script auto update IP~! singying304 Programming 4 11-29-2005 06:32 PM
help. Shell problem miguel67 Programming 4 06-22-2004 06:28 PM
Help. Shell problem. miguel67 AIX 1 06-22-2004 02:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration