F5F Stay Refreshed Software Operating Systems linux ls command

linux ls command

linux ls command

P
Pixel785
Junior Member
11
09-09-2023, 01:26 AM
#1
I understand you need a way to view files in a directory without showing detailed information, specifically avoiding certain letters like 'd' or 'l'. You mentioned trying common methods but they didn’t work. What alternatives could help? Consider using filters or patterns that exclude those characters when listing files.
P
Pixel785
09-09-2023, 01:26 AM #1

I understand you need a way to view files in a directory without showing detailed information, specifically avoiding certain letters like 'd' or 'l'. You mentioned trying common methods but they didn’t work. What alternatives could help? Consider using filters or patterns that exclude those characters when listing files.

M
mc_sander_e
Junior Member
18
09-09-2023, 04:43 AM
#2
You need a pipe (|) to connect commands. For example, using `ls | grep d*` will send the directory listing to grep, showing only lines starting with 'd'.
M
mc_sander_e
09-09-2023, 04:43 AM #2

You need a pipe (|) to connect commands. For example, using `ls | grep d*` will send the directory listing to grep, showing only lines starting with 'd'.

C
C0mboDombo
Member
62
09-10-2023, 09:35 AM
#3
Thanks for your assistance. It turns out that ls D* still functions even though it didn't earlier today.
C
C0mboDombo
09-10-2023, 09:35 AM #3

Thanks for your assistance. It turns out that ls D* still functions even though it didn't earlier today.

J
jonttutonttu1
Member
214
09-10-2023, 04:38 PM
#4
The commands "ls d*" and "ls D*" produce distinct results.
J
jonttutonttu1
09-10-2023, 04:38 PM #4

The commands "ls d*" and "ls D*" produce distinct results.

D
DrCurrywurst
Member
115
09-14-2023, 09:16 AM
#5
In short, it looks for files starting with a lowercase 'd', 'D', or any variation without regard to case.
D
DrCurrywurst
09-14-2023, 09:16 AM #5

In short, it looks for files starting with a lowercase 'd', 'D', or any variation without regard to case.