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
-
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
Related articles
- i want to exclude the shell script linux command git directory from the search target -i don't know how to use prune
- linux - tr command: delete by exact match
- can i set my home directory to another drive in linux?
- mysql - ec2 amazon linux 2 i want to delete unnecessary files
- handling of regular expression "" in linux command sed
- python 3x - i want to import my own function from another file in the same directory in python 3 series
- linux - about the "bs" option of the dd command
- linux - vagrant command cannot be used
- Linux nohup command principle and example analysis
- i want to change the home directory on linux
- i want to display users with the linux command history
- linux - can't find docker command
- Linux delete system comes with a detailed explanation of the process of Python
- Linux execution executable file prompt No such file or directory solution
- linux: extract values with the jq command
- linux - execution result of cat command and user name are displayed on the same line
- linux - regarding remote command execution with ssh
- about mkdir command in alpine linux
- linux - i want to delete the untracked files displayed in git status
- linux - assign the result of the command to a variable
Trends
If the file to be deleted can be specified,
rm /var/www/html/phpMyAdmin.conf
can be specified with the full path.