Beginner Bash: Must-Know Bash Commands

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
droope
Posts: 801
Joined: Fri 01 Aug 2008, 00:17
Location: Uruguay, Mercedes

Beginner Bash: Must-Know Bash Commands

#1 Post by droope »

What seems hard is actually easy, while what looks like impossible is in fact hard.

“Hard things take time to do. Impossible things take a little longer.â€￾ –Percy Cerutty

[url=http://droope.wordpress.com/]Mi blog[/url] (Spanish)

User avatar
fratermus
Posts: 20
Joined: Thu 28 May 2009, 22:05
Location: 75081
Contact:

#2 Post by fratermus »

The author seems to conflate "bash" and "shell". To complicate matters further, s/he also seems to believe that utilities like editors and find are functions of the shell.*

The kinds of things one should know about bash in particular would be something like:
  • bash-specific config file names and uses
  • efficiency techniques like command-line editing and history, tab completion
  • parameter/variable expansion
  • the fact that bash is not everywhere, and it is good to know how to work with a vanilla Bourne shell, for portability purposes if nothing else.



* one might argue that in a busybox scenario much of the distinction is lost
Eee 900 (16GB SSD), 2GB RAM, Puppy Linux 5.1.1

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#3 Post by technosaurus »

droope - nice post, but could you maybe pick a thread for these? - not that I care about cluttering up the forum ... it would just be cool to have them together

fratermus - yes & now busybox even has a bash applet that will alias either hush or ash, but really bash scripting could include anything that can be scripted in bash - at least in the Linux standard base - although bash is not everywhere, that is when you change #!/bin/sh to #!/bin/bash (I try to make things at least busybox compatible for sh, dash is too clunky - its hard to believe that ubuntu is still using dash when they have busybox)
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#4 Post by ttuuxxx »

technosaurus wrote:droope - nice post, but could you maybe pick a thread for these? -
maybe the one I started last year, already has 2 pages.
ttuuxxx
http://www.murga-linux.com/puppy/viewtopic.php?p=288853
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

Post Reply