LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-03-2009, 07:19 AM   #1
roadrash
LQ Newbie
 
Registered: Jan 2007
Location: Huntingdon, U.K.
Distribution: Ubuntu, Mint
Posts: 23

Rep: Reputation: 0
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.
 
Old 07-03-2009, 07:52 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
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.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
New lines in gnome-terminal overlapping old lines instead of scrolling crontab Linux - Software 2 04-17-2009 11:08 AM
errors displayed in terminal while installing synce-trayIcon akbarbasha Linux - Software 1 04-09-2009 05:51 AM
Incorrect Time Displayed in Terminal Server session kkpal Linux - Newbie 1 07-01-2008 01:30 PM
Increase the number of posts displayed per page. Pretty Please. Daws LQ Suggestions & Feedback 3 02-14-2007 05:18 PM
Set number of colors to be displayed General Ubuntu 1 06-10-2006 07:35 PM


All times are GMT -5. The time now is 01:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration