Revision as of 12:20, October 2, 2014 by Causes (Talk | contribs)


Source Repository:Funtoo Overlay

Summary: The standard GNU Bourne-again shell.

Use Flags

Log ALL commands typed into bash; should ONLY be used in restricted environments such as honeypots
Build with custom malloc/free overwriting allocated/freed memory
Enable /dev/tcp/host/port redirection
Add support for loading builtins at runtime via 'enable'



RSS/Atom Support

You can now follow this news feed at .
10 February 2015 by Drobbins

Creating a Friendly Funtoo Culture

This news item details some recent steps that have been taken to help ensure that Funtoo is a friendly and welcoming place for our users.
2 February 2015 by Drobbins


CPU_FLAGS_X86 are being introduced to group together USE flags managing CPU instruction sets.
31 January 2015 by Mgorny
View More News...



This is a wiki page. To edit it, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

This is the ebuild for bash, the standard shell for Funtoo Linux systems.

Bash is the GNU Project's Bourne Again SHell, a complete implementation of the IEEE POSIX and Open Group shell specification with interactive command line editing, job control on architectures that support it, csh-like features such as history substitution and brace expansion, and a slew of other features. [1]

Learning Bash

The following articles, written originally for IBM developerWorks by Daniel Robbins, serve as an excellent introduction to the bash shell:

Moving on Command Line

Shortcut Description
Tab Autocomplete
Ctrl + r Search as you type from lastlog
Ctrl + a Move to the start of line
Ctrl + e Move to the end of line
Ctrl + k Cut from cursor to the end of line
Ctrl + w Cut from cursor to the previous whitespace
Ctrl + c Clear line
Ctrl + l Clear screen
Alt + f Move one word forward
Alt + b Move one word backwards
Alt + d Cut from cursor to the end of word
Alt + backspace Cut from cursor to the start of word

Bash Completion

See bash completion page.

Configuration Files


~/.bashrc gets loaded on bash startup. You can source files, put aliases, functions and export variables there.

~/.bashrc (bash source code) - bash runtime configuration
source /etc/profile.d/

export EDITOR="vim"

alias mv='mv -v'
alias cp='cp -v'
alias rm='rm -v'

alias e='emerge'
alias eu='emerge -uavDN --with-bdeps=y @world'

alias used='cat  ~/.bash_history | sort | uniq -c | sort -n'

calculator() {
        echo "$@" | bc