We all know that many operations of Linux system require commands to execute. In the process of executing commands, sometimes I encounter [root@localhost ~]# iptraf error prompt. How to solve this problem? The following small series will introduce you to the Linux implementation command prompt [root@localhost ~]# iptraf solution.
Tip:
[root @ localhost ~] # iptraf
-bash: iptraf: command not found
To solve this problem Need to install the corresponding package, many times the command name is not necessarily the name of the package,
The iptraf command here is just the name of the package, so it is better to solve, directly install the package ok It is. As follows:
yum install iptraf
But what if the command name and package name are not the same?
As the iostat command, the command name is not the same as the package name. If it is installed directly, it will fail:
1234567 [root@localhost ~]# yum install iostat
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* rpmforge: mirrors.neusoft.edu.cn
Setting up Install Process
No package Iostat available.
Error: Nothing to do
At this point we need to use the following method:
[root@localhost ~]# yum -q install /usr /bin/iostat
================================================= ==============
======================================= ========================================================================================== Version Repository Size
================================================== =============
======================================== ================================================================== Br>
sysstat x86_64 9.0.4-20.el6 163 225 k
Transaction Summary
=========================== =============================================================== =================================================================== ======
Install 1 Package(s)
Is this ok [y/N]:
where /usr/bin/iostat does not exist Then, why can you find the package you belong to?
In fact, it is to use the rpm database to find. As for why the path /usr/bin is used, it is because this command is a user's command, /usr. This is also a guess. If you can't find the package with this path, just change one.
If you use /bin, you can't find it:
[root@localhost bin]# yum install /bin/iostat
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* rpmforge: mirrors.neusoft.edu.cn
Setting up Install Process
No package /bin/iostat available.< Br>
Error: Nothing to do
The main problem is to look at the path of the command. If it is correct, you should be able to find it.
The above is the Linux execution command prompt [root@localhost ~]# iptraf method is introduced, the main reason for this prompt is caused by the difference between the command name and the software name, you need to find out whether the rpm package to which the command belongs is correct. .
CentOS has just been updated to CentOS7 in recent days, so many users do not know how to install and
In the CentOS system, yum can help users install packages in batches without having
Ncurses is a library. The most used component is a form. In the operation of Linux system, many frie
In Linux system, use Ctrl+Alt+Del shortcut combination to quickly restart the syste
What should I do if VMware does not support full virtualization when installing 64-bit CentOS?
How to clear the private data in the file under Linux
Linux uses Shellscript to install the NIC driver instance
What if CentOS 6.4 can't read ntfs disk?
What about Chinese garbled when creating a website through Tomcat under Ubuntu?
Ubuntu install and switch Nvidia dual graphics driver method
The role of the -exec parameter in the Linux find command
How to embed all LaTex fonts in PDF files under Linux
Ubuntu installs the fort compiler skills
How to install win10 after downloading ISO? ISO image file upgrade Win10 tutorial
Windows 7 shutdown slow solution, smooth operation
Win XP Tips: Automatically Close Script Error Message
What should I do if the QQ2D billiards open fails under the win10 system?
How to solve the problem that Win8.1 desktop icon display is not normal?
Windows 7 interesting discovery
Winxp system web page flash does not show how to solve?
How does the win7 system start Aero effects? Aero effects launch several methods to introduce
Microsoft fixes the last bug and releases a new version of Win10
Microsoft announced the best way to upgrade Win10's first anniversary update