Find the answer to your Linux question:
Results 1 to 5 of 5
Is there a command to break up the output of a command into sections or pages? I'm trying to find a drive's disk identifier using fdisk -l, but doing so ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie Mad Professor's Avatar
    Join Date
    May 2006
    Posts
    142

    Is there..?


    Is there a command to break up the output of a command into sections or pages?

    I'm trying to find a drive's disk identifier using fdisk -l, but doing so outputs everything at once in putty and scrolling up only displays 17 drives, and I have 22 drives in total.

    I would do grep but I don't know the actual disk id.
    Right now I did, ls -l /dev/disk/by-id, which worked alright.

    Anyways is there such a way to break output up into sections or pages?

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,387
    Pipe it into a pager, e.g.
    Code:
    ls -la | less
    Pager
    You must always face the curtain with a bow.

  3. #3
    Linux Newbie Mad Professor's Avatar
    Join Date
    May 2006
    Posts
    142
    thank you so much.

    I figured it was something simple, hopefully I can remember the next time I need it.

  4. #4
    Linux Newbie nplusplus's Avatar
    Join Date
    Apr 2010
    Location
    Charlotte, NC, USA
    Posts
    106
    Also, if you are using putty, you might consider extending your scrollback buffer beyond the default of 200 and/or setting up logging. I don't often do the logging thing (though I should), but I set my default scrollback to 20000 lines or more, which works great for me. Also, the whole right-click on the title bar and selecting copy all to clipboard works great with an extended buffer to copy and paste the contents of the window to another program to work with (say, notepad++).

    N

  5. #5
    Just Joined!
    Join Date
    Dec 2011
    Location
    China
    Posts
    1
    ctrl+c will break the command

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •