Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Looking for a Bash Scripting/Programming book.


  • Please log in to reply
6 replies to this topic

#1 Pheno^

Pheno^

  • Members
  • 18 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:United States, East Coast
  • Local time:04:06 PM

Posted 17 April 2016 - 01:23 PM

I'm a Microsoft guy, but with the announcement of Bash coming to Windows 10, I figured now is a great time to finally get skilled in Bash. 

 

This book looks good to me, but I'm not sure if it will go deep enough in the shell scripting section. http://www.wiley.com/WileyCDA/WileyTitle/productCd-111909206X,miniSiteCd-SYBEX.html

 

Anyone know of any good books to learn this stuff?

 

Edit: I'm a fan of hands-on labs.

 


Edited by Pheno^, 17 April 2016 - 01:29 PM.


BC AdBot (Login to Remove)

 


#2 Guest_hollowface_*

Guest_hollowface_*

  • Guests
  • OFFLINE
  •  

Posted 17 April 2016 - 01:46 PM

I would point out that the chaper list doesn't actually state which shell(s) it will be covering using. I don't have an alternative book recommendation though.



#3 Gary R

Gary R

    MRU Admin


  • Malware Response Team
  • 801 posts
  • OFFLINE
  •  
  • Gender:Male

Posted 17 April 2016 - 11:56 PM

Books no, but I've found the following web pages useful ...

 

http://linuxcommand.org/  there's a pdf book that can be downloaded that covers the same material ... http://sourceforge.net/projects/linuxcommand/files/TLCL/13.07/TLCL-13.07.pdf/download

 

http://linux.die.net/Bash-Beginners-Guide/intro_10.html

 

https://www.gnu.org/software/bash/manual/bashref.html

 

http://www.open-of-course.org/courses/course/view.php?id=45

 

The last one is for Unix, but there's a great deal of commonality between Unix commands and Bash commands.



#4 mremski

mremski

  • Members
  • 493 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:NH
  • Local time:09:06 PM

Posted 18 April 2016 - 05:18 AM

Plenty of sources that show up by Google.

One subtle thing that Garry points out is Unix commands and Bash commands.   Like most shells on Unix systems, Bash has a lot of "built-in" commands that provide similar functionality, typically expanded capability. 

Looks like you've already figured out that Bash is akin to command.exe, so Bash will give you a means to an end.

Careful of spacing, very important, especially on "if" statements.

Lots of difference between local variables and those exported.


FreeBSD since 3.3, only time I touch Windows is to fix my wife's computer


#5 DeimosChaos

DeimosChaos

  • BC Advisor
  • 1,420 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:United States, Delaware
  • Local time:04:06 PM

Posted 18 April 2016 - 07:38 AM

I don't know of any books either. But if you just do a google search for bash tutorials you get a load of different things. I would just start looking through those.

 

To add on to what mremski was saying, also be careful with capitalization, bash is case sensitive as where Windows is not.


OS - Ubuntu 14.04/16.04 & Windows 10
Custom Desktop PC / Lenovo Y580 / Sager NP8258 / Dell XPS 13 (9350)
_____________________________________________________
Bachelor of Science in Computing Security from Drexel University
Security +


#6 mremski

mremski

  • Members
  • 493 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:NH
  • Local time:04:06 PM

Posted 18 April 2016 - 07:42 AM

And in Bash your directory separators are in the correct direction (forward slash)/


FreeBSD since 3.3, only time I touch Windows is to fix my wife's computer


#7 Pheno^

Pheno^
  • Topic Starter

  • Members
  • 18 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:United States, East Coast
  • Local time:04:06 PM

Posted 19 April 2016 - 03:59 PM

Thanks for the ideas guys.  :)






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users