How do you list all the files that are in the current directory?

How do you list all the files that are in the current directory?
Answer
See the following examples:
  • To list all files in the current directory, type the following: ls -a This lists all files, including. dot (.) …
  • To display detailed information, type the following: ls -l chap1 .profile. …
  • To display detailed information about a directory, type the following: ls -d -l .
 

Tìm kiếm

Back
Top