Pergunta de entrevista da empresa Nexcess

Using the command line, how would you view all the files in the current directory? (the only Linux-specific question the asked)

Respostas da entrevista

Sigiloso

20 de abr. de 2018

Use cd to change into the directory and ls or ls -l once inside to list all contents.

Sigiloso

23 de jun. de 2020

and a literal answer to only list "files" excluding directories would be to use the command: ls -p | grep -v /

Sigiloso

10 de fev. de 2021

ls -a