小编FMa*_*008的帖子

如何删除许多(200 000)个文件?

我必须从文件夹中删除 200 000 个文件(所有这些文件),而且我不想删除文件夹本身。

使用 rm,我收到“参数列表太长”错误。我试图用 xargs 做一些事情,但我不是一个 Shell Guy,所以它不起作用:

find -name * | xargs rm -f
Run Code Online (Sandbox Code Playgroud)

ubuntu shell terminal remove

17
推荐指数
2
解决办法
7296
查看次数

Gitolite,如何包含具有相对路径的 .conf 文件?

我正在运行 Gitolite 服务器,我想每个存储库有 1 个配置文件。

现在我有这个 gitolite.conf 文件:

@php_dev = userA userB
@int_dev = userC
@lead = userD
@admin = @php_dev

repo    gitolite-admin
        RW+     =   @admin

repo    testing
        RW+     =   @all

include "repositories/*.conf"
Run Code Online (Sandbox Code Playgroud)

然后我有 gitolite-admin/conf/repositories/cms/admin/repoA.conf 文件:

repo    cms/admin/repoA
        RW+     =   @php_dev
        RW      =   @int_dev
        R       =   @lead
Run Code Online (Sandbox Code Playgroud)

当我提交时,我只有以下警告:

remote: the following users have no pubkeys:
remote: userC
Run Code Online (Sandbox Code Playgroud)

确实如此,userC 还没有公钥。(我只是提一下,以防万一)

然后我查看服务器,在 /home/git/repositories/ 文件夹中:

git@FX55TMP:~/repositories$ ls -la
total 16
drwx------ 4 git git 4096 2011-04-03 22:16 .
drwxr-xr-x 6 git git 4096 …
Run Code Online (Sandbox Code Playgroud)

configuration gitolite

5
推荐指数
1
解决办法
1955
查看次数

标签 统计

configuration ×1

gitolite ×1

remove ×1

shell ×1

terminal ×1

ubuntu ×1