'ls'에 해당되는 글 1건

  1. 2004/04/11 man ls

man ls

컴퓨터/System 2004/04/11 11:16

LS

Section: User Commands (1)
Updated: 18 June 2002
Index
Return to Main Contents

NAME

ls, dir, vdir - list directory contents

디렉토리의 항목들을 출력

SYNOPSIS

ls [options] [file...]

POSIX options: [-CFRacdilqrtu1]

GNU options (shortest form): [-1abcdfghiklmnopqrstuvxABCDFGHLNQRSUX] [-w cols] [-T cols] [-I pattern] [--block-size=SIZE] [--classify] [--color[={none,always,auto}]] [--file-type] [--full-time] [--format={across,commas,long,single-column,verbose,vertical}] [--human-readable] [--indicator-style={none,file-type,classify}] [--quoting-style={c,clocale,escape,literal,locale,shell,shell-always}] [--show-control-chars] [--si] [--sort={none,extension,size,time,version}] [--time={atime,access,ctime,status,use}] [--help] [--version] [--]

DESCRIPTION

The program ls lists first its non-directory file arguments, and then for each directory argument all listable files contained within that directory. If no non-option arguments are present, a default argument `.' (the current directory) is assumed. The -d option causes directories to be treated as non-directory arguments. A file is listable when either its name does not start with `.', or the -a option is given.

Each of the lists of files (that of non-directory files, and for each directory the list of files inside) is sorted separately according to the collating sequence in the current locale. When the -l option is given, each list is preceded by a summary line giving the total size of all files in the list, measured according the selected block size.

The output is to stdout, one entry per line, unless multicolumn output is requested by the -C option. However, for output to a terminal, it is undefined whether the output will be single-column or multi-column. The options -1 and -C can be used to force single-column and multi-column output, respectively.

요약

ls는 디렉토리가 인자로 주어지면 그 디렉토리에 들어있는 파일들을 리스트한다.

만약 인자가 주어지지 않는다면 기본적으로 .(현재디렉토리)으로 인식을 한다.

-d 옵션은 디렉토리가 아닌 인자를 취급하는 디렉토리다.

파일의 이름이 .으로 시작하지 않거나 -a 옵션이 주어질때 파일이 리스트된다.

리스트된 각각의 파일들은 현재 설정에 의해 대조순서에 의해 정렬이 된다.

-l 옵션이 주어지면 각 리스트는 선택된 블록사이즈에 의해 측정된 모든 파일의 전체 크기를 기록한 요약도 곁들여서 출력된다.

다중 출력이 -C 옵션에 의해 요청되어지지 않으면 라인당 하나의 요소(파일)가 표준출력으로 출력된다.

하지만 터미널로 출력되는동안 싱글컬럼인지 다중컬럼인지 정의되어 있지는 않다.

-1, -C는 각각 옵션은 싱클(멀티) 컬럼으로 사용될 수있다.

POSIX OPTIONS

-C
List files in columns, sorted vertically.
세로로 정렬한다.



-F
Suffix each directory name with `/', each FIFO name with `|', and each name of an executable with `*'.
첨가자를 둔다. 디렉토리는 /, FIFO는 |, 실행파일은 *



-R
Recursively list subdirectories encountered.
디렉토리의 서브디렉토리까지 순환적으로 출력한다.



-a
Include files with a name starting with `.' in the listing.
.으로 시작되는 파일명을 포함해 출력한다.



-c
Use the status change time instead of the modification time for sorting (with -t) or listing (with -l).
최근 변경한 시간에따라 정렬해서 출력한다.



-d
List names of directories like other files, rather than listing their contents.
해당 내용을 리스트하기보다는 다른 파일들과 같이 해당 디렉토리경로를 표시한다.



-i
Precede the output for the file by the file serial number (i-node number).
i-node 넘버를 앞에 출력한다.



-l
Write (in single-column format) the file mode, the number of links to the file, the owner name, the group name, the size of the file (in bytes), the timestamp, and the filename. By default, the timestamp shown is that of the last modification; the options -c and select the other two timestamps. For device special files the size field is commonly replaced by the major and minor device numbers.
파일모드,파일링크갯수,소유자,그룹,파일사이즈(byte),시간,파일명을 표시한다.
기본적으로 보여지는 타임스탬프는 최근 변경된 시간이다.
디바이스 파일은 일반적으로 파일사이즈 필드에 메이저,마이너 번호로 대치된다.


-q
Output nonprintable characters in a filename as question marks. (This is permitted to be the default for output to a terminal.)
파일이름이 nonprintable 이면 ? 로 표시한다.


-r
Reverse the order of the sort.
역정렬한다.


-t
Sort by the timestamp shown.
시간으로 정렬한다.


-u
Use the time of last access instead of the modification time for sorting (with -t) or listing (with -l).
최근에 access한 순으로 정렬한다.


-1
For single-column output.
싱글컬럼(한줄에 파일하나)으로 출력

GNU DETAILS

If standard output is a terminal, the output is in columns (sorted vertically).

dir (also installed as d) is equivalent to `ls -C'; that is, files are by default listed in columns, sorted vertically. vdir (also installed as v) is equivalent to `ls -l'; that is, files are by default listed in long format.

표준출력이 터미널이면 세로로 정렬된다.

dir은 'ls -C'와 동등하다. 즉, 파일은 기본적으로 컬럼에 리스트되고 세로로 정렬된다.

vdir 은 'ls -l'과 동등하다. 파일은 롱포맷으로 리스트된다.

GNU OPTIONS

-1, --format=single-column
List one file per line. This is the default for when standard output is not a terminal.
라인당 하나의 파일이 출력. 표준출력이 터미널이 아닐때 항상 이 옵션이 켜진상태이다.


-a, --all
List all files in directories, including all files that start with `.'.
디렉토리의 모든 파일(숨김파일포함) 출력


-b, --escape, --quoting-style=escape
Quote nongraphic characters in file names using alphabetic and octal backslash sequences like those used in C.
알파벳형식을 사용하는 파일명에서 그래픽문자가 아닌것들을 escape 시킨다.
C처럼 여덟가지 역슬래쉬 문자와 함께 오는 문자를 사용한다.


-c
Sort directory contents according to the files' status change time (the `ctime' in the inode). If the long listing format is being used (-l) print the status change time instead of the modification time.
파일이 변경된 시간에 의해 정렬한다.
만약 -l 옵션이 사용되었으면 최근변경시간을 보여준다.


-d, --directory
List names of directories like other files, rather than listing their contents.
디렉토리의 경로를 출력한다.


-f
Do not sort directory contents; list them in whatever order they are stored on the disk. Also enables -a and disables -l, --color, and -s if they were specified before the -f.
정렬하지 않고 디스크에 저장된 순서로 리스트된다.
-f 옵션과 함께 -a 옵션은 적용되지만 -l, --color, -s 옵션은 적용되지 않는다.


-g
Ignored; for Unix compatibility.
유닉스 호환을 위해서 무시된다.


-h, --human-readable
Append a size letter such as M for megabytes to each size. Powers of 2 are used, not 10; M stands for 1,048,576 bytes. Use the -H or --si option if you prefer powers of 10.
각 파일사이즈값을 M문자로 표시한다. 2의 제곱형태를 취한다. 1M = 1,048,576 btye
만약 10의 거듭제곱형태로 출력하고 싶다면 -H, --si 옵션을 사용한다.


-i, --inode
Print the inode number (also called the file serial number and index number) of each file to the left of the file name. (This number uniquely identifies each file within a particular filesystem)
파일네임 왼쪽에 i-node 번호를 출력한다. i-node는 파티션내에 있는 unique한 값이다.


-k, --kilobytes
If file sizes are being listed, print them in kilobytes.
킬로바이트 단위로 크기를 보여준다.(bash 기본모드)


-l, --format=long, --format=verbose
In addition to the name of each file, print the file type, permissions, number of hard links, owner name, group name, size in bytes, and timestamp (the modification time unless other times are selected). For files with a time that is more than 6 months old or more than 1 hour into the future, the timestamp contains the year instead of the time of day.

For each directory that is listed, preface the files with a line `total blocks', where blocks is the total disk space used by all files in that directory. By default 1024-byte blocks are used, but this value can be overriden. The blocks computed counts each hard link separately; this is arguably a bug.

The permissions listed are similar to symbolic mode specifications but ls combines multiple bits into the third character of each set of permissions

파일명에 추가로 파일타입,퍼미션,하드링크넘버,소유자,그룹,크기,시간따위를 출력한다.

파일변경 시간이 6개월이전이거나 앞으로 1시간이후의 미래일때는 날짜의 시간대신 년도로 표기를 한다.

디렉토리가 리스트되기앞서 "total blocks" 한 라인이 출력되는데 blocks는 해당 디렉토리의 모든 파일들에 의해 사용되어지는 디스크전체공간을 의미한다.

기본적으로 1024byte 블록을 사용하는데 오버라이드될 수있다. 블록은  각각의 하드링크의 수를 따로따로 계산한다. 이건 확실히 버그다.

리스트된 퍼미션은 특정 심볼릭모드와 유사하지만 ls는 multi bit로 계산하여 퍼미션으로 세가지 타입을 만들어낸다.



s
If the setuid or setgid bit and the corresponding executable bit are both set.
setuid나 setgid가 실행비트로 세팅되게 한다.
S
If the setuid or setgid bit is set but the corresponding executable bit is not set.
setuid,setgid가 set됬지만 실행비트는 set시키지 않을때
t       If the sticky bit and the other-executable bit are both set.
         스틱키비트와 다른실행비트 모두 set
T
If the sticky bit is set but the other-executable bit is not set.
스틱키비트는 set되지만 다른 실행비트는 set시키지 않을때
x
If the executable bit is set and none of the above apply.
실행비트가 set되고 위 내용에 적용되지 않을때
-
Otherwise
그외의 경우
-m, --format=commas
List files horizontally, with as many as will fit on each line, each separated by a comma and a space.
리스트를 수평으로 출력한다. 컴마(,)와 공백으로 구분한다.

-n, --numeric-uid-gid
List the numeric UID and GID instead of the names.
소유자,그룹 이름대신 UID,GID로 출력한다.

-o
Produce long format directory listings, but don't display group information. It is equivalent to using --format=long --no-group. This option is provided for compatibility with other versions of ls.
-l 옵션과 유사하지만 그룹정보를 출력하지 않는다. 이 옵션은 --format=long --no-group 과 동일하다.
이것은 다른 버전의 ls와 호환을 위해 만들어진 옵션이다.

-p, --file-type, --indicator-style=file-type
Append a character to each file name indicating the file type. This is like -F except that executables aren't marked.
각 파일타입을 표시하는 문자를 추가한다. 이것은 실행파일이 mark 되는 않은 것을 제외하고 -F 옵션과 같다.

-q, --hide-control-chars
Print question marks instead of nongraphic characters in file names. This is the default if the output is a terminal and the program is ls.
파일명이 그래픽문자가 아니면 ? 로 출력한다.

-r, --reverse
Sort directory contents in reverse order.
역정렬한다.

-s, --size
Print the disk allocation of each file to the left of the file name. This is the amount of disk space used by the file, which is usually a bit more than the file's size, but it can be less if the file has holes.

The allocation of each file is printed in 1024-byte blocks to the left of the file name, but this block size may be overriden.

파일명 왼쪽에 각 파일의 디스크 할당량을 표시한다. 이것은 파일이 사용하는 디스크의 양이다. 일반적으로 파일사이즈보다 한 비트가 많지만 파일에 hole이 있다면 무시될 수있을 정도다. 각 파일의 할당은 1024byte 단위로 파일명 왼쪽에 표시된다. 하지만 블록사이즈는 변경될 수있다.


-t, --sort=time
Sort by modification time (the `mtime' in the inode) instead of alphabetically, with the newest files listed first.
알파벳대신 수정시간(i-node에서 mtime)에 의해 정렬된다. 최근파일이 맨처음..

-u
Sort directory contents according to the files' last access time instead of the modification time (the `atime' in the inode). If the long listing format is being used, print the last access time instead of the modification time.
수정시간대신 가장 마지막으로 access한 시간에 의해 정렬된다.
만약 -l 옵션을 사용하게되면 수정시간대신 최근 access시간이 출력된다.

-v, --sort=version
Sort by version name and number, lowest first. It behaves like a default sort, excepted that each sequence of decimal digits is treated numericaly as an index/version number; numeric parts with leading zeroes are considered as fractional
버전별로 출력이 된다. 가장 낮은 버전번호가 먼저 출력된다.
각 10진수가 인덱스/버전번호 숫자로 취급한다는 점을 제외하면 기본 sort처럼 작동한다.

-w, --width cols
Assume the screen is cols columns wide. The default is taken from the terminal driver if possible; otherwise the environment variable COLUMNS is used if it is set; otherwise the default is 80.
스크린상의 cols 넓이를 나타낸다. 기본값은 COLUMNS 환경변수가 설정되어 있다면 그 값을 사용하고 그렇지않다면 80

-x, --format=across, --format=horizontal
List the files in columns, sorted horizontally.
수평정렬

-A, --almost-all
List all files in directories, except for `.' and `..'.
".", ".." 을 제외하고 -a 옵션과 같다.

-B, --ignore-backups
Do not list files that end with `~', unless they are given on the command line.
파일명이 ~ 으로 끝나는 것은 제외한다.

-C, --format=vertical
List files in columns, sorted vertically. This is the default if standard output is a terminal. It is always the default for dir and d. GNU ls uses variable width columns to display as many files as possible in the fewest lines.
수직정렬. 표준출력 터미널의 기본모드이다.

-D, --dired
With the long listing ( -l) format, print an additional line after the main output:
 //DIRED//  BEG1 END1 BEG2 END2 ... 

The BEGn and ENDn are unsigned integers which record the byte position of the beginning and end of each file name in the output. This makes it easy for Emacs to find the names, even when they contain unusual characters such as space or newline, without fancy searching.

If directories are being listed recursively (-R), output a similar line after each subdirectory:

 //SUBDIRED//  BEG1 END1 ... 

Finally, output a line like

 //DIRED-OPTIONS// --quoting-style=WORD 

where WORD is the quoting style.

-l 옵션과 함께 사용되고 메인출력후 추가라인을 표시한다.

BEGn과 ENDn값은 출력된 각각의 파일명의 처음과 끝의 byte 위치를 양수로 표시한것이다.

이것은 Emacs가 스페이스,뉴라인등의 비정규문자가 포함된 파일명을 찾는데 유용하다.

-R 옵션이 있다면 서브디렉토리이후 위와 비슿난 라인이 출력된다.

//SUBDIRED// BEG1 END1 ...

은 결과적으로 아래와 같다.

//DIRED-OPTIONS// --quoting-style=WORD

WORD는 쿼우팅 스타일이다.


-F, --classify
Same as --indicator-style=classify.
--indicator-style=classify 옵션과 같다.

-G, --no-group
Inhibit display of group information in a long format directory listing.
-l 옵션에서 그룹정보를 출력하지 않게 한다.

-H, --si
Append a size letter such as M for megabytes to each size. (SI is the International System of Units, which defines these letters as prefixes) Powers of 10 are used, not 2; M stands for 1,000,000 bytes. Use the -h or --human-readable option if you prefer powers of 2.
사이즈 출력시 megabytes 단위로 M 문자를 사용한다.
10의 거듭제곱 형태이다(2의 거듭제곱이 아니다) 1M = 1,000,000 bytes
2의 거듭제곱형태로 사용하고 싶으면 -h, --human-readable 옵션을 사용한다.

-I, --ignore=pattern
Do not list files whose names match the shell pattern pattern (not regular expression) unless they are given on the command line. As in the shell, an initial `.' in a filename does not match a wildcard at the start of pattern. For example,
커맨드라인이 주어지지 않으면 쉘패턴(정규표현식이 아닌)과 매치되는 파일을 출력하지 않는다.
lightside:~% ls --ignore='.??*' --ignore='.[^.]' \ --ignore='#*' 

The first option ignores names of length 3 or more that start with `.', the second ignores all two-character names that start with `.' except `..', and the third ignores names that start with `#'.

첫번째, .으로 시작하는 세자리, 또는 그 이상의 파일명은 무시한다.

두번째, ..을 제외하고 .으로 시작하는 길이 2의 파일명을 무시한다.

세번째, "#"으로 시작하는 모든 파일명을 무시한다.


-L, --dereference
List the file information corresponding to the referrents of symbolic links rather for the links themselves.

-N, --literal
Do not quote file names.
파일명을 escape 시키지 않는다.

-Q, --quote-name, --quoting-style=c
Enclose file names in double quotes and quote nongraphic characters as in C.
C에서처럼 비정규문자를 ', "로 파일명을 둘러싼다.

-R, --recursive
List the contents of all directories recursively.
서브디렉토리를 출력한다.

-S, --sort=size
Sort directory contents by file size instead of alphabetically, with the largest files listed first.
파일크기로 소트한다. 가장 큰 파일이 맨먼저 나온다.

-T, --tabsize cols
Assume that each tabstop is cols columns wide. The default is 8. ls uses tabs where possible in the output, for efficiency. If cols is zero, do not use tabs at all.
tabstop는 cols 넓이값이고 기본값은 8이다. ls는 출력에서 사용가능한 탭을 효율적으로 사용한다. 만약 cols가 0이면 tabs를 전혀 사용할 수없다.

-U, --sort=none
Do not sort directory contents; list them in whatever order they are stored on the disk. (The difference between -U and -f is that the later doesn't disable or enable options). This is especially useful when listing very large directories, since not doing any sorting can be noticeably faster.
정렬하지 않는다. 디스크에 저장된 순서로 그것들을 출력한다.
-U와 -f의 다른점은 옵션을 활성화,비활성화 시키냐는 것이다.
이 옵션은 용량이 큰 디렉토리를 리스트할때 속도면에서 특히 유용하다.

-X, --sort=extension
Sort directory contents alphabetically by file extension (characters after the last `.'); files with no extension are sorted first.
확장자(마지막 . 다음문자)로 정렬한다. 확장자가 없으면 먼저 출력된다.

--block-size=SIZE
Set the block size to SIZE, overriding the value of the environment variables.
SIZE값으로 블록을 세팅한다. 환경변수값에 의해서 변경이 가능하다.

--color[=when]
Specify whether to use color for distinguishing file types. Colors are specified using the LS_COLORS environment variable. For information on how to set this variable, see dircolors(1). when may be omitted, or one of:
파일타입을 판별하기위해 색상을 사용할지 그렇지 않을지를 정한다.
색상은 LS_COLORS 환경변수가 사용하는 값이다.
LSCOLORS값을 세팅하는 법은 man dircolors로 확인해라. when 값은 생략될 수있다.


none
Do not use color at all. This is the default.
색상을 사용하지 않는다. 기본값이다.
auto
Only use color if standard output is a terminal.
표준출력이 터미널일때만 사용가능하다.
always
Always use color. Specifying --color and no when is equivalent to --color=always.
항상 가능
--full-time
List times in full, rather than using the standard abbreviation heuristics. The format is the same as date(1)'s default; it's not possible to change this, but you can extract out the date string with cut(1) and then pass the result to `date -d'.

This is most useful because the time output includes the seconds. (Unix filesystems store file timestamps only to the nearest second, so this option shows all the information there is.) For example, this can help when you have a Makefile that is not regenerating files properly.

축약적으로(가독성을 고려한) 표시하지 않고 자세히 보여준다.

포맷은 date의 값과 같다. 이값을 바꾸는것은 불가능하지만 cut 유틸리티로 특정 문자를 추출할 수있다.

이것은 출력시간이 초단위를 포함하기때문에(유닉스 시스템은 timestamp형태로 파일을 저장하므로 이 옵션은 그것에 대한 정보를 보여준다) 여러모로 유용하다.

--indicator-style=WORD
Append a character to each file name indicating the file type, and depending on WORD:
파일타입을 가리키는 문자를 추가한다. 이 옵션은 전적으로 WORD에 의존한다.

none
Do not append any character indicator; this is the default behaviour
지시문자를 추가하지 않는다. 기본모드
file-type
Append `/' for directories, `@' for symbolic links, `|' for FIFOs, `=' for sockets, and nothing for regular files. This is the same as -p or --file-type.
디렉토리는 /, 심볼릭링크는 @, FIFO는 |, 소켓은 =
이것은 -p 또는 --file-type과 같다.
classify
As file-type, but also append a `*' for execultables. This is the same as -F or --classify.
실행파일에 *을 추가한다.
이는 -F, --classify 옵션과 같다.

--quoting-style=WORD

Use style WORD to quote output names. The WORD should be one of the following:
쿼우팅 스타일을 지정한다.

literal
Output names as-is. This is the default behaviour, although it may change to shell in future versions. 
shell
Quote names for the shell if they contain shell metacharacters or would cause ambiguous output.
shell-always
Quote names for the shell, even if they would normally not require quoting.
c
Quote names as for a C language string; this is the same as -Q or --quote-name.
escape
Quote as with c except omit the surrounding double-quote characters; this is the same as -b or --escape.
locale
Like c sytle but with appropiate locale specific quoting symbols this
clocale
Like c sytle but with appropiate locale specific quoting symbols `like this'.

You can specify the default value of the --quoting-style option with the environment variable QUOTING_STYLE.

당신은 환경변수 QUOTING_STYLE로 --quoting-style 옵션의 기본값을 정의할 수있다.


--show-control-chars
Print nongraphic characters as-is in file names. This is the default unless the output is a terminal and the program is ls.
파일명에 비정규문자를 출력한다. 출력이 터미널이고 ls가 아니라면 기본값이다.

--time=atime, --time=access
When used along with --sort=time or -t, this is equivalent to -u (sort by atime). When used with options that normally print times, print each file's last access time, instead of it's last modification time.
--sort=time, -t 옵션을 사용했을때 -u(atime으로 정렬) 옵션을 사용한것과 동일하다.
일반적인 시간출력을위해 옵션을 사용할때 각각의 파일 수정시간이 아닌 최근 access 시간을 출력한다.  

--time=ctime, --time=status, --time=use
When used along with --sort=time or -t, this is equivalent to -c (sort by ctime). When used with options that normally print times, print each file's inode last change time, instead of it's last modification time.
--sort=time, -t 옵션을 사용할때 -c(ctime로 정렬) 옵션을 사용한것과 동일하다.
일반적인 시간출력을 위해 이 옵션을 사용할때 각 파일의 수정시간이 아닌 inode의 최근 변경시간을 출력한다.

GNU STANDARD OPTIONS

--help
Print a usage message on standard output and exit successfully.
--version
Print version information on standard output, then exit successfully.
--
Terminate option list.

BLOCK SIZE

The default output file block size is 1024 bytes (or 512 if POSIXLY_CORRECT). You may change this value by setting any of the following environment variables, which are overriden if a --block-size=SIZE is given.

기본 파일블록 사이즈는 1024byte(POSIXLY_CORRECT이면 512byte)

당신은 아래의 환경변수의 세팅으로 값을 변경시킬 수있다.

--block-size-SIZE 값이 주어지면 override 된다.

In order of precedence:
LS_BLOCK_SIZE, BLOCK_SIZE, POSIXLY_CORRECT.

The values for these variables can be either a number, human-readable, or si. Numbers may be followed by a size letter to specify a multiple of that size, and a B to select normal bytes or a D to select decimal "commercial" bytes. For example `BLOCK_SIZE=1KB' is equal to `BLOCK_SIZE=1024' and `BLOCK_SIZE=1KD' is equal to `BLOCK_SIZE=1000'

The following letters are recognized (and used when printing with --human-readable or --si)

변수값으로 human-readable, si값을 사용할 수있다.

숫자는 뒤따르는 특정문자에 의해 크기가 지정된다. B는 일반적인 byte를 표시하고 D는 다소 상업적인 십진 byte를 사용한다.

예를들면 1KB = 1024, 1KD = 1000

k
kilo: 2^10 = 1024 for --human-readable, or 10^3 = 1000 for --si
M
Mega: 2^20 = 1,048,576 or 10^6 = 1,000,000
G
Giga: 2^30 = 1,073,741,824 or 10^9 = 1,000,000,000
T
Tera: 2^40 = 1,099,511,627,776 or 10^12 = 1,000,000,000,000
P
Peta: 2^50 = 1,125,899,906,842,624 or 10^15 = 1,000,000,000,000,000
E
Exa: 2^60 = 1,152,921,504,606,846,976 or 10^18 = 1,000,000,000,000,000,000
Z
Zetta: 2^70 = 1,180,591,620,717,411,303,424 or 10^21 = 1,000,000,000,000,000,000,000
Y
Yotta: 2^80 = 1,208,925,819,614,629,174,706,176 or 10^24 = 1,000,000,000,000,000,000,000,000

ENVIRONMENT

The variables LS_BLOCK_SIZE, BLOCK_SIZE and POSIXLY_CORRECT determine the choice of the output file block size. The variable COLUMNS (when it contains the representation of a decimal integer) determines the output column width (for use with the -C option). Filenames must not be truncated to make them fit a multi-column output. The variable QUOTING_STYLE determines the quoting style for output. The variable LS_COLORS is used to specify the colors used. The variables LANG, LC_ALL, LC_COLLATE, LC_CTYPE, LC_MESSAGES and LC_TIME have the usual meaning. The variable TZ gives the time zone for time strings written by ls.

BUGS

On BSD systems, the -s option reports sizes that are half the correct values for files that are NFS-mounted from HP-UX systems. On HP-UX systems, ls reports sizes that are twice the correct values for files that are NFS-mounted from BSD systems. This is due to a flaw in HP-UX; it also affects the HP-UX ls program.

CONFORMING TO

POSIX 1003.2

SEE ALSO

dircolors(1)

NOTES

This page describes ls as found in the fileutils-4.1 package;

other versions may differ slightly. Mail corrections and additions to aeb@cwi.nl and aw@mail1.bet1.puv.fi and ragnar@ragnar-hojland.com Report bugs in the program to bug-fileutils@gnu.org
TAG ls, man