What should I do if I accidentally destroy important programs or setup files?
Source: Internet
Author: User
Article Title: What should I do if I accidentally destroy important programs or setting files ?. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
· If one day you find that the music videos you commonly use to kill files cannot be executed, how can you reinstall the music video program?
1. First, use rpm-qf to find out which package the file belongs.
But the question is, how do you know the complete path of the normally used music video?
§ Commonly used commands are usually stored in/bin or/usr/bin.
§ Commands for management are usually placed under/sbin or/usr/sbin.
For the current example, first try/bin/mv or/usr/bin/mv (the bottom line is the input command ):
[Root @ linux: ~] Rpm-qf/bin/mv
Fileutils-4.1-4
2. delete/bin/mv or replace it with another file. Otherwise, if an object already exists (whether the content is correct or not) during the re-installation of rpm ), it will not reload the object.
[Root @ linux: ~] Rm-f/bin/mv
3. mount the Red Hat disc. assume that the default mount point is/mnt/cdrom:
[Root @ linux: ~] Mount/mnt/cdrom
4. switch to the/mnt/cdrom/RedHat/RPMS directory and reinstall fileutils:
[Root @ linux: ~] Cd/mnt/cdrom/RedHat/RPMS
[Root @ linux:/mnt/cdrom/RedHat/RPMS] rpm-Uvh fileutils-* rpm -- force
Preparing... ######################################## ### [100%]
1: fileutils ####################################### #### [100%]
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.