Copied /etc/php.ini to /home/hoge/backup.
At that time, I changed the file name to php72_20221219.ini.
Then go to /home/hoge/backup
#yum remove php*
After you run ,
Plug-ins loaded: fastestmirror, langpacks
Does not match argument: php72_20221219.ini
No packages have been marked for deletion.
appears.
Why? What do you mean?
Does this command have different results depending on where you run it?
The *
entered manually from the command line is shell glob, so any filename directory names that match the glob rule are expanded to them.There is a file called php72_20221912.ini
in your /home/hoge/backup
directory.
#cd/home/hoge/backup
# echo php*
php72_20221912.ini
#
The exact same thing happens with yum remove
, so yum remove php*
will expand to yum remove php72_20221912.ini
, and you will get the exact result of the question.
Entering yum remove'php*'
to prevent it from being deployed to the globe should change the behavior (whether that's what you expected or not)
© 2024 OneMinuteCode. All rights reserved.