Raspberry Pi's. bashrc and. bash_aliases files

Source: Internet
Author: User
Tags egrep

Raspberry Pi's. bashrc and. bash_aliases files

In your home directory, you can find a hidden file. bashrc that contains user configurations. 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, the alias of some ls commands:

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'

Similar to the alias provided above, it is used to help users in other systems to familiarize themselves with the use (for example, dir is equivalent to ls in DOS/Windows systems ). The other is to add colors to the output results of commands such as ls and grep.

The alias for the variant of more ls commands is also provided:

# Some more ls aliases
# Alias ll = 'LS-l'
# Alias la = 'LS-'
# 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.

Command lines starting with "#" are commented out. To enable them, you only need to remove "#" And wait until your Raspberry Pi starts to activate these settings.

The. bash_aliases file is also referenced here. By default, this file does not exist:

If [-f ~ /. Bash_aliases]; then
.~ /. Bash_aliases
Fi

The if condition is used to check whether the file exists between the imported files.

You can create this. bash_aliases file and add more aliases to it, for example:

Alias gs = 'git status'

You can also directly add other things to this file or other files, as long as the file is included like A. bash_aliases file.

Install Weston on Raspberry Pi

Linux OS for Raspberry Pi is available

Raspberry Pi (Raspberry Pi) trial note

Introduction to Raspberry Pi (Raspberry Pi) installation, IP configuration, and software source

This article permanently updates the link address:

 

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.