Listing files from directory [closed]

The name of the pictureThe name of the pictureThe name of the pictureClash 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.







share|improve this 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 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










  • 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











  • @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














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.







share|improve this 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 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










  • 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











  • @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












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.







share|improve this question














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.









share|improve this question













share|improve this question




share|improve this question








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 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










  • 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











  • @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












  • 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










  • 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 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







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










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.






share|improve this answer
















  • 2




    I personally can't remember the last time I used -L with ls...
    – Kusalananda
    Feb 7 at 16:38

















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.






share|improve this answer
















  • 2




    I personally can't remember the last time I used -L with ls...
    – Kusalananda
    Feb 7 at 16:38














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.






share|improve this answer
















  • 2




    I personally can't remember the last time I used -L with ls...
    – Kusalananda
    Feb 7 at 16:38












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.






share|improve this answer













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.







share|improve this answer












share|improve this answer



share|improve this answer










answered Feb 7 at 16:36









Jeff Schaller

31.3k846105




31.3k846105







  • 2




    I personally can't remember the last time I used -L with ls...
    – Kusalananda
    Feb 7 at 16:38












  • 2




    I personally can't remember the last time I used -L with ls...
    – 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


Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay