LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-30-2020, 08:08 AM   #1
garryjp
LQ Newbie
 
Registered: Jun 2020
Posts: 9

Rep: Reputation: Disabled
Linux terpreter


How does Linux decide which interpreter to call when running a text script? Describe in detail, the purpose of the ‘shebang’ and how.
 
Old 06-30-2020, 08:13 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Summer Midwest USA, Central Illinois, Winter Central Florida
Distribution: Slackware®
Posts: 13,578
Blog Entries: 34

Rep: Reputation: 2769Reputation: 2769Reputation: 2769Reputation: 2769Reputation: 2769Reputation: 2769Reputation: 2769Reputation: 2769Reputation: 2769Reputation: 2769Reputation: 2769
Moderator Response

This looks like homework so;

LQ Rules
Quote:
Do not post homework assignments verbatim. We're happy to assist if you have specific questions or have hit a stumbling point, however. Let us know what you've already tried and what references you have used (including class notes, books, and searches) and we'll do our best to help. Keep in mind that your instructor might also be an LQ member.
Also look at; https://www.linuxquestions.org/quest...hp?faq=welcome
 
3 members found this post helpful.
Old 06-30-2020, 09:00 AM   #3
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 14,818

Rep: Reputation: 4873Reputation: 4873Reputation: 4873Reputation: 4873Reputation: 4873Reputation: 4873Reputation: 4873Reputation: 4873Reputation: 4873Reputation: 4873Reputation: 4873
you can try wiki for example: https://en.wikipedia.org/wiki/Shebang_(Unix) or look for another explanation on the net.
For me it looks like OP is just a spammer.
https://www.linuxquestions.org/quest...3/#post6139672

Last edited by pan64; 06-30-2020 at 09:12 AM.
 
Old 06-30-2020, 09:16 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,962

Rep: Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375
Quote:
Originally Posted by garryjp View Post
How does Linux decide which interpreter to call when running a text script? Describe in detail, the purpose of the ‘shebang’ and how.
OP, EVERY one of your posts so far have been pretty much verbatim homework questions. If you're trying to learn, that's great, but part of that is YOU doing the research and work to do so.

Asking for clarification on something you're not sure about is one thing...but you're asking us for answers, doing NO research of your own, and showing no effort of your own. It's not us that has to pass this exam/class.
 
2 members found this post helpful.
Old 06-30-2020, 09:20 AM   #5
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: Slackware
Posts: 1,937

Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
OP has even come back and stated they are studying for a certification exam. If you can't do the research and understand what you are being "certified" for, then the certification is just paper and useless to an employer.
 
Old 06-30-2020, 10:24 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,962

Rep: Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375
Quote:
Originally Posted by sevendogsbsd View Post
OP has even come back and stated they are studying for a certification exam. If you can't do the research and understand what you are being "certified" for, then the certification is just paper and useless to an employer.
Yep...which is exactly the reason I give so little weight to a 'certification'. Actually knew a guy from a 'quality' outsourcing firm (which we were forced to work with), who didn't know how to add a user. And supposedly he had 'many certs', and all of their people were 'certified'. It went as well as expected.
 
Old 06-30-2020, 10:36 AM   #7
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: Slackware
Posts: 1,937

Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
Agree - the only reason I have a CISSP and CEH is because my work requires them. Giant PITA to maintain and not cheap either. Doesn't mean I am any smarter, only that ISC2 and eCounsel are richer...
 
Old 06-30-2020, 11:20 AM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,962

Rep: Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375
Quote:
Originally Posted by sevendogsbsd View Post
Agree - the only reason I have a CISSP and CEH is because my work requires them. Giant PITA to maintain and not cheap either. Doesn't mean I am any smarter, only that ISC2 and eCounsel are richer...
Well, there are some certifications that you can't pass easily, which do carry some weight. But cursory searches for sample tests, exam dumps, etc., for most Linux certifications yield a TON to help people skate by. Worked with a guy who would brag about taking the practice exams over and over until they could squeak by, then go get a 'certification'. Didn't KNOW anything, but had lots of pieces of paper.
 
1 members found this post helpful.
Old 06-30-2020, 11:24 AM   #9
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: Slackware
Posts: 1,937

Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
Yeah, the CISSP is one you only want to take once in your life. 6 hour test, yuck.
 
Old 06-30-2020, 11:42 AM   #10
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 9,671

Rep: Reputation: 4316Reputation: 4316Reputation: 4316Reputation: 4316Reputation: 4316Reputation: 4316Reputation: 4316Reputation: 4316Reputation: 4316Reputation: 4316Reputation: 4316
Quote:
Originally Posted by garryjp View Post
How does Linux decide which interpreter to call when running a text script? Describe in detail, the purpose of the ‘shebang’ and how.
And your attempt at an answer is?
 
Old 07-03-2020, 11:40 PM   #11
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: Currently: openSUSE, Raspbian, Slackware. Formerly: CentOS, MacOS, Red Hat. Other: Solaris, Tru64
Posts: 1,979

Rep: Reputation: 325Reputation: 325Reputation: 325Reputation: 325
Quote:
Originally Posted by TB0ne View Post
Yep...which is exactly the reason I give so little weight to a 'certification'.
Yes... That and the come-on used on those thinking about getting a certification: that you'll get that raise and it'll pay for the course(s) and the exam fee in only three years. How long is the certification good for? Well... three years. (How's that treadmill working out for ya?)
 
  


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 On
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:26 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
Open Source Consulting | Domain Registration