1

我不是壳牌专家,但我尝试使用:

find / -user test

而且我得到了很多结果,无法回到列表的顶部。我只能看到一些最后的结果...

有什么方法可以查看所有结果或如何排序以供阅读?

4

4 回答 4

4
find / -user test | less

This will pipe to less which will allow you to see it page by page. Another solution is to redirect it into a file, and then view that with an editor! Like this:

find / -user test >> $HOME/findresult.txt
于 2013-09-21T08:12:18.573 回答
2

Try this:

find / -user test | less

That will display one screen at a time, use up & down arrow keys to move one line up or down, use [PgDn] or [PgUp] to navigate one screen down or up, and when you are done, hit [Q] to exit.


Just a little geek humor about the less and more commands:

“<code>less is more, but more more than more is, so more is less less, so use more less if you want less more. (...) If less is more than more, most is more than less. "

(Slackware Linux Essentials)


If you want to learn a bit more about linux, I recommend you The Low Fat Linux tutorial.

If you are stuck with a command, use man. For example:

man less

will display the help (manual) page for the less command.

于 2013-09-21T08:12:37.760 回答
2

除了 Barranka 和 Levente 的好答案,我想回答你的问题,

find / -user test| sort | less
于 2013-09-21T08:17:33.023 回答
0

更具体地说,指定正在搜索的类型文件 -f 目录 -d

从而减少输出结果的数量并且更容易浏览或搜索

于 2013-09-21T14:35:59.787 回答