Multiple choice technology operating systems

How do you identify the Directories and the executables alone

  1. ls -d

  2. ls -Fx

  3. ls -ad

  4. ls -ltr

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The ls -F command appends file type indicators to filenames: * for executables, / for directories, @ for symbolic links, | for FIFOs, and = for sockets. The -x flag formats the output in horizontal columns. Together, ls -Fx provides a visual way to identify executables and directories at a glance, which is exactly what the question asks for.