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 10-30-2010, 09:25 PM   #1
aliris
LQ Newbie
 
Registered: Oct 2010
Posts: 5

Rep: Reputation: 0
As basic as it gets...


What is the relationship between linux and bash please?

Apologies for the rawness of this question. I've been looking online and thought I got it, but then... it slips away.

This I think I know: Macs run GUI or Graphical User Interface on the 'regular' part of the computer. Then you can go to 'terminal' for command-lines that seem to go straight to the processor. These command lines are a program (?) called bash (Bourne something-or-other). But then what is linux...?

And what is it, specifically, that I'm trying to learn when I want to learn how to write bash script on my Mac's terminal? Is it bash or linux??

TIA.
 
Old 10-30-2010, 09:30 PM   #2
kindofabuzz
Member
 
Registered: Mar 2010
Location: There
Distribution: Linux Mint 17.1
Posts: 237

Rep: Reputation: 45
http://en.wikipedia.org/wiki/Bash_(Unix_shell)
 
Old 10-30-2010, 09:39 PM   #3
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Bash is a command shell (a command interpreter), just like your "terminal", and where you can enter commands or execute scripts. It's been ported to a number of different OS's. The link provided my the member above me should prove educational.

If you have Bash on your Mac, you're writing a Bash script, although there may be slight differences between shells, and other common tools, on different OS's.

"Linux" is the kernel of your GNU/Linux Operating System. It's the heart of the OS, and it interfaces the rest of your operating system and applications, with the hardware of the machine.

On GNU/Linux operating systems, the GUI environment is usually provided by the "X" Server. X is a client/server graphical interface system that runs on top of your operating system. Without X, you have no "Desktop" environment, but you still have the kernel, and the rest of the OS, and the consoles or "Virtual Terminals" to work in. For more on X, see here for starters:
http://www.x.org/wiki/
 
1 members found this post helpful.
Old 10-31-2010, 12:53 AM   #4
aliris
LQ Newbie
 
Registered: Oct 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks

Thanks, all. I'm slowly bootstrapping my way here. There's a lot to learn.
 
Old 11-01-2010, 08:08 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,365
Blog Entries: 16

Rep: Reputation: 3146Reputation: 3146Reputation: 3146Reputation: 3146Reputation: 3146Reputation: 3146Reputation: 3146Reputation: 3146Reputation: 3146Reputation: 3146Reputation: 3146
Welcome to Linux.

There is a learning curve. Linux ain't hard, it's just different.

There is a good primer at about dot com.

Machtelt Garrels has written a fantastic in-depth intro. I have a printed copy of that on my bookshelf and read it all the way through.

The Slackbook is also a good intro. It's oriented towards Slackware, but, since Slackware believes in basic Linux, not in bells-and-whistles Linux, it is good on basic Linux.
 
1 members found this post helpful.
Old 11-02-2010, 12:12 AM   #6
aliris
LQ Newbie
 
Registered: Oct 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks!

Is that "linux 101" or Tutorials for new users of the Linux desktop?

Any good tutorial suggestions for bash? I found one at one point, but failed to bookmark it and now can't find it again...
 
Old 11-02-2010, 12:19 AM   #7
kindofabuzz
Member
 
Registered: Mar 2010
Location: There
Distribution: Linux Mint 17.1
Posts: 237

Rep: Reputation: 45
Quote:
Originally Posted by aliris View Post
Thanks!

Is that "linux 101" or Tutorials for new users of the Linux desktop?

Any good tutorial suggestions for bash? I found one at one point, but failed to bookmark it and now can't find it again...
Here is a good Bash tutorial: http://www.hypexr.org/bash_tutorial.php
there are a lot of tutorials out there. google.

Last edited by kindofabuzz; 11-02-2010 at 12:20 AM.
 
Old 11-02-2010, 12:26 AM   #8
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Quote:
Originally Posted by frankbell View Post
Welcome to Linux.

There is a learning curve. Linux ain't hard, it's just different.

There is a good primer at about dot com.

Machtelt Garrels has written a fantastic in-depth intro. I have a printed copy of that on my bookshelf and read it all the way through.

The Slackbook is also a good intro. It's oriented towards Slackware, but, since Slackware believes in basic Linux, not in bells-and-whistles Linux, it is good on basic Linux.
Hey thanks man for the linux.about.com link. So many people ask what linux is when I tell them about it, and that is perfect to give to people to learn about linux. You the man! I always struggle to explain linux, especially when most people only ever used windows throughout their whole life.

aliris - It might be tough trying to learn about some different parts and aspects of linux, how it works, runs, programming, etc... you get the picture.... but in the end, it is well worth it. And as far as bash, you can start here:

http://bash.cyberciti.biz/guide/Main_Page
http://lowfatlinux.com/linux-bash-manual.html
 
Old 11-02-2010, 12:51 AM   #9
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
If we helped you out enough, and you are good to go, mark the thread as solved. Just common forum courtesy. And giving positive reputation is a plus too. Good luck with everything!
 
Old 11-02-2010, 02:37 AM   #10
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Rep: Reputation: 166Reputation: 166
learn linux

I have not looked at all the links, every one has their favourite explanation but I would add that technical writing is a particular skill and one that few have mastered, think of flat-pack instructions! Thus don't beat yourself up if you don't understand first off.
Perhaps, a Windows user does not think about how the file system works, it just works(hopefully). If you start using GNU/Linux then you are either short of cash or are beginning to think of 'how does all this stuff work?'
Bash is the standard command line that underlies the Gui. It (the gui) gives you easy to use pictures to use the same thing that you would use on the command line.
Windows is slightly different in that it hides its 'code' for a number of reasons.

Fred.
P.S I'm bullet proof.
 
Old 11-02-2010, 02:55 AM   #11
kindofabuzz
Member
 
Registered: Mar 2010
Location: There
Distribution: Linux Mint 17.1
Posts: 237

Rep: Reputation: 45
Quote:
Originally Posted by Fred Caro View Post
Windows is slightly different in that it hides its 'code' for a number of reasons.
Basically only two reasons, it's proprietary and closed-source.
 
Old 11-02-2010, 11:35 PM   #12
aliris
LQ Newbie
 
Registered: Oct 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Ah, thank you all. I appreciate the references. Indeed I have googled -- and googled and googled for a week-plus now on this subject (it's all been part of a larger snafu the scale and scope of the misery of which I won't bore you with, but is just, well, all-week-long-sized and more).

As noted, there are many, many primers out there and they are not by any means all created equally. Again, I had my hands on a great one and failed to bookmark it (a week of many lessons) - I was asking for some personalized references and so I do appreciate your effort at sharing your favorites. I wasn't trying to imply I was too lazy as to not have simply googled it already. But if it were that easy to find good primers, there would be no need of teachers.

Many thanks all and my apologies for not having noted your appreciated answers to this well-responded-to-question.

Happy programming...
 
  


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
GnuCash, KMyMoney - basic, basic questions - please help if you can. brjoon1021 Linux - Software 3 10-20-2008 06:27 PM
basic nirmaltom Linux - Networking 3 03-24-2006 06:44 AM
Basic samjkd Linux - Software 3 03-19-2005 07:56 AM
I need some really really basic help. cordedpoodle Linux - Newbie 6 08-23-2003 02:19 PM
I'm a BASIC chap, looking for some info on BASIC programming CragStar Programming 2 01-21-2001 09:19 AM

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

All times are GMT -5. The time now is 10:55 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