Raspberry Pi's. bashrc and. bash_aliases files,

Source: Internet
Author: User

Raspberry Pi's. bashrc and. bash_aliases files,

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






Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.