I can not get my .bash-aliases to work with 20.04. It is the same as I use in 18.04.
/media/andy/81353260-b5a5-4b72-9fce-432e7c620fdc/home/andy/
andy@7:~$ source ~/.bash_aliases
bash: /home/andy/.bash_aliases: No such file or directory
I can not get my .bash-aliases to work with 20.04. It is the same as I use in 18.04.
/media/andy/81353260-b5a5-4b72-9fce-432e7c620fdc/home/andy/
andy@7:~$ source ~/.bash_aliases
bash: /home/andy/.bash_aliases: No such file or directory
added the line, alias fixit="hello world" to ~/.bash_aliases
source ~/.bash_aliases
alias | grep fixit shows: alias fixit='hello world'
Can you show the contents of .bash_aliases
# bash aliases 8/11/18
#
# THEIR WILL BE ERRORS IF ANY PROGRAMS THAT THE ALIASES USE IS REMOVOVED!!!!
#
export HISTFILESIZE=500
export PS1="\u@\h_\w$ "
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias new='ls -alt|more'
alias si='lsattr'
alias sc='cd /home/andy/bin'
alias dwn='cd /home/andy/Downloads'
alias doc='cd /home/andy/Documents'
alias edcron='crontab -e'
alias hm='cd /home/andy'
alias x='exit'
alias date_time="date '+%m/%d/%Y %I:%M:%S %p'"
alias cl='clear'
alias clean="CleanUp.sh"
alias al='alarm.sh'
alias ga='galculator'
alias speed='speedtest-cli'
alias sha='sha256sum *.iso'
alias blame='clear; date +%I:%M:%S_%D >> Boot_Time.txt; systemd-analyze blame >> /home/andy/Downloads/Boot_Time.txt; systemd-analyze blame'
alias bootime="systemd-analyze"
alias RemoveSpaces='rename "s/ //g" *'
alias xscr="xscreensaver-demo"
alias rem_spaces="Remove_Spaces_Etc.sh"
alias mp4mp3="mp4tomp3.sh"
alias al="alias"
You did copy the file from /media/andy/81353260-b5a5-4b72-9fce-432e7c620fdc/home/andy/.bash_aliases
into ~/.bash_aliases
, right? Because that's the only way that bash_aliases will work. It will not work if the bash_aliases file is on another filesystem, unless you do source /media/andy/81353260-b5a5-4b72-9fce-432e7c620fdc/home/andy/.bash_aliases
every time you run the shell.
.bash_aliases is in /media/andy/81353260-b5a5-4b72-9fce-432e7c620fdc/home/andy/
Well do the following at once:
cp /media/andy/81353260-b5a5-4b72-9fce-432e7c620fdc/home/andy/.bash_aliases ~/.bash_aliases
...and be on your merry way.
thanks gordon, it is working perfectly now.