Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


bash_tips

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
bash_tips [2025/03/20 18:08] juckinsbash_tips [2025/03/20 18:14] (current) juckins
Line 3: Line 3:
 [[https://www.joshstaiger.org/archives/2005/07/bash_profile_vs.html|Tips for using .bashrc vs .bash_profile ]] [[https://www.joshstaiger.org/archives/2005/07/bash_profile_vs.html|Tips for using .bashrc vs .bash_profile ]]
  
-.bashrc root updates:+.bashrc root updates (Rocky Linux 9 version):
  
 <code> <code>
Line 17: Line 17:
 alias ssh='ssh -Y' alias ssh='ssh -Y'
 alias vi='vim' 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 # no funny characters in man pages
 #export LC_ALL="en_US" #export LC_ALL="en_US"
 +
 +# Use 24-hour clock with 'date' command
 +export LC_TIME="en_GB.UTF-8"
  
 # Combine history # Combine history
 export HISTSIZE=10000 export HISTSIZE=10000
 export HISTCONTROL=ignoredups export HISTCONTROL=ignoredups
 +export HISTTIMEFORMAT="%F %T "
 shopt -s histappend shopt -s histappend
 </code> </code>
- 
- 
bash_tips.1742508492.txt.gz · Last modified: 2025/03/20 18:08 by juckins