Please enable JavaScript to view this site.

ASQL Reference

Navigation: » No topics above this level «

DIR Switches

Scroll Prev Top Next More

Updated November 2016; see History

In the list of switches below, note that like the AMOS version, you can abbreviate any switch to the minimum number of unique characters (e.g. /C for /CONTIGUOUS, etc.).

Switch

Function

/1

Eliminates the directory and size information from the output. When combined with the /NATIVE switch, it produces just a list of filenames (file.ext), similar to the Unix ls -1 command. Added in 6.1.1354.

/A

Adate: displays last access date.

/AT

Atime: displays last access time.

/CDATE

Displays file "c date."

/CON

Displays a "C" to identify "contiguous" files. (Note that under A-Shell, this really just means the file is a multiple of 512 bytes.)

/CTIME

Displays file "c time". Usually used with /CDATE. See notes under CDATE for differences between the "c date" under AMOS/Windows and Unix.

/D

Data: displays complete filespecs.

/F

Full: same as /H/CON/V

/H

Display hash code

/K

Kill: delete and replace listfile

/LONG

Changes the default display layout to filename of <72 or less>.extension of <8 or fewer> characters.

/LT

Sort by descending—newest to oldest—update date, in size update fspec format; similar to Unix ls -lt

/MAX:n

Display only files with n or fewer blocks

/MEMREQ

Memory required for program variable storage

/MIN:n

Display only files with n or more blocks

/MAXDAYS:#

Omits from the display any files that have been modified more than # days ago.

/MAXSECS:#

Omits from the display any files that have been modified more than # seconds ago.

/MINDAYS:#

Omits from the display any files that have been modified less than # days ago.

/MINSECS:#

Omits from the display any files that have been modified less than # seconds ago.

/NA {:len}

NATIVE: displays files in the native format

/NOFILES

Omit filenames; just output totals

/PAGE

Pause after each page of output

/Q

Query: prompt for confirmation on each input file. (Standard switch)

/SEXT

Sort by ascending extensions

/SNAME

Sort by ascending filenames

/SNODEV

Removes primary sort on DEVICE; see SNOxxx.

/SNOPPN

Removes primary sort on DEVICE; see SNOxxx.

/SRUDATE

Sort by descending update dates

/SSIZE

Sort by ascending file sizes

/SUDATE

Sort by ascending update dates

/UDATE

Display file update (last modified) dates

/UTIME

Display file update (last modified) times

/V

Display file version if available. Also see VERSYS.

/WARN

Forces DIR to display the message "Warning: skipping incompatible filespec" when applicable. This message was displayed by default (i.e., without the /WARN switch) in versions of DIR before 3.0(140).

/W:n

Wide: display in n columns (default n=4)

/?

Writes switch listing and usage info to the screen.

 

History

2023 November, A-Shell 7.0.1751, DIR.LIT 3.3(174):  Added SRUDATE switch

2016 November, A-Shell 6.3.1534, DIR.LIT 3.3(160):  Added MEMREQ switch