Linux2010. 6. 3. 18:32
ulimit은 코어덤프나 각종 제한에 대한 값을 돌려준다.
busybox의 ash나, 일반적인 리눅스에서 채용하는 bash에서 지원하는 내장명령어로 보이며

busybox에서는 아래와 같이 출력된다.
# ulimit
unlimited

# ulimit -c
0

# ulimit -a
time(seconds)        unlimited
file(blocks)         unlimited
data(kb)             unlimited
stack(kb)            8192
coredump(blocks)     0
memory(kb)           unlimited
locked memory(kb)    32
process              232
nofiles              1024
vmemory(kb)          unlimited
locks                unlimited

아래는 Fedora Core 6 / Bash 에서 출력한 화면.
# ulimit
unlimited

# ulimit -c
0

# ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
max nice                        (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 32216
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
max rt priority                 (-r) 0
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) 32216
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

[링크 : http://linux.die.net/man/1/ulimit]
[링크 : http://linux.die.net/man/1/bash]
[링크 : http://dolba.net/tt/k2club/entry/How-To-Create-Core-File]

Posted by 구차니