Command Files listed Example ls abce bonefish ls apb ls abc

Command   File(s) listed

Example: ls [abc]*e* bonefish

ls *[ap]*[b]*

ls [abc]*

ls *e*[abd]

ls *[ofi]

ls [vst]*a*   

Solution

ls[abc]*e* -> shows all files starting with a or b or c and has e letter in between.

ls [abc]* -> shows all files starting with a or b or c

ls *[ofi] -> show all files ending with o or f or i

ls *e*[abd] -> shows all files with e in file name and ending with a or b or d

ls *[ap]*[b]* -> shows all files with ((a or p ) and b) in file name

ls [vst]*a* -> show all files starting with v or s or t and a in file name

Command File(s) listed Example: ls [abc]*e* bonefish ls *[ap]*[b]* ls [abc]* ls *e*[abd] ls *[ofi] ls [vst]*a* Solutionls[abc]*e* -> shows all files starting

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site