LinuxQuestions.org
Visit Jeremy's Blog.
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 04-06-2010, 01:41 AM   #1
echorequest
LQ Newbie
 
Registered: Dec 2007
Posts: 9

Rep: Reputation: 0
Where is a linux/unix users default shell?


Every nix user has a default shell assigned at the time of user creation. I wanted to know where is a nix users default shell

Thanks in advance
 
Old 04-06-2010, 01:44 AM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Please stop asking members to do your homework for you. Read the LQ Rules too, please -- you'll see a reference there, to homework questions.

Sasha
 
Old 04-06-2010, 01:45 AM   #3
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

If you mean you that you want to know where the user's shell is defined then look at your /etc/passwd file. It contains lines like this:
Code:
root:x:0:0:root:/root:/bin/bash
where the part:
Code:
/bin/bash
defines the user's shell.

Kind regards,

Eric
 
Old 04-06-2010, 01:52 AM   #4
bcwagne
Member
 
Registered: Feb 2008
Distribution: Debian Testing, OSX
Posts: 164

Rep: Reputation: 32
I'm not sure I understand the question...

Every user has a shell which is set as their default shell. It may be bash, csh, zsh, etc. Usually in linux it is bash.

The executable for each shell is located in /bin. When a user runs a shell they are running a program in this directory.

You may want to see this (unix.com) about changing the default shell.

Good luck.
 
Old 04-06-2010, 03:36 AM   #5
echorequest
LQ Newbie
 
Registered: Dec 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by GrapefruiTgirl View Post
Please stop asking members to do your homework for you. Read the LQ Rules too, please -- you'll see a reference there, to homework questions.

Sasha
Thanks Sasha for the link, but this is not homework. I left school years ago
 
  


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
UNIX : Switching users in a shell script? aravindts Programming 5 09-07-2012 04:24 AM
LXer: Nifty shell tricks for new UNIX users LXer Syndicated Linux News 1 02-22-2007 08:22 PM
Greetings all Linux and Unix and others users! avallach LinuxQuestions.org Member Intro 4 01-17-2007 03:55 AM
new users' default shell r.stiltskin Debian 5 02-15-2006 05:27 PM
Why did you experienced users of Unix change to unix over Windows? Laptop2250 Linux - General 11 10-28-2003 12:51 PM


All times are GMT -5. The time now is 12:11 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration