background preloader

BASH Help - A Bash Tutorial

BASH Help - A Bash Tutorial
What is the Bash Shell? Bash's Configuration Files Modifying the Bash Shell with the set Command Useful Commands and Features Aliasing Commands Altering the Command Prompt Look and Information CDargs - Shell Bookmarks Basic and Extended Bash Completion Links Links to Bash Scripting Tutorials Contributions Translations What is the Bash Shell? The GNU Bourne-Again SHell (BASH) incorporates features from the C Shell (csh) and the Korn Shell (ksh) and conforms to the POSTIX 2 shell specifications. Bash's Configuration Files Because what I want to say here has already been written I will quote the section entitled "Files used by Bash" from freeunix.dyndns.org's "Customizing your Bash environment" These files are useful for automatically executing commands like: set, alias, unalias, and setting the PS(1-4) variables, which can all be used to modify your bash environment. You can use the source command to apply the changes that you have just made in a configuration file. Set Emacs Mode in Bash Examples: Usage

wgms3d Installation Instructions Installation wgms3d is written in C++ / FORTRAN and needs to be compiled on a Unix-like system (e.g., Linux). The installation follows the more or less standard method of configure / make / make install. However, before installing wgms3d, several other libraries need to be installed on your system; just follow the order on this page. If you have trouble installing wgms3d, contact the contact the author including the shell output of the compilation process in your mail. Prerequisite #1: SuperLU wgms3d expects a shared library libsuperlu.so.4.0.0 as well as SuperLU header files during compilation. The quickest way of installing is simply following the instructions in the "Installation" section below. Quick Installation Download superlu-4.0mk05.tar.gz Extract: tar zxf superlu-4.0mk05.tar.gz ; cd superlu-4.0mk05 Configure: . Ingredients This is how to reproduce the version of SuperLU that I offer for direct download above (superlu-4.0mk05.tar.gz): Prerequisite #2: ARPACK-NG Install arpack-ng.

BashGuide Commands and Arguments -> You are invited to make additions or modifications so long as you can keep them accurate. Please test any code samples you write. All the information here is presented without any warranty or guarantee of accuracy. Use it at your own risk. When in doubt, please consult the man pages or the GNU info pages as the authoritative references. A new version of this guide is currently being drafted. This guide aims to aid people interested in learning to work with BASH. This guide is targeted at beginning users. If something is unclear to you, you are invited to report this (use BashGuideFeedback, or the #bash channel on irc.freenode.org) so that it may be clarified in this document for future readers. You are invited to contribute to the development of this document by extending it or correcting invalid or incomplete information. The primary maintainer(s) of this document: The guide is also available in PDF format. BASH is an acronym for Bourne Again Shell. Important!

Building applications using Mayavi — Mayavi v3.4.1 documentation Mayavi can be used as a fully integrated and interactive 3D plotting tool in a GUI application. Using the event model behind Traits and TVTK, all the different properties of a visualization can be changed dynamically, including the data visualized itself. In this section, we first show how an interactive dialog embedding a Mayavi scene can be built, using Traits. Then we show how to integrate this dialog in a WxPython or a PyQt (or PySide) application. Custom interactive dialogs Mayavi and TVTK are entirely built using the Traits library which provides easy callbacks and visualization for objects attribute. We strongly suggest that you refer to the Traitsdocumentation for more details, and to the tutorial for a quick introduction. Embedding a Mayavi scene in a Traits dialog To build a custom dialog with a Mayavi scene, the best option is to create a class deriving from the base Traits class. from tvtk.pyface.api import Scene #...editor=SceneEditor(scene_class=Scene)#... Warning

bash(1): GNU Bourne-Again SHell Name bash - GNU Bourne-Again SHell Synopsis bash [options] [file] Copyright Bash is Copyright © 1989-2009 by the Free Software Foundation, Inc. Description Bash is an sh-compatible command language interpreter that executes commands read from the standard input or from a file. Bash is intended to be a conformant implementation of the Shell and Utilities portion of the IEEE POSIX specification (IEEE Standard 1003.1). Options In addition to the single-character shell options documented in the description of the set builtin command, bash interprets the following options when it is invoked: -c string If the -c option is present, then commands are read from string. -i If the -i option is present, the shell is interactive. -l Make bash act as if it had been invoked as a login shell (see INVOCATION below). -r If the -r option is present, the shell becomes restricted (see RESTRICTED SHELL below). -s A list of all double-quoted strings preceded by $ is printed on the standard output. [-+]O [shopt_option] --help

GNU Project Software - Free Software Directory - Free Software Foundation GNU is a Unix-like operating system that is free software—it respects your freedom. You can install Linux-based versions of GNU which are entirely free software. The GNU System provides a collection of applications, libraries, and developer tools, plus a program to allocate resources and talk to the hardware, known as a kernel. For a complete list of GNU packages and more, visit gnu.org/software. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the page “GNU Free Documentation License”. The copyright and license notices on this page only apply to the text on this page.

Bash Bash is the GNU Project's shell. Bash is the Bourne Again SHell. Bash is an sh-compatible shell that incorporates useful features from the Korn shell (ksh) and C shell (csh). It is intended to conform to the IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools standard. The improvements offered by Bash include: Command line editingUnlimited size command historyJob ControlShell Functions and AliasesIndexed arrays of unlimited sizeInteger arithmetic in any base from two to sixty-four The maintainer also has a bash page which includes Frequently-Asked-Questions. Downloading Bash Bash can be found on the main GNU ftp server: (via HTTP) and (via FTP). Documentation Documentation for Bash is available online, as is documentation for most GNU software. Mailing lists To ask for help about bash, bash programming or bash shell scripting please use the <help-bash@gnu.org> mailing list. Getting involved Development Translating Bash Maintainer Licensing

Bash (Unix shell) GNU replacement for the Bourne shell As a command processor, Bash operates within a text window where users input commands to execute various tasks. It also supports the execution of commands from files, known as shell scripts, facilitating automation. In keeping with Unix shell conventions, Bash incorporates a rich set of features, including: Bash also offers... Bash supports here documents. Brace expansion, also called alternation, is a feature copied from the C shell. $ echo a{p,c,d,b}e ape ace ade abe$ echo {a,b,c}{d,e,f}ad ae af bd be bf cd ce cf Users should not use brace expansions in portable shell scripts, because the Bourne shell does not produce the same output. $ # bash shell$/bin/bash -c 'echo a{p,c,d,b}e'ape ace ade abe$ # A traditional shell does not produce the same output$ /bin/sh -c 'echo a{p,c,d,b}e'a{p,c,d,b}e When brace expansion is combined with wildcards, the braces are expanded first, and then the resulting wildcards are substituted normally. ls *. [edit] Where .

Bash-it/bash-it: A community bash framework. - GitHub Bash Guide for Beginners 3.2.1. Types of variables As seen in the examples above, shell variables are in uppercase characters by convention. Bash keeps a list of two types of variables: 3.2.1.1. Global variables or environment variables are available in all shells. Below is a typical output: 3.2.1.2. Local variables are only available in the current shell. Below is a diff file made by comparing printenv and set output, after leaving out the functions which are also displayed by the set command: 3.2.1.3. Apart from dividing variables in local and global variables, we can also divide them in categories according to the sort of content the variable contains. String variablesInteger variablesConstant variablesArray variables We'll discuss these types in Chapter 10. 3.2.2. Variables are case sensitive and capitalized by default. To set a variable in the shell, use VARNAME="value" Putting spaces around the equal sign will cause errors. Some examples using upper and lower cases, numbers and spaces: 3.2.3. 3.2.4. 3.2.4.1. or

Bash Bash (Bourne-again Shell) is a command-line shell/programming language by the GNU Project. Its name is a homaging reference to its predecessor: the long-deprecated Bourne shell. Bash can be run on most UNIX-like operating systems, including GNU/Linux. Invocation Bash behaviour can be altered depending on how it is invoked. If Bash is spawned by login in a TTY, by an SSH daemon, or similar means, it is considered a login shell. Bash is considered an interactive shell when its standard input and error are connected to a terminal (for example, when run in a terminal emulator), and it is not started with the -c option or non-option arguments (for example, bash script). Note: In Arch /bin/sh (which used to be the Bourne shell executable) is symlinked to /bin/bash. Configuration files See 6.2 Bash Startup Files and DotFiles for a complete description. Note: Login shells can be non-interactive when called with the --login argument. Shell and environment variables VARIABLE=content export VARIABLE

BASH Programming - Introduction HOW-TO Next Previous Contents BASH Programming - Introduction HOW-TO by Mike G mikkey at dynamo.com.ar Thu Jul 27 09:36:18 ART 2000 This article intends to help you to start programming basic-intermediate shell scripts. It does not intend to be an advanced document (see the title). 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 13.1 Ways Calling BASH 14.

Related: