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.