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: