The file cannot be erased

Asked 2 years ago, Updated 2 years ago, 51 views

environment
Windows 10
vagrant
virtualbox
cent-os
cyberdug
putty

events
The emacs compressed file: emacs-26.1.tar.xz was installed in the virtual development environment.However, I realized that this wasn't what I wanted to install and tried to erase it.But I couldn't erase it.

what someone did
Change file permissions from cyberdug→permission deny
Change permissions in chmod → Unauthorized operation
rm → No → No permission

How can I delete the file?

centos

2022-09-30 17:49

2 Answers

It appears that you do not have permission to perform the operation.
If you can use sudo in getent group sudo, and if it's okay, you can delete the file by setting it to sudo.


2022-09-30 17:49

Self-Solution

$sudo:granting temporary root privileges
root:maximum privileges

People like me who are ignorant of the unix system and have experienced the same thing should look at this↓
https://eng-entrance.com/linux-root

How to clear with root privileges

$sudorm filename

Let's say


2022-09-30 17:49

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.