LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-22-2012, 02:12 PM   #1
deepankerchawla
LQ Newbie
 
Registered: Oct 2012
Location: India
Distribution: Ubuntu
Posts: 8

Rep: Reputation: Disabled
Bash,perl,samba,apache


i am not understanding what is bash,perl,python,samba,apache etc and what is the difference between them?
 
Old 10-22-2012, 02:16 PM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,253

Rep: Reputation: 559Reputation: 559Reputation: 559Reputation: 559Reputation: 559Reputation: 559
The simple answer is that bash,perl and python are interpreted programming/scripting languages whereas samba and apache are two different types of server but the long answer is much more complex I suggest you google them.
 
1 members found this post helpful.
Old 10-23-2012, 08:25 AM   #3
deepankerchawla
LQ Newbie
 
Registered: Oct 2012
Location: India
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: Disabled
and for the future in Linux server administration with which language I have to go (bash,perl ,python or someone).
 
Old 10-23-2012, 08:41 AM   #4
jsaravana87
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 558
Blog Entries: 5

Rep: Reputation: Disabled
You had missed out shell (sh) is one of popular linux programming/scripting language in linux
 
Old 10-23-2012, 10:25 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,933

Rep: Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692
Quote:
Originally Posted by deepankerchawla View Post
and for the future in Linux server administration with which language I have to go (bash,perl ,python or someone).
Any or all of them, and probably a few more you didn't mention.

Also, Google is an important tool for administrators...it lets you look up answers to questions, such as the one you posted.
 
Old 10-23-2012, 10:28 AM   #6
deepankerchawla
LQ Newbie
 
Registered: Oct 2012
Location: India
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by arun5002 View Post
You had missed out shell (sh) is one of popular linux programming/scripting language in linux
okkk.it means i have to go with bash for making future in linux server administration.
 
Old 10-23-2012, 10:28 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,933

Rep: Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692
Quote:
Originally Posted by arun5002 View Post
You had missed out shell (sh) is one of popular linux programming/scripting language in linux
No, didn't miss it...the OP didn't mention it, nor did they mention any of the MANY popular programming/scripting languages. Also, sh is NOT just a scripting language...it is a SHELL, much like bash or ksh.
 
Old 10-23-2012, 11:20 AM   #8
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,166
Blog Entries: 10

Rep: Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979
Quote:
Originally Posted by deepankerchawla View Post
okkk.it means i have to go with bash for making future in linux server administration.
No, you don't "have to" go with bash, but it's a start.
Perl for System Administration

Don't feel too badly for me, I've used bash for years.

Right now I am trying to Avoid the lifelong habit of chopping up output using grep+awk+sed
and I feel that bash is not the best use of coding resources, so I am making the move to Perl.

In bash, when I get to
Code:
grep something /var/log/some.log | grep -v somethinglelse
and add some
Code:
awk '{print $n}'
statements well, I just feel it's time to get better at looking at the same data, but in a different "way".

My current exercise is posted here where I am trying to chop up /var/log/secure files from
remote CentOS machines looking for conclusive data. Progress is slow but I am making progress

It's been a challenge because after 18 years in IT and being the "Hardcore Linux Guy" at c9, it surprises me that I don't have this skill.
"Bash, perl, samba, and apache" are words in a vocabulary I speak every day.

I love programming in general, always have.
dBase III+ from "back in the day" and shell scripting now.

My personal site is a shrine to "looking under the hood".

I recently purchased the 2 attached.JPGs. I am reading Programming Perl until Learning Perl arrives next week.

Have Fun.

Last edited by Habitual; 06-26-2015 at 06:47 PM.
 
1 members found this post helpful.
Old 10-23-2012, 07:54 PM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Learning Perl is good, but I'd recommend bookmarking these
http://perldoc.perl.org/ - complete perl lang, by example, plus tutorials
http://www.perlmonks.org/?node=Tutorials - tutorials from perlmonks website; where the gurus hang out

Finally, the Perl Cookbook book is worth its weight in $mineral - loads of solns to loads of problems, grouped by type .
Here's the chapter headings

Chapter 1: Strings
Chapter 2: Numbers
Chapter 3: Dates and Times
Chapter 4: Arrays
Chapter 5: Hashes
Chapter 6: Pattern Matching
Chapter 7: File Access
Chapter 8: File Contents
Chapter 9: Directories
Chapter 10: Subroutines
Chapter 11: References and Records
Chapter 12: Packages, Libraries, and Modules
Chapter 13: Classes, Objects, and Ties
Chapter 14: Database Access
Chapter 15: Interactivity
Chapter 16: Process Management and Communication
Chapter 17: Sockets
Chapter 18: Internet Services
Chapter 19: CGI Programming
Chapter 20: Web Automation
Chapter 21: mod_perl
Chapter 22: XML

HTH
 
Old 10-24-2012, 08:28 AM   #10
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,166
Blog Entries: 10

Rep: Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979
Quote:
Originally Posted by chrism01 View Post
Learning Perl is good, but I'd recommend bookmarking these
http://perldoc.perl.org/ - complete perl lang, by example, plus tutorials
http://www.perlmonks.org/?node=Tutorials - tutorials from perlmonks website; where the gurus hang out

Finally, the Perl Cookbook book is worth its weight in $mineral - loads of solns to loads of problems, grouped by type .
Here's the chapter headings

Chapter 1: Strings
Chapter 2: Numbers
Chapter 3: Dates and Times
Chapter 4: Arrays
Chapter 5: Hashes
Chapter 6: Pattern Matching
Chapter 7: File Access
Chapter 8: File Contents
Chapter 9: Directories
Chapter 10: Subroutines
Chapter 11: References and Records
Chapter 12: Packages, Libraries, and Modules
Chapter 13: Classes, Objects, and Ties
Chapter 14: Database Access
Chapter 15: Interactivity
Chapter 16: Process Management and Communication
Chapter 17: Sockets
Chapter 18: Internet Services
Chapter 19: CGI Programming
Chapter 20: Web Automation
Chapter 21: mod_perl
Chapter 22: XML

HTH
Thanks Chris. I value your opinion on the matter.
 
Old 11-15-2012, 09:20 AM   #11
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,166
Blog Entries: 10

Rep: Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979
Quote:
Originally Posted by chrism01 View Post
...Finally, the Perl Cookbook book is worth its weight in $mineral
Thanks Chris.
I just ordered the 2nd Edition.
 
Old 11-15-2012, 08:19 PM   #12
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Excellent

Can I just make a few recommendations, having looked at your 2 threads.
(for best practice)

1. always use
Code:
use strict;
at the top of your code (after the shebang line)

2. Open a file with 3 arg open, assign rec name, ... close file as soon as you have finished with it.
Code:
open(INFILE, "<", $cfg_file) or die "Unable to open $cfg_file: $!\n";
while ( defined ( $cfg_rec = <CONFIG_FILE> ) )
{
   chomp $cfg_rec;
   .
   .
}
close (CONFIG_FILE) or die "Can't close cfg file: $!\n"
 
1 members found this post helpful.
  


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
passing variable from bash to perl in a bash script quadmore Programming 6 02-21-2011 05:11 AM
bash vs perl Xris718 Linux - General 9 04-08-2005 04:19 PM
Problem with perl module for w3c validator to work on my local Apache+PHP+perl instal tbamt Linux - Software 0 12-16-2004 06:37 PM
chrooting apache v2 (php, ssl, perl support) ; perl configuration markus1982 Linux - Security 3 01-26-2003 07:15 PM
can i set ~/public_html/perl as a perl directory for apache? doublefailure Linux - Networking 1 07-09-2002 05:31 PM


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