You are not logged in.

#1 2017-05-31 11:03:40

Z32O
Member
From: BerlinBerlin
Registered: 2017-05-24
Posts: 8

[SOLVED] How to see the contents of a folder on the screen

Hello, everyone, I'm new to the magic world of Arch, but after many searches, I'm not able to understand how to see the contents of a folder that have many files inside, I mean, when I do 'ls' command, for example in /usr/share/kbd/keymaps/i386/qwerty, a list of files appear, but I can't see all of them, and I don't know how to scroll up and down without mouse use. I'm in the installation phase, and I'm without GUI. Could someone help me with this stupid issue?

Sorry if I opened a thread just for this question, but I wish to interact with some Arch user, and not just searching across Google.

Last edited by Z32O (2017-05-31 15:46:55)


"Il carattere legato alla tua origine, frammentato in singole unità, è il prodotto di ogni singolo passo, e di un'equa ripartizione per divenire perfezione. In un tutt'uno tutto e nulla."

Offline

#2 2017-05-31 11:28:23

hoerbert
Member
Registered: 2013-04-03
Posts: 87

Re: [SOLVED] How to see the contents of a folder on the screen

Hey Z32O,

you can pipe command outputs to less.

ls | less

This lets you scroll through the output with up/down or PgUp/PgDown. Press 'q' to quit.

Offline

#3 2017-05-31 13:23:56

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED] How to see the contents of a folder on the screen

If you are still on a tty you can use shift + page up/down to scroll back. However it might not provide enough history if there is a lot of output.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#4 2017-05-31 15:45:28

Z32O
Member
From: BerlinBerlin
Registered: 2017-05-24
Posts: 8

Re: [SOLVED] How to see the contents of a folder on the screen

hoerbert wrote:

Hey Z32O,

you can pipe command outputs to less.

ls | less

This lets you scroll through the output with up/down or PgUp/PgDown. Press 'q' to quit.

Oh, this works perfectly. In my all searches I never saw this use of the pipe, thank you a lot.

Unfortunately, the combo shift+pg up/dw doesn't work on my laptop, I don't know why... Thanks in any case R00KIE wink


I also discovered another way to see all the files, inside the path I type:

# cd + space + tab

then, the zsh advise me with the message: "zsh: do you wish to see all 119 possibilities (61 lines)?"

Now, without selecting yes or not, I push the enter button directly, then I push again the tab button, et voila.... I'm able to navigate among the folder's file smile

Last edited by Z32O (2017-05-31 16:02:03)


"Il carattere legato alla tua origine, frammentato in singole unità, è il prodotto di ogni singolo passo, e di un'equa ripartizione per divenire perfezione. In un tutt'uno tutto e nulla."

Offline

#5 2017-05-31 16:01:07

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,723
Website

Re: [SOLVED] How to see the contents of a folder on the screen

Depending on your laptop model/bios settings/planetary alignment, you may need to hold 'fn' when pressing PgUp/PgDown for it to work as that key.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB