number of Lines displayed in Terminal
I am trying to list the contents of a directory in the terminal as a single line output I can then copy and paste into a text editor.
I am using the command: ls -1 This lists the directory in a single line but it is not displaying the entire contents. Its like there is a limit to the number of files that can be displayed in the terminal. Is this true or can someone tell me what to do to achieve this. |
Yes. The number of lines you can scroll back depends on the terminal you're using. For example in Gnome Terminal you can set the number of lines to scroll from Edit -> Profiles -> Default -> Edit -> Scrolling -> Scrollback. In alternative you can redirect the output to a file and then open it in a text editor, where you have no limit on the number of lines displayed.
|
All times are GMT -5. The time now is 10:21 PM. |