Fedora is a kind of Linux system, most of the operations also need commands to complete, there are users reflected in the Fedora system using ifconfig, netstat command, Found that these two commands can not be found, the following small series will introduce the solution.
If the following problems:
[root @ thunderspeed ~] # ifconfig
bash: ifconfig: command not found .. .
[root@thunderspeed ~]#
[root@thunderspeed ~]# netstat
bash: netstat: command not found. .
[root@thunderspeed ~]#
Analyze the problem
1.whereis ifconfig See which directory this command is in
2.echo $PATH Look at the directory is under the path, pay attention to the lunux is completely case-sensitive, so do not ignore this
3. Execute the command, you need to specify the path or add the directory to the PATH
So you can access
Method 1: [root@localhost sbin]$ /sbin/ifconfig can be used
Method 2: [root@localhost sbin]$ export PATH=$ PATH: /sbin, after this setting, you can directly access the next time, to avoid the first kind of trouble, such as:
[root@localhost /]$ ifconfig
Modify /etc /profile file, comment out the if statement
Comment out the following if statement:
# Path manipulation
if [ “$EUID” = “0&rdquo ; ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbi n
fi
Modified to
# Path manipulation
# if [ “$EUID” = “0” ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
#fi
If it doesn't work, you may need to install it Use proves to search for dependencies
sudo yum provides ifconfig
The search results are: net-tools So you need to install the net-tools package
sudo yum install net-tools
Save, restart
The above is the way Fedora can't find the ifconfig, netstat command. If you can't solve the problem through the method described in this article, you can try to reinstall the two. command.
Under Ubuntu system, you can set the shortcut key of the startup program, so you do
Linux rights management is a professional knowledge, there are many ways to manage Linux permissions
The disk space in the Linux virtual machine is not enough. When you mount a hard di
Usually we use the command to view the disk mounted in the Linux system, in fact, in addition to thi
How to achieve synchronization between different terminals in Linux system
Ubuntu 12.04 system boot space is insufficient to delete the old kernel
How to regularly clean up Nginx logs in Linux system
What should I do if Unix cannot find the apue.h file?
Linux view method of memory resource usage
RPM Software Package Operation Guide
How does UNIX set the user ID bit?
Ubuntu prompts missing fonts after installing WPS. What should I do?
How to turn off the scp and sftp commands in Linux
How does Ubuntu automatically switch between the mouse and the shared clipboard under VirtualBox?
How to use rsa password-free login in Linux
Several tips for strengthening the security of Linux systems
Win7 system computer prompts can not find the rundll32.exe application?
PS how to undo the error steps PS undo error step tutorial
Win8.1 system English font rendering is not normal solution
How to set up a hidden USB device for the win7 system pure version?
What if Windows 8.1SecureBoot is not configured correctly?
Win10 does not fix the method of quickly accessing the list folder.
Explanation: When a segmentation error occurs, how does the Linux system generate the core file
Master solves Win8.1 Update can not start has a trick
Microsoft official statement: Win10/Win8.1 purchase application error. Please try again
How does WinXP automatically clean up the Temp folder to improve system speed