限制s3fs中的'ls'命令输出 [英] Limiting 'ls' command output in s3fs

查看:82
本文介绍了限制s3fs中的'ls'命令输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Amazon S3存储桶有数百万个文件,我正在使用 s3fs 挂载它.每当发出(无意)ls ls 命令时,终端就会挂起.

My Amazon S3 bucket has millions of files and I am mounting it using s3fs. Anytime a ls command is issued (not intentionally) the terminal hangs.

当在 s3fs 安装路径中发出 ls 命令时,是否有办法将返回的结果数限制为100?

Is there a way to limit the number of results returned to 100 when a ls command is issued in a s3fs mounted path?

推荐答案

尝试傻瓜( https://github.com/kahing/goofys ).它不限制ls返回的项数,但是当有很多文件时, ls 的速度比s3fs快40倍.

Try goofys (https://github.com/kahing/goofys). It doesn't limit the number of item returned for ls, but ls is about 40x faster than s3fs when there are lots of files.

这篇关于限制s3fs中的'ls'命令输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆