16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ls-F built-in command for tcsh: List files<br />

Format<br />

ls-F [-switch ...] [file ...]<br />

Description<br />

In the tcsh shell, ls-F lists files like ls -F, but works much faster. It identifies each<br />

type of special file in the listing with a special character:<br />

/ Directory<br />

* Executable<br />

# Block device<br />

% Character device<br />

| Named pipe<br />

= Socket<br />

@ Symbolic link<br />

If the listlinks shell variable is set, symbolic links are identified in more detail (only,<br />

of course, on systems which have them):<br />

@ Symbolic link to a non-directory<br />

> Symbolic link to a directory<br />

& Symbolic link to nowhere<br />

listlinks also slows down ls-F.<br />

If you use files which are set-up as follows:<br />

#creating a file<br />

touch file1<br />

#creating a symbolic link to the file<br />

ln -s file1 link1<br />

#creating a directory<br />

mkdir dir1<br />

#creating a symbolic link to the directory<br />

ln -s dir1 linkdir1<br />

#creating a symbolic link to a file that doesn’t exist<br />

ln -s noexist linktonowhere<br />

when you issue an ls-F with listlinks unset, you will get the following output:<br />

> ls-F<br />

dir1/ file1 link1@ linkdir1@ linktonowhere@<br />

><br />

with listlinks set:<br />

> set listlinks<br />

> ls-F<br />

dir1/ file1 link1@ linkdir1> linktonowhere&<br />

><br />

tcsh: lsF<br />

If the listflags shell variable is set to x, a or A, or any combination thereof (for<br />

example, xA), they are used as flags to ls-F, making it act like ls -xF, ls -Fa, ls -FA<br />

or a combination ls -FxA. On z/<strong>OS</strong>, ls -C is the default. However, on machines<br />

where ls -C is not the default, ls-F acts like ls -CF, unless listflags contains an x,<br />

in which case it acts like ls -xF.<br />

Chapter 2. Shell command descriptions 685

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!