Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Why not use the ifconfig command under RedHat Linux 5     - MySQL high availability cluster fragmentation of deployment uses Cobar (Database)

- Ubuntu is not in the sudoers file problem solving (Linux)

- What is the Docker (Linux)

- CentOS7 installation configuration (Server)

- Oracle 12c detailing the new features (Database)

- MySQL my.cnf sql_mode schema modifications (Database)

- MySQL in order by inaccurate results in problems and solutions (Database)

- Linux kernel netpoll framework netconsole (Linux)

- rsync server set up (Server)

- Java Annotation Comments (Programming)

- Hard disk encryption to protect data security (Linux)

- Modify grub solve computer startup error: ERROR 17 (Linux)

- How to run Kali Linux 2.0 in Docker container (Linux)

- Use OpenSSL for RSA encryption and decryption (Linux)

- Design and implementation of environment sniffer running under Linux (Linux)

- Linux, Chrome browser font settings beautification (Linux)

- Linux system boot process ARM platforms (Linux)

- CentOS 6 compiling httpd-2.4.10 (Server)

- Detailed Linux su command to switch users Mistakes (Linux)

- MySQL Tutorial: Building MySQL Cluster under Linux (Database)

 
         
  Why not use the ifconfig command under RedHat Linux 5
     
  Add Date : 2018-11-21      
         
         
         
  I installed End RedHat Linux 5, the terminal use some orders, such as: ifcinfig Check the IP of the machine and found that this order can not be used, suggesting that "command not found", how do? Imagine the environmental variables are not loading , Then modify the environment variables, modify the following:

1, the initial installation After the completion of the system, the system in order to be more secure, some of the command path is not in the PATH environment variable, you can use echo $ PATH command query that add path to the PATH environment variable as follows:

(Such as adding / sbin to the PATH environment variable)

(1) If you only want to start this process in the temporary add changes, the next boot is invalid, you can:

Enter export PATH = $ PATH: / sbin

(2) If you only add to the current user permanently:

In the ~ / .bash_profile near the end of a similar line PATH = $ PATH: $ HOME / bin Add: / sbin, it becomes PATH = $ PATH: $ HOME / bin: / sbin

After modifying and maintaining the file, run the source ~ / .bash_profile command to make the modification take effect immediately.

(3) If all users in the system are permanently added, then:

At the end of the / etc / profile file, add export PATH = $ PATH: / sbin

After modifying and maintaining the file, run the source etc / profile command to make the modification take effect immediately.

2, there is a solution

[Root @ admin007] # / sbin / ifconfig

Or modify the / etc / profile file

[Root @ amdin007] # vi / etc / profile

Comment out the following if statement

# Path manipulation

If [ "$ EUID" = "0"]; then

Pathmunge / sbin

Pathmunge / usr / sbin

Pathmunge / usr / local / sbin

Fi

change into:

# Path manipulation

#if [ "$ EUID" = "0"]; then

Pathmunge / sbin

Pathmunge / usr / sbin

Pathmunge / usr / local / sbin

#fi

Save, restart the system!

After the system starts, try using the command in the terminal to see if it has any effect.
     
         
         
         
  More:      
 
- Install Ubuntu text editor KKEdit 0.2.10 (Linux)
- Installation Mate Desktop in FreeBSD 10.1 (Linux)
- Tab set to four spaces in Vim (Linux)
- Linux / Unix system-level IO (Linux)
- Detailed usage history command (Linux)
- CentOS installation of the ftp (Linux)
- Wireshark basic introduction and learning TCP three-way handshake (Linux)
- 10 Linux in the passwd command examples (Linux)
- Oracle 11g DataGuard service to start automatically (Database)
- GNU Linux system variables (sysctl configuration commands) integrated use (Linux)
- How to use the on-screen keyboard in Linux (Linux)
- C ++ inheritance and derived (induction principle) (Programming)
- Linux ACL permissions (Linux)
- Linux Shell Scripting multithreading (Programming)
- ASP.NET 5 tutorial series (Server)
- Manage SQL Server services login (start) account and password (Database)
- Ubuntu 14.04 installed VirtualBox 4.3 appears vboxdrv: Unknown symbol mcount (Linux)
- Use web2py + uWSGI + Nginx Web server built on Linux (Server)
- Graphical interface for the CentOS 6.4 installed and connected by remote VNC (Linux)
- Alien Magic: RPM and DEB Mutual Convert (Linux)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.