我不是壳牌专家,但我尝试使用:
find / -user test
而且我得到了很多结果,无法回到列表的顶部。我只能看到一些最后的结果...
有什么方法可以查看所有结果或如何排序以供阅读?
我不是壳牌专家,但我尝试使用:
find / -user test
而且我得到了很多结果,无法回到列表的顶部。我只能看到一些最后的结果...
有什么方法可以查看所有结果或如何排序以供阅读?
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
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
thanmore
is, somore
is lessless
, so use moreless
if you want lessmore
. (...) Ifless
is more thanmore
,most
is more thanless
. "
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.
除了 Barranka 和 Levente 的好答案,我想回答你的问题,
find / -user test| sort | less
更具体地说,指定正在搜索的类型文件 -f 目录 -d
从而减少输出结果的数量并且更容易浏览或搜索