Chapter 14: Using 3rd Party Common Tools

ls

Step 2 Specify the command duration time or accept the default (60 seconds). This is the amount of time the command will attempt to run before terminating.

Step 3 If desired, check Elevate Command Priority. This ensures the command will run regardless of the level of server activity.

Step 4 Click the Run button.

Using LS - Command Line Options

ls [ -cx1lmfetsurRpadoM? ] [ file1 ... ]

The options for LS are:

-c: display the names of the files sorted down each column.

-x: display the names of the files sorted across the row.

-1: display the names of the files in a single column.

-l: display a long listing with more information about each file.

-m: display the names of the files separated by commas.

-f: sort the files by filename.

-e: sort the files first by the extension and then by the filename.

-t: sort the files by the date and time that the files were last written.

-s: sort the files by the size (in bytes).

-u: do not sort the files.

-r: reverse the order of the sort selected.

-R: recursively descend down each subdirectory.

-p: put a slash (/ or \) after each directory.

-a: list all files, including HIDDEN files.

-d: when a directory is specified on the command line, display it as an individual item rather than displaying its contents.

-o: when a high-bit (greater than 127) character in a filename is displayed, assume the name is in the Windows/ANSI character set and convert it to the DOS/OEM character set, just like 'dir' does. This means that for commonly-used accent characters in Windows filenames, they'll look the same in a OEM character-set-based command prompt. Note however that this may result in output which obscures actual distinctions, since the conversion is not always reversible. For

Cisco Support Tools User Guide for Cisco Unified Software Release 2.1(1)

217

Page 231
Image 231
Cisco Systems 2.1(1) manual Using LS Command Line Options, 217