You are not logged in.

#1 2009-05-12 23:42:37

Preston C.
Member
Registered: 2009-02-14
Posts: 40

[Solved] "ls" lists to many files...

In init 3 when I enter the ls command, it list every file in the folder. I need it to just list files starting with K, because I am looking for a kernel file but am not sure which file. Thanks.

Last edited by Preston C. (2009-05-13 00:18:44)

Offline

#2 2009-05-12 23:54:09

Teoulas
Member
From: Athens, Greece
Registered: 2009-03-21
Posts: 70

Re: [Solved] "ls" lists to many files...

ls -d k* | less

Should work fine, even paging the output.

Offline

#3 2009-05-12 23:54:16

Preston C.
Member
Registered: 2009-02-14
Posts: 40

Re: [Solved] "ls" lists to many files...

figured it out- ls k*

Offline

#4 2009-05-13 00:11:06

z.s.tar.gz
Member
From: Rural Florida
Registered: 2008-12-12
Posts: 298

Re: [Solved] "ls" lists to many files...

yeah, you can use wildcard (*) in any command.

One I find useful is when I install aur packages, just pacman -U *.pkg.*
very helpful


I need to find a way out so everyone can find their way out.
Resregietd Lunix Uesr: 485581

Offline

#5 2009-05-13 00:17:42

Preston C.
Member
Registered: 2009-02-14
Posts: 40

Re: [Solved] "ls" lists to many files...

thanks for the tip

Offline

Board footer

Powered by FluxBB