The Linux root home directory does not have a. BASHRC (-bash-3.1#)

Source: Internet
Author: User

First, the problem description
Recently logged into my system found-bash-3.1#,
Further review the found root home directory does not have. BASHRC, there are. Bash_profile,.bash_history,

Second, the solution steps
1. Check for problematic machines

# cat/etc/redhat-release Red Hat Enterprise Linux Server release 5.1 (tikanga)

2, go to the normal machine
Go to red Hat Enterprise Linux Server Release 5.1 to view the. BASHRC in the root home directory and copy the file to the problematic machine.

# CAT/ROOT/.BASHRC # bashrc# User specific aliases and Functionsalias rm= ' rm-i ' Alias cp= ' cp-i ' Alias mv= ' mv-i ' # Source Global definitionsif [-F/ETC/BASHRC]; Then. /etc/bashrcfi

3, no restart, re-enter
Re-entry through Xshell, Normal!

The Linux root home directory does not have a. BASHRC (-bash-3.1#)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.