ls profile
find /-name profile -print
cd /.profile
l -u .profile E. None of the above
Answer is Right!
Answer is Wrong!
The correct answer is: B. find /-name profile -print
The find
command is used to locate files that match certain criteria. The -name
option specifies the name of the file or files to find. The -print
option prints the names of the files that match the criteria.
In this case, the command find /-name profile -print
will locate all the files in the current directory and all subdirectories that have the name profile
.
The other options are incorrect for the following reasons:
- Option A,
ls profile
, will only list the files in the current directory. - Option C,
cd /.profile
, will change the current directory to the file/.profile
. - Option D,
l -u .profile
, will list the permissions of the file.profile
.
I hope this helps!