LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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: 16

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: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
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 Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320
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: 26,678

Rep: Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971
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: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
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: 26,678

Rep: Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971
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: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
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: 26,678

Rep: Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971
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: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
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: 11,240

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
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: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
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



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 11:02 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