In your home directory, you can find a hidden file that contains user configurations.. Bashrc. You can modify the file as needed.
The file provides some useful adjustment settings. By default, some of these settings are commented out.
For example, someLsCommand alias:
alias ls='ls --color=auto'#alias dir='dir --color=auto'#alias vdir='vdir --color=auto'alias grep='grep --color=auto'alias fgrep='fgrep --color=auto'alias egrep='egrep --color=auto'
The alias provided above is used to help users of other systems to familiarize themselves with the use (for exampleDirIt is equivalentLs). Others areLsAndGrepAdd colors to the output results of these commands.
It also provides moreLsAlias of the command variant:
# some more ls aliases#alias ll='ls -l'#alias la='ls -A'#alias l='ls -CF'
Ubuntu users should be more familiar with these settings, because this is the default setting of the Ubuntu release version. Uncomment these commands to make these aliases take effect later.
To"#"The command line at the beginning of the comment. To enable them, you only need"#"Remove. These settings will be activated the next time you start Raspberry Pi.
There are also. Bash_aliasesFile Reference. By default, this file does not exist:
if [ -f ~/.bash_aliases ]; then . ~/.bash_aliasesfi
The IF condition is used to check whether the file exists between the imported files.
You can create this. Bash_aliasesFile, and add more aliases in it, for example:
alias gs='git status'
You can also directly add other things to this file or other files.. Bash_aliasesFiles can be included in the same way.
Address: http://www.raspberrypi.org/documentation/linux/usage/bashrc.md
Raspberry Pi's. bashrc and. bash_aliases files