List Files in Shell

Level 16 keystrokes

ls -la lists all files including hidden ones with detailed info.

Shell code

# -l: long format (permissions, owner, size, date); -a: include hidden . files
# The list also shows . (this directory) and .. (the parent)
1ls -la

Output

total 16
drwxr-xr-x  3 user user 4096 Jan  1 10:00 .
drwxr-xr-x  5 user user 4096 Jan  1 09:00 ..
-rw-r--r--  1 user user  256 Jan  1 10:00 file.txt
Practice typing this code

Practice typing this code. Results are not recorded in the rankings.

Symbols in this code

The symbols you type in this Shell code and how often they appear.

  • -× 1

More Shell examples at level 1

← Shell typing practice