222k views
0 votes
In Linux, you are preparing to delete the user account tprice, because this user has just left the company. However, before you delete the account, you want to list all files owned by tprice so that you can locate them and decide which files to keep. What command enables you to view all files owned by the tprice account?

a. ls -owner tprice
b. lsuser tprice
c. find / -user tprice
d. scan -owner tprice

User Crferreira
by
5.5k points

1 Answer

6 votes

Answer:

c. find / -user tprice

Step-by-step explanation:

The command used to search for files is called find.

When you search by user across the whole drive, use the following syntax:

find / -user filename

  • The first part of the find command is the find command itself.
  • The next part is an expression which determines what to find. (-user)
  • Finally the last part is the name of the thing to find. (tprice)

User Ufopilot
by
6.0k points