Use
ls -F to display file types. The various file types are
displayed using the following symbols:
|
File
Type
|
Symbol
|
|
Directory
|
/
|
|
Executable
|
*
|
|
Plain
text file /ASCII
|
(none)
|
|
Symbolic
|
@
|
Examples
$ pwd
/home/charles
$ ls -F
snoopy/ pigpen/ file1 file3 play
woodstock/ franklin/
file2 file4
In the example above,
the user displays the files and directories stored under the /home/charles
directory.
$ ls -F
/etc
cron@ netid* shadow uucp/
$
In the example above,
the user displays the files and directories stored under the /etc
directory that is nested directly under the / (root) directory.