ls-F built-in command for tcsh: List files
Format
ls-F [-switch …] [file …]
Description
In the tcsh shell, ls-F lists files like ls -F,
but works much faster. It identifies each type of special file in
the listing with a special character:
- /
- Directory
- *
- Executable
- #
- Block device
- %
- Character device
- |
- Named pipe
- =
- Socket
- @
- Symbolic link
- @
- Symbolic link to a non-directory
- >
- Symbolic link to a directory
- &
- Symbolic link to nowhere
If you use files that are set up as follows:
#creating a file
touch file1
#creating a symbolic link to the file
ln -s file1 link1
#creating a directory
mkdir dir1
#creating a symbolic link to the directory
ln -s dir1 linkdir1
#creating a symbolic link to a file that doesn't exist
ln -s noexist linktonowhere
when you issue an ls-F with listlinks unset,
you will get the following output:
> ls-F
dir1/ file1 link1@ linkdir1@ linktonowhere@
>
with listlinks set:
> set listlinks>
ls-F
dir1/ file1 link1@ linkdir1> linktonowhere&
>
If the listflags shell variable is set to x, a or A, or any combination thereof (for example, xA), they are used as flags to ls-F, making it act like ls -xF, ls -Fa, ls -FA or a combination ls -FxA. On z/OS systems, ls -C is the default. However, on machines where ls -C is not the default, ls-F acts like ls -CF, unless listflags contains an x, in which case it acts like ls -xF.
Usage notes
To view an online description for the ls-F command, you
must type ls-F without the dash. To see the man page, for
example, issue:
man lsF
Related information
ls, tcsh