Nexcess Interview Question: Using the command line, how w... | Glassdoor

Interview Question

Data Center Technician Interview Southfield, MI

Using the command line, how would you view all the files in

  the current directory? (the only Linux-specific question the asked)
Answer

Interview Answer

2 Answers

0

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

Kent on Apr 20, 2018
0

and a literal answer to only list "files" excluding directories would be to use the command:

ls -p | grep -v /

Neil on Jun 22, 2020

Add Answers or Comments

To comment on this, Sign In or Sign Up.