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


  Search this Thread
Old 07-20-2011, 09:05 AM   #1
LQ Newbie
Registered: Jul 2011
Posts: 1

Rep: Reputation: Disabled
difference between shell and c programing

please help with this!!!
Old 07-20-2011, 09:07 AM   #2
Senior Member
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
You will have to be far, far, far, far more specific.

Other than the fact that they've got completely different syntaxes, you need to compile a c programme into something that can be run by itself, while a shell script is interpreted by another programme (the shell).
Old 07-20-2011, 10:08 AM   #3
David the H.
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,837

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
Could be a homework problem too.

You won't learn anything by being spoon-fed the answers, so do your own research first. Then if you any questions on specific points, you can come back and we'll help you to understand them.
Old 07-20-2011, 11:35 AM   #4
DJ Shaji
Registered: Dec 2004
Location: Yo Momma's house
Distribution: Fedora Rawhide, ArchLinux
Posts: 517
Blog Entries: 15

Rep: Reputation: 106Reputation: 106
A shell script is a set of commands that are run in sequence by a shell; a program in any language is a set of instructions that are run directly by the machine (?) when compiled, except for interpreted languages, of course. Ask the mighty Google for more.
Old 07-20-2011, 04:40 PM   #5
LQ 5k Club
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Originally Posted by suddat View Post
please help with this!!!
Aside from the fact that they are both programming languages, they have almost nothing at all in common. C is translated into raw CPU instructions, while a shell script is basically a set of commands to run in sequence.


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
Difference between normal shell and login shell Manish Linux - General 7 11-14-2012 09:30 AM
[SOLVED] udp tcp command line tool for shell script programing golden_boy615 Linux - General 4 02-08-2011 07:22 PM
shell script to find the difference betwwn two file and place the difference to other kittunot4u Linux - General 3 07-19-2010 05:26 AM
Shell programing for ip/mac addition in /etc/ethers file raheelch Programming 1 02-24-2010 02:33 AM
Question of SHELL programing frankli Programming 11 07-01-2005 09:39 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:52 PM.

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