What does the 'ls -la' command do in Linux?
- A.Lists only hidden files
- B.Lists all files (including hidden) in long format with permissions
- C.Deletes all files in the current directory
- D.Creates a new directory
Why B is correct
The 'ls' command lists directory contents. The '-l' flag shows detailed (long) format including permissions, owner, size, and modification date. The '-a' flag includes hidden files (those starting with a dot). Together, 'ls -la' gives a comprehensive view of all files and their metadata.
Know someone studying for Security Fundamentals? Send them this one.