Listing files from directory [closed]
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have a question regarding directories. My homework question is this:
Use metacharacters and the
ls -lL
command (with lower and upper case L) to list all filenames under the datafiles directory that contain a dot '.' with the letter 'f' or 'u' anywhere after the dot.
I know it begins ls -lL
, but I'm not sure what else to put.
directory ls
closed as unclear what you're asking by Jeff Schaller, ñÃÂsýù÷, G-Man, jayhendren, Isaac Feb 9 at 2:34
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |Â
up vote
0
down vote
favorite
I have a question regarding directories. My homework question is this:
Use metacharacters and the
ls -lL
command (with lower and upper case L) to list all filenames under the datafiles directory that contain a dot '.' with the letter 'f' or 'u' anywhere after the dot.
I know it begins ls -lL
, but I'm not sure what else to put.
directory ls
closed as unclear what you're asking by Jeff Schaller, ñÃÂsýù÷, G-Man, jayhendren, Isaac Feb 9 at 2:34
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
1
You can read the man page of ls, just type in your promptman ls
, there you can read about your homework. Just a tip: I think that the option your are looking for isls -ILa
. Greetings
â k.Cyborg
Feb 7 at 16:11
Can you point us to your most recent class/lab material? Hopefully we can point out what you've missed.
â Jeff Schaller
Feb 7 at 16:20
Don't forget to hit our tour page after registering your account, so that you can edit your question and accept answer(s)!
â Jeff Schaller
Feb 7 at 16:34
Doesu
orf
can appear untill a first dot seen? Likeu.file..f
what about Hidden files?.a hidden file
â Ã±ÃÂsýù÷
Feb 7 at 16:58
@k.Cyborg: I believe that youâÂÂre sending the OP on a wild goose chase.â The answer to this question cannot be found in thels
man page.âÂÂHint: if you learned aboutls
on Monday, you should look closely at your notes from last Thursday and Friday, and Tuesday.
â Scott
Feb 7 at 18:14
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a question regarding directories. My homework question is this:
Use metacharacters and the
ls -lL
command (with lower and upper case L) to list all filenames under the datafiles directory that contain a dot '.' with the letter 'f' or 'u' anywhere after the dot.
I know it begins ls -lL
, but I'm not sure what else to put.
directory ls
I have a question regarding directories. My homework question is this:
Use metacharacters and the
ls -lL
command (with lower and upper case L) to list all filenames under the datafiles directory that contain a dot '.' with the letter 'f' or 'u' anywhere after the dot.
I know it begins ls -lL
, but I'm not sure what else to put.
directory ls
edited Feb 7 at 16:19
Jeff Schaller
31.3k846105
31.3k846105
asked Feb 7 at 16:05
John
1
1
closed as unclear what you're asking by Jeff Schaller, ñÃÂsýù÷, G-Man, jayhendren, Isaac Feb 9 at 2:34
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
closed as unclear what you're asking by Jeff Schaller, ñÃÂsýù÷, G-Man, jayhendren, Isaac Feb 9 at 2:34
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
1
You can read the man page of ls, just type in your promptman ls
, there you can read about your homework. Just a tip: I think that the option your are looking for isls -ILa
. Greetings
â k.Cyborg
Feb 7 at 16:11
Can you point us to your most recent class/lab material? Hopefully we can point out what you've missed.
â Jeff Schaller
Feb 7 at 16:20
Don't forget to hit our tour page after registering your account, so that you can edit your question and accept answer(s)!
â Jeff Schaller
Feb 7 at 16:34
Doesu
orf
can appear untill a first dot seen? Likeu.file..f
what about Hidden files?.a hidden file
â Ã±ÃÂsýù÷
Feb 7 at 16:58
@k.Cyborg: I believe that youâÂÂre sending the OP on a wild goose chase.â The answer to this question cannot be found in thels
man page.âÂÂHint: if you learned aboutls
on Monday, you should look closely at your notes from last Thursday and Friday, and Tuesday.
â Scott
Feb 7 at 18:14
add a comment |Â
1
You can read the man page of ls, just type in your promptman ls
, there you can read about your homework. Just a tip: I think that the option your are looking for isls -ILa
. Greetings
â k.Cyborg
Feb 7 at 16:11
Can you point us to your most recent class/lab material? Hopefully we can point out what you've missed.
â Jeff Schaller
Feb 7 at 16:20
Don't forget to hit our tour page after registering your account, so that you can edit your question and accept answer(s)!
â Jeff Schaller
Feb 7 at 16:34
Doesu
orf
can appear untill a first dot seen? Likeu.file..f
what about Hidden files?.a hidden file
â Ã±ÃÂsýù÷
Feb 7 at 16:58
@k.Cyborg: I believe that youâÂÂre sending the OP on a wild goose chase.â The answer to this question cannot be found in thels
man page.âÂÂHint: if you learned aboutls
on Monday, you should look closely at your notes from last Thursday and Friday, and Tuesday.
â Scott
Feb 7 at 18:14
1
1
You can read the man page of ls, just type in your prompt
man ls
, there you can read about your homework. Just a tip: I think that the option your are looking for is ls -ILa
. Greetingsâ k.Cyborg
Feb 7 at 16:11
You can read the man page of ls, just type in your prompt
man ls
, there you can read about your homework. Just a tip: I think that the option your are looking for is ls -ILa
. Greetingsâ k.Cyborg
Feb 7 at 16:11
Can you point us to your most recent class/lab material? Hopefully we can point out what you've missed.
â Jeff Schaller
Feb 7 at 16:20
Can you point us to your most recent class/lab material? Hopefully we can point out what you've missed.
â Jeff Schaller
Feb 7 at 16:20
Don't forget to hit our tour page after registering your account, so that you can edit your question and accept answer(s)!
â Jeff Schaller
Feb 7 at 16:34
Don't forget to hit our tour page after registering your account, so that you can edit your question and accept answer(s)!
â Jeff Schaller
Feb 7 at 16:34
Does
u
or f
can appear untill a first dot seen? Like u.file..f
what about Hidden files? .a hidden file
â Ã±ÃÂsýù÷
Feb 7 at 16:58
Does
u
or f
can appear untill a first dot seen? Like u.file..f
what about Hidden files? .a hidden file
â Ã±ÃÂsýù÷
Feb 7 at 16:58
@k.Cyborg: I believe that youâÂÂre sending the OP on a wild goose chase.â The answer to this question cannot be found in the
ls
man page.âÂÂHint: if you learned about ls
on Monday, you should look closely at your notes from last Thursday and Friday, and Tuesday.â Scott
Feb 7 at 18:14
@k.Cyborg: I believe that youâÂÂre sending the OP on a wild goose chase.â The answer to this question cannot be found in the
ls
man page.âÂÂHint: if you learned about ls
on Monday, you should look closely at your notes from last Thursday and Friday, and Tuesday.â Scott
Feb 7 at 18:14
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
filenames under the datafiles directory that contain a dot '.' with the letter 'f' or 'u' anywhere after the dot.
If I was to guess, it'd be something like:
ls -lL datafiles/*.*[fu]*
although the datafiles directory could be anywhere (else), and I find it a little odd that they're encouraging habitual use of the -L
flag.
2
I personally can't remember the last time I used-L
withls
...
â Kusalananda
Feb 7 at 16:38
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
filenames under the datafiles directory that contain a dot '.' with the letter 'f' or 'u' anywhere after the dot.
If I was to guess, it'd be something like:
ls -lL datafiles/*.*[fu]*
although the datafiles directory could be anywhere (else), and I find it a little odd that they're encouraging habitual use of the -L
flag.
2
I personally can't remember the last time I used-L
withls
...
â Kusalananda
Feb 7 at 16:38
add a comment |Â
up vote
2
down vote
filenames under the datafiles directory that contain a dot '.' with the letter 'f' or 'u' anywhere after the dot.
If I was to guess, it'd be something like:
ls -lL datafiles/*.*[fu]*
although the datafiles directory could be anywhere (else), and I find it a little odd that they're encouraging habitual use of the -L
flag.
2
I personally can't remember the last time I used-L
withls
...
â Kusalananda
Feb 7 at 16:38
add a comment |Â
up vote
2
down vote
up vote
2
down vote
filenames under the datafiles directory that contain a dot '.' with the letter 'f' or 'u' anywhere after the dot.
If I was to guess, it'd be something like:
ls -lL datafiles/*.*[fu]*
although the datafiles directory could be anywhere (else), and I find it a little odd that they're encouraging habitual use of the -L
flag.
filenames under the datafiles directory that contain a dot '.' with the letter 'f' or 'u' anywhere after the dot.
If I was to guess, it'd be something like:
ls -lL datafiles/*.*[fu]*
although the datafiles directory could be anywhere (else), and I find it a little odd that they're encouraging habitual use of the -L
flag.
answered Feb 7 at 16:36
Jeff Schaller
31.3k846105
31.3k846105
2
I personally can't remember the last time I used-L
withls
...
â Kusalananda
Feb 7 at 16:38
add a comment |Â
2
I personally can't remember the last time I used-L
withls
...
â Kusalananda
Feb 7 at 16:38
2
2
I personally can't remember the last time I used
-L
with ls
...â Kusalananda
Feb 7 at 16:38
I personally can't remember the last time I used
-L
with ls
...â Kusalananda
Feb 7 at 16:38
add a comment |Â
1
You can read the man page of ls, just type in your prompt
man ls
, there you can read about your homework. Just a tip: I think that the option your are looking for isls -ILa
. Greetingsâ k.Cyborg
Feb 7 at 16:11
Can you point us to your most recent class/lab material? Hopefully we can point out what you've missed.
â Jeff Schaller
Feb 7 at 16:20
Don't forget to hit our tour page after registering your account, so that you can edit your question and accept answer(s)!
â Jeff Schaller
Feb 7 at 16:34
Does
u
orf
can appear untill a first dot seen? Likeu.file..f
what about Hidden files?.a hidden file
â Ã±ÃÂsýù÷
Feb 7 at 16:58
@k.Cyborg: I believe that youâÂÂre sending the OP on a wild goose chase.â The answer to this question cannot be found in the
ls
man page.âÂÂHint: if you learned aboutls
on Monday, you should look closely at your notes from last Thursday and Friday, and Tuesday.â Scott
Feb 7 at 18:14