LPI Exam Questions

Which command will print out the attributes of the file foobar?

Which command will print out the attributes of the file foobar?

A.
ls –attr foobar

B.
lsattr foobar

C.
printattr foobar

D.
fileattr foobar

Explanation:
From the man pages:
lsattr – list file attributes on a Linux extfs
For a list of possible attributes see man page for chattr(1).