6

I have a computer science test coming up on basic bash scripting. We work on offline-only linux machines (pretty much stock Fedora) that have all the typical man/info pages installed. That being said, memorizing things like bash if statement tests and stuff is quite monotonous, is there a man/info page that covers simple topics like if syntax, bash script syntax, etc.?

Alexander
  • 59,041
  • 12
  • 98
  • 151

2 Answers2

8

The description of bash syntaxes like if statements or for loop is in the command help.

Alexander
  • 59,041
  • 12
  • 98
  • 151
Lie Ryan
  • 62,238
  • 13
  • 100
  • 144
2

Even if man pages are very handy I would recommend you to use simple tutorial-like pages. These are some:

http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html

http://linuxconfig.org/bash-scripting-tutorial

They cover the most basic and simple things you should know.

ederollora
  • 1,165
  • 2
  • 11
  • 29
  • I have tons of online resources available to me, I'm just looking for offline man pages that are typical to linux machines. – Alexander Mar 05 '14 at 09:31
  • Every command should have a man page. You could enter here: http://ss64.com/bash/ and note down de most important commands or topics that you are studying. The is just "man noted_command" and you should get its related info. – ederollora Mar 05 '14 at 09:40
  • However, you could always look for a "cheatsheet", which covers with tiny information, a wide range of commands and syntax for an specific language. For example: http://nomikos.org/wp-content/uploads/2010/06/bash_cheat_sheet.png – ederollora Mar 05 '14 at 09:42