bash_tips
Bash Tips
Tips for using .bashrc vs .bash_profile
.bashrc root updates (Rocky Linux 9 version):
# Added by CJ # Set prompt PS1="[\u@\h: \w]# " PATH=$PATH:$HOME/bin:. export PATH unset USERNAME alias ssh='ssh -Y' alias vi='vim' alias space='df -hP |grep -v tmpfs|grep -v efivarfs' alias kernels='rpm -qa |grep kernel | sort' # no funny characters in man pages #export LC_ALL="en_US" # Use 24-hour clock with 'date' command export LC_TIME="en_GB.UTF-8" # Combine history export HISTSIZE=10000 export HISTCONTROL=ignoredups export HISTTIMEFORMAT="%F %T " shopt -s histappend
bash_tips.txt · Last modified: 2025/03/20 18:14 by juckins