Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Make bash more useful and fun

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author

User avatar
Jackiebrown
Posts: 1246
Joined: 2007-01-02 04:46
Location: San Antonio, TX

#2 Post by Jackiebrown »

My favorite debian specific one is

echo '. /etc/bash_completion' >> ~/.bashrc

adds autocompletion to bash for debian commands and packages

juasiepo
Posts: 1
Joined: 2007-03-10 10:31
Location: South Korea

bash_completion

#3 Post by juasiepo »

Jackiebrown wrote:My favorite debian specific one is

echo '. /etc/bash_completion' >> ~/.bashrc

adds autocompletion to bash for debian commands and packages
Or you can also uncomment these lines in /etc/bash.bashrc file
# enable bash completion in interactive shells
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi

User avatar
garrincha
Posts: 2335
Joined: 2006-06-02 16:38

#4 Post by garrincha »

1. Getting Started with BASH
A Bash Tutorial
:

http://www.hypexr.org/bash_tutorial.php

2. Linux Shell Scripting Tutorial v1.05r3
A Beginner's handbook
:

http://www.freeos.com/guides/lsst/

3. Advanced Bash-Scripting Guide
An in-depth exploration of the art of shell scripting
:

http://tldp.org/LDP/abs/html/

Enjoy!:)
Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."

User avatar
ingo
Posts: 195
Joined: 2007-04-15 14:15
Location: http://www.hi-motorbiketours.com

#5 Post by ingo »

Wow, I've always wanted to know about command line stuff - some of the links are real eye-openers which will take a while to digest :P

oliver
Posts: 4
Joined: 2007-04-15 16:26

#6 Post by oliver »

my two favourite tips:

1) add the following to /etc/inputrc and hitting "$ cd <tab><tab>" won't show all the dot files

Code: Select all

set match-hidden-files off

2) Add the following to /etc/profile (or wherever you want) to stop a resized terminal from overwriting the old text

Code: Select all

shopt -s checkwinsize

Post Reply