如何从 linux/fedora 中的 usr/bin 中删除文件夹或文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11152057/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 07:00:27  来源:igfitidea点击:

How to delete a folder or a file from usr/bin in linux/fedora

linuxfedora

提问by Shiva Krishna Bavandla

I am using fedora ,

我正在使用 Fedora ,

Unfortunately i had downloaded a package(for example 'selenium' or 'chrome') in the bin folder. But i don't want that package in the bin folder, i want to remove it from the folder, i am unable do it manually as well as from the the terminal, so can anyone let me know how to delete a package from bin folder.

不幸的是,我在 bin 文件夹中下载了一个包(例如“selenium”或“chrome”)。但是我不希望该包在 bin 文件夹中,我想将其从文件夹中删除,我无法手动以及从终端执行此操作,所以任何人都可以告诉我如何从 bin 文件夹中删除包.

Actually i am trying to download a package as below from terminal

实际上我正在尝试从终端下载如下包

svn checkout http://selenium.googlecode.com/svn/trunk/ selenium- 
read-only

But i didn't see my path in terminal when i am downloading i.e., usr/bin, so the package has been downloaded in bin folder now. Please help me out through this.

但是我在下载 ie 时没有在终端中看到我的路径usr/bin,所以现在这个包已经下载到 bin 文件夹中了。请帮我解决这个问题。

采纳答案by Hekmatof

the /usr/bin folder is a protected folder which usually root user have full access to it so if you want to make a change in it you should have a full access which can gain by "su" or "sudo" commands try these commands on your terminal

/usr/bin 文件夹是一个受保护的文件夹,通常 root 用户对其具有完全访问权限,因此如果您想对其进行更改,您应该拥有可以通过“su”或“sudo”命令获得的完全访问权限,请尝试这些命令在你的终端上

su
<type your root password>
cd /usr/bin
rm <your special file names you want to remove>

you can do it by sudo too

你也可以通过 sudo 来完成

cd /usr/bin
sudo rm <your special file names you want to remove>
<type your root password>