Ubuntu: “How would you use the ls command to display all of the files/directories in the directory ‘/sbin’ that start with ‘az’? ”



Question:

I could do this on my own if I was in the /sbin directory, but I cant seem to figure out how to do this form the parent directory.


Solution:1

This should do:

ls /sbin | grep '^az.*'


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »