I am trying to check if a package is already present in the my Ubuntu distro by using the command

apt-cache search <name>

the resultant output of command for Java package was very long and ran into several pages.

My Question

How to break the output in Ubuntu at a page full and every line?


Please try:

    apt-cache search java | less

Use the arrow keys to scroll forward and backwards. Get out of less with q.

| improve this answer | |
  • Arrow is causing one line at a time, can we scroll down one page at a time. – Gaurav Agarwal Nov 28 '12 at 16:20
  • 1
    Sure, please try: PgDn. – chili555 Nov 28 '12 at 16:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.