Help with Linux please read the question. i know how to use basic commands. thes
ID: 3842079 • Letter: H
Question
Help with Linux
please read the question. i know how to use basic commands. these answers require globbing, which i cant seem to get right.
using ubuntu
7. What ls command used with a globbing expression will list those files in /tmp/notes which contain three fours in the basename portion (pre-extension part) of the filename? (Must use globbing expression--no grep!)
ls *[444]. /tmp/notes returns- ls: *444*#: No such file or directory
ls /tmp/notes |egrep ‘.*444.*..*’ returns nothing
Explanation / Answer
we can use ls follwoing by *444* as that gives the filenames containing 444 in its's name
example syntax is:
ls *444* # list all files containinf --444--
we ave other method ie:
ls 444*# list all files starting with 444--
*********************************************************
Method 2:Another way to get the output is tree command
example syntax is:
tree -P *444* # list all files containing --444--
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.