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-09-2009, 08:17 AM   #1
debianD
Member
 
Registered: Jul 2009
Posts: 37

Rep: Reputation: 16
please help with ls command !!


Hi All,
This is my first post and I am also new to Linux so my question is also a noob one.Please pardon me for that though I have tried man pages but couldn't get a solution
Do we have any option to print the output using ls command on the console.. page wise or specific no of lines wise.
I had been trying to use ls /dev -l but couldn,t see the entire list. Devices starting from character a were not in the list.

So how would I print or see the entire list irrespective of the size of the screen.

Cheers!!
 
Old 07-09-2009, 08:25 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
You can pipe the output of the ls command to more (or less, at your pleasure):
Code:
ls -l /dev | more
in more, hit the space-bar to scroll by one page, hit enter to scroll by one line (q to quit).
 
Old 07-09-2009, 08:37 AM   #3
debianD
Member
 
Registered: Jul 2009
Posts: 37

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by colucix View Post
You can pipe the output of the ls command to more (or less, at your pleasure):
Code:
ls -l /dev | more
in more, hit the space-bar to scroll by one page, hit enter to scroll by one line (q to quit).
Thanks !

Cheers!!
 
Old 07-09-2009, 09:02 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,541
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

I suggest for your enlightenment 'Rute Tutorial & Exposition' and 'Linux Newbie Admin Guide'.

The above links and others available from 'Slackware-Links'. More than just SlackwareŽ links!

BTW, you can mark the thread as [SOLVED] via the thread tools.
 
  


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
URGENT! Is there any command to get a history command lines and time in SUSE Linux.? igsoper Linux - Software 5 06-25-2009 03:14 AM
Automatically append another piped command to issued command in bash amateen Programming 1 05-07-2009 07:36 AM
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 08:19 PM
busybox command works, same command within script says permission denied jeroenv Linux - Newbie 2 01-17-2009 03:58 AM
LXer: The Linux Command Shell For Beginners: Fear Not The Command Line! LXer Syndicated Linux News 0 12-22-2008 07:30 PM


All times are GMT -5. The time now is 10:43 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