You are not logged in.

#1 2010-12-03 20:23:27

unilx
Member
From: Fredericton,Canada
Registered: 2009-10-01
Posts: 183

View Directory Contents page by page(SOLVED)

I'm trying to view the contents of /var/cache/pacman/pkg but the list goes by to fast to see the package names,is there anyway to view the packages page by page.I only ask because i had to reinstall arch and copy my backup package directory from my flash drive to /var/cache/pacman/pkg and i dont know the full name of a wvdial pkg im trying to install.THX

Last edited by unilx (2010-12-03 20:34:37)

Offline

#2 2010-12-03 20:25:50

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: View Directory Contents page by page(SOLVED)

ls | more
ls | less
and so on


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#3 2010-12-03 20:29:41

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: View Directory Contents page by page(SOLVED)

Use a pipe!

ls | less
(or "ls | more")

more is installed on every Unix system. less is like more, but has more features than more. You could also use most, but most probably isn't installed on most systems. less and more are used more than most.

Also, you can just press Shift + Page Up to scroll up the console.

Offline

#4 2010-12-03 20:33:56

unilx
Member
From: Fredericton,Canada
Registered: 2009-10-01
Posts: 183

Re: View Directory Contents page by page(SOLVED)

Thanks for the quick reply

Offline

#5 2010-12-03 20:40:51

urist
Member
Registered: 2009-02-22
Posts: 248

Re: View Directory Contents page by page(SOLVED)

drcouzelis wrote:

Use a pipe!

ls | less
(or "ls | more")

more is installed on every Unix system. less is like more, but has more features than more. You could also use most, but most probably isn't installed on most systems. less and more are used more than most.

Also, you can just press Shift + Page Up to scroll up the console.

That was fun to read.

Less is more than more. Less and more are more common than most, which isn't installed on most systems.

Last edited by urist (2010-12-03 20:41:47)

Offline

#6 2010-12-03 21:38:49

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: View Directory Contents page by page(SOLVED)

urist wrote:

That was fun to read.

http://bash.org/?34053  big_smile

Offline

#7 2010-12-04 05:57:38

Ari'osika
Member
From: Your computer, okay?
Registered: 2010-06-22
Posts: 175

Re: View Directory Contents page by page(SOLVED)

urist wrote:

Less is more than more. Less and more are more common than most, which isn't installed on most systems.

Wouldn't that be;

Less is more than most because less and more are more common that most (which isn't installed most systems???

big_smile big_smile big_smile

( And thanks for the tip(s), I just ran into a similar problem myself)


If you're reading this; you're awesome.

Offline

#8 2010-12-04 09:10:33

CountDuckula
Member
Registered: 2010-02-28
Posts: 151

Re: View Directory Contents page by page(SOLVED)

drcouzelis wrote:

more is installed on every Unix system. less is like more, but has more features than more. You could also use most, but most probably isn't installed on most systems. less and more are used more than most.

That is sheer geek poetry!

Offline

Board footer

Powered by FluxBB