Home>
When installing phpmyadmin, the phpMyAdmin.conf file was created in two different directories.
I want to delete the other conf file, leaving only the conf file for future use.
However, if you delete it with the rm command etc., both will disappear, so delete the files in another directory cleanly.
I would like to know how.
Here is the directory!
/var/www/phpMyAdmin.conf (file I want to use in the future)
/var/www/html/phpMyAdmin.conf (conf file I want to delete)
What I'm thinking now is cd/var/www/html/to the directory of the file I want to delete, and delete it with the rm command.

Code
  • Answer # 1

      

    What I'm thinking now is cd/var/www/html/to the directory of the file you want to delete, and delete it with the rm command.

    If the file to be deleted can be specified,rm /var/www/html/phpMyAdmin.confcan be specified with the full path.

  • Answer # 2

    I don't know why they disappear, but do you mean you're scared of a mistake in a relative path?
    rm /var/www/html/phpMyAdmin.conf