如何使用Cruftbuster自动清洁Linux PC

如何使用Cruftbuster自动清洁Linux PC

Do you have folders filled with myriad of files that need a serious spring cleaning ? If you do, we have Cruftbuster, an automated self-cleaning tool for Linux, to sort out your messy folders.

您的文件夹中是否装有无数需要认真Spring清洁的文件? 如果您愿意,我们可以提供Cruftbuster(一种用于Linux的自动自我清理工具)来整理您的混乱文件夹。

Well, you can always move these files, or trash them, but why bother doing that if you can have your computer do that automatically for you. This is exactly what Cruftbuster does; It is a freeware for Linux to organize your files, inspired by the famous Belvedere by Adam Pash of Lifehacker.

好吧,您始终可以移动这些文件或将其丢弃,但是如果可以让您的计算机自动为您执行此操作,那又何乐而不为呢? 这正是克鲁夫克特所做的。 它是Linux的免费软件,可组织您的文件,其灵感来自Lifehacker的Adam Pash 著名的Belvedere

Editor’s Note: this piece of open-source software was created by Zainul Franciscus, a writer here at How-To Geek. Naturally, we need a disclaimer, so if this breaks your PC or deletes the wrong files, don’t blame us. Backup your data!

编者注:这款开放源代码软件由Zainul Franciscus创建,他是How-To Geek的作者。 自然,我们需要免责声明,因此,如果这会使您的PC损坏或删除了错误的文件,请不要怪我们。 备份数据!

安装Cruftbuster (Installing Cruftbuster)

We have a lot of items in our to-do list for Crufbuster, and we are working hard to iron out all the kinks. A big item in our to-do list is making a user friendly installer, but in the meanwhile, we are distributing Cruftbuster in a tar file. We have tested Cruftbuster with Ubuntu 10.10, 11.04, OpenSuse, and it works pretty well with Gnome-based desktop.

我们在Crufbuster的待办事项清单中有很多物品,并且我们正在努力解决所有问题。 待办事项列表中的一项重要工作是使用户安装程序更加友好,但是与此同时,我们将Cruftbuster分发到tar文件中。 我们已经在Ubuntu 10.10、11.04,OpenSuse中测试了Cruftbuster,它在基于Gnome的桌面上运行得很好。

You’ll see a bunch of files with weird extensions when you extract the tar file, don’t be afraid, you can ignore most of these files.

提取tar文件时,您会看到一堆带有怪异扩展名的文件,不要担心,您可以忽略其中的大多数文件。

如何使用Cruftbuster自动清洁Linux PC

You only need to execute MainScreen.py to run Cruftbuster. Give it an executable privilege by typing this command in the console:

您只需要执行MainScreen.py即可运行Cruftbuster。 通过在控制台中键入以下命令,为它提供可执行特权:

chmod +x MainScreen.py

chmod +x MainScreen.py

Alternatively, you can do this from your file explorer. Just select the “Allow executing file as program” checkbox.

或者,您可以从文件资源管理器中执行此操作。 只需选中“允许将文件作为程序执行”复选框。

如何使用Cruftbuster自动清洁Linux PC

Once you have done this, run Cruftbuster from the command line, or simply double click MainScreen.py.

完成此操作后,从命令行运行Cruftbuster,或直接双击MainScreen.py。

如何使用Cruftbuster自动清洁Linux PC

If you only want to see Cruftbuster in your system tray when it starts, run it with the ‘-minimized’ switch.

如果仅在启动时在系统托盘中看到Cruftbuster,请使用'-minimized'开关运行它。

python MainScreen.py –minimized

python MainScreen.py –minimized

如何使用Cruftbuster自动清洁Linux PC

使用Crustbuster (Using Cruftbuster)

The first thing we need to do is click the plus button on the bottom left.

我们需要做的第一件事是单击左下方的加号按钮。

如何使用Cruftbuster自动清洁Linux PC

Pick as many folders as you want for Cruftbuster to watch over.

选择任意数量的文件夹供Cruftbuster监视。

如何使用Cruftbuster自动清洁Linux PC

Once you’ve done that, it’s time to tell Cruftbuster what to do with those folders. We do this by clicking the plus symbol on the right.

完成此操作后,就该告诉Cruftbuster如何处理这些文件夹了。 我们通过单击右侧的加号来实现。

如何使用Cruftbuster自动清洁Linux PC

You’ll see a new window where you can add lots of rules to organize that folder. In this example, we are telling Cruftbuster to move any mp4 file into our video folder.

您会看到一个新窗口,您可以在其中添加许多规则来组织该文件夹。 在此示例中,我们告诉Cruftbuster将任何mp4文件移动到我们的视频文件夹中。

如何使用Cruftbuster自动清洁Linux PC

Cruftbuster can do a lot of things. It can move, copy, rename, delete, send files to recycle bin, or open files with your default applications. You can setup as many rules as you want.

Cruftbuster可以做很多事情。 它可以移动,复制,重命名,删除,将文件发送到回收站或使用默认应用程序打开文件。 您可以根据需要设置任意多个规则。

如何使用Cruftbuster自动清洁Linux PC

The test button is very handy to make sure that you have setup the rule correctly.

测试按钮非常方便,可确保您正确设置了规则。

如何使用Cruftbuster自动清洁Linux PC

Once you are happy with the result, click Ok to save the rule,  and you should see the rules appears in the right column.

对结果满意后,单击“确定”保存规则,您应该会看到规则出现在右栏中。

如何使用Cruftbuster自动清洁Linux PC

You’ll notice that Cruftbuster has three tabs, the first tab shows all the folders that you ask Cruftbuster to watch. The next tab tells Cruftbuster how often it should empty your trash folder.

您会注意到Cruftbuster有三个标签,第一个标签显示了您要求Cruftbuster观看的所有文件夹。 下一个标签告诉Cruftbuster应该多久清空一次垃圾文件夹。

如何使用Cruftbuster自动清洁Linux PC

The last tab lets you configure how often Cruftbuster run the rules that you have created.

最后一个选项卡使您可以配置Cruftbuster运行创建的规则的频率。

如何使用Cruftbuster自动清洁Linux PC

If you want to know more how Cruftbuster works, open the user guide from the help menu, and you should see a PDF that gives you all the details of Cruftbuster.

如果您想进一步了解Cruftbuster的工作原理,请从帮助菜单中打开用户指南,然后应该会看到一个PDF,其中提供了Cruftbuster的所有详细信息。

如何使用Cruftbuster自动清洁Linux PC


Try it out, and tell us any features that you want to have in Crufbuster. We welcome any helpful comments. If you are keen on coding, or testing, leave us your email, where we can reach you, when you fill the comments form. We promise that we’ll keep your email safe. We would like to thank two very talented coders, Asad Jibran Ahmed and Sigmund Vestergaard. Without their relentless effort in coding, and testing, we would not have Cruftbuster up and running.

尝试一下,并告诉我们您想在Crufbuster中拥有的所有功能。 我们欢迎任何有帮助的评论。 如果您热衷于编码或测试,请在填写评论表时给我们留下您的电子邮件,以便我们与您联系。 我们保证将确保您的电子邮件安全。 我们要感谢两位非常有才华的编码员, Asad Jibran Ahmed和Sigmund Vestergaard。 没有他们在编码和测试上的不懈努力,我们就不会启动Cruftbuster。

Download Cruftbuster

下载Cruftbuster

翻译自: https://www.howtogeek.com/66745/how-to-automatically-clean-your-linux-pc-with-cruftbuster/