HPC/Linux Guides: Difference between revisions
m (→Intermediate) |
mNo edit summary |
||
Line 54: | Line 54: | ||
:* By Carl Albing, JP Vossen, Cameron Newham; O'Reilly, May 2007; about $30–$50. | :* By Carl Albing, JP Vossen, Cameron Newham; O'Reilly, May 2007; about $30–$50. | ||
:* Related materials at http://bashcookbook.com/ | :* Related materials at http://bashcookbook.com/ | ||
== Advanced == | == Advanced == | ||
Line 63: | Line 61: | ||
; [http://bashcookbook.com/bashinfo/ The Comprehensive List of bash Reference Documentation and Examples]: | ; [http://bashcookbook.com/bashinfo/ The Comprehensive List of bash Reference Documentation and Examples]: | ||
: Various documentation resources, sources, snippets, metadata across multiple versions (from the [http://bashcookbook.com/ bash Cookbook wiki]). | : Various documentation resources, sources, snippets, metadata across multiple versions (from the [http://bashcookbook.com/ bash Cookbook wiki]). | ||
; [http://stackoverflow.com/a/1220118/5999218 What's your most prodctive shortcut with vim?] | |||
: A question asked on [http://stackoverflow.com Stackoverflow], with an enlightening answer. |
Revision as of 15:26, August 11, 2016
To use Carbon and other HPC systems, you will need to become familiar with the Unix/Linux ways of doing things. You will be navigating directories, create, view, and edit various text files, and run commands on the shell command line and in scripts. As you become comfortable and learn more about commands and shell features you will find that you get much more efficient.
There are numerous resources to get you started; some are shown below.
A note on free vs. paid content: Free web pages and PDFs provide mostly the extreme ends of coverage and style – either short introductions or detailed reference materials. Those are relatively straightforward to put together. True teaching materials intended to present a gradual learning curve, however, require quite some effort to prepare and hence usually are available for purchase only. Choose wisely.
Beginners
- The Linux Command Line – A Complete Introduction
-
- By William E. Shotts Jr.; No Starch Press, January 2012; about $30 – $40 in print or as ebook.
- Fairly gentle tutorial introducing Linux in general and command line usage in particular (2012, new and promising). --stern
- Manipulating Data on Linux
- By Harry Mangalam, UC Irvine.
Very good introduction to concepts and tools, especially for persons coming from a Windows background.
- Introduction to the Linux Command Shell For Beginners (pdf)
- Provides a "fast and simple introduction to using the Linux command shell and some of its basic utilities. Assumes very little or even no prior exposure to the Linux command prompt. References to DOS commands are made where appropriate. This document was meant to accompany an instructor-led tutorial on this subject, and therefore some details have been left out."
- Very short, but does cover the basics of managing files and directories, and touches on key concepts like redirections and pipes. --stern
- Learning the bash Shell – Unix Shell Programming
-
- By Cameron Newham; O'Reilly, March 2005; about $30–$50.
- Valuable introduction, with exercises --stern.
- The Bash Guide for Beginners
- "Gets you started with Bash scripting…. Everybody who wants to make life easier on themselves, power users and sysadmins alike, can benefit from reading this practical course. The guide contains lots of examples and exercises at the end of each chapter, demonstrating the theory and helping you practice."
Classes
Onsite users can benefit from classes occasionally offered by CIS.
Intermediate
man bash
help cmd
- The Bash manual page is the definitive resource on capabilities and syntax. Covers all details of bash precisely and concisely. The
help
command gives the paragraph from the man page (or a close version thereof) relevant to the bash builtin cmd. - Version note: A couple of major versions of Bash are in concurrent popular use, mostly Bash-3, phasing in Bash-4. While simple scripting concepts are applicable to all versions, each version introduces capabilities for more versatile scripting, such as array variables, arithmetic loops, and regular expression matching. The
man
command always shows the capabilities of the version in use on your system. See http://bashcookbook.com/bashinfo/#bash for other versions. --stern - Bash Reference Manual
- "A brief introduction to features found in Bash." For a definitive reference on shell behavior please review the Bash manual page.
- Advanced Bash-Scripting Guide
- "This document is both a tutorial and a reference on shell scripting with Bash. It assumes no previous knowledge of scripting or programming, but progresses rapidly toward an intermediate/advanced level of instruction. The exercises and heavily-commented examples invite active reader participation."
- bash Cookbook – Solutions and Examples for bash Users
-
- By Carl Albing, JP Vossen, Cameron Newham; O'Reilly, May 2007; about $30–$50.
- Related materials at http://bashcookbook.com/
Advanced
- Unix Power Tools
-
- By Jerry Peek, Shelley Powers, Tim O'Reilly, Mike Loukides; O'Reilly, Third Edition 2002. About $40–$70 in print or as ebook.
- The Comprehensive List of bash Reference Documentation and Examples
- Various documentation resources, sources, snippets, metadata across multiple versions (from the bash Cookbook wiki).
- What's your most prodctive shortcut with vim?
- A question asked on Stackoverflow, with an enlightening answer.