To resolve this issue, comment out the notice section in the /root/.bashrc file.
To comment out the notice section of the /root/.bashrc file:
- Log in to the source machine as root.
- Run this command to view the contents of the /root/.bashrc file:
cat /root/.bashrc
- Verify that this line exists:
if [[ -e ~/.notice ]]; then cat ~/.notice; fi
- Run this command to save a copy of the original .bashrc file:
cp /root/.bashrc /root/.bashrc.orig
- Using a text editor add a hash (#) before if [[ -e ~/.notice ]]; then cat ~/.notice; fi in the /root/.bashrc file to comment out the notice section.
Note: The example below is a sample of a /root/.bashrc file. Depending on your environment, the /root/.bashrc file may not reflect this example and may contain additional entries. Only modify the line referenced in this step.
Original
# .bashrc
# User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
if [[ -e ~/.notice ]]; then cat ~/.notice; fi
Modified
# .bashrc
# User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# if [[ -e ~/.notice ]]; then cat ~/.notice; fi
- Save the changes to the file.
- Restart the conversion.