데이터 영역 사이즈 제한(Limit the size of data area)

ulimit 과 limit을 사용하여 "데이터 영역(data area)"의 사이즈를 제한할 수 있다.

sh 또는 ksh 에서는 :
$ ulimit -d SIZE_IN_KB

현재의 모든 리소스 제한을 표시하려면
$ ulimit -a

csh 또는 tcsh 에서는 : 
$ limit datasize SIZE_IN_KB

현재의 모든 리소스 제한을 표시하려면
$ limit

예를 들어 다음과 같이 사용한다.
$ ulimit -d 141073
$ ulimit -a
-------------------------------<원문>---------------------------------
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
                             UNIX GURU UNIVERSE
                                UNIX HOT TIP

                       Unix Tip 2930 - February 13, 2009

                   http://www.ugu.com/sui/ugu/show?tip.today
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

LIMIT THE SIZE OF DATA AREA

You can limit the size of "data area"
using ulimit and limit.

Under sh or ksh:
$ ulimit -d SIZE_IN_KB

Displays all current resource limits
$ ulimit -a

under csh or tcsh:
$ limit datasize SIZE_IN_KB

Displays all current resource limits
$ limit

For example:
$ ulimit -d 141073
$ ulimit -a

반응형
Posted by She쥐포s

 다음의 파일에서 호스트 이름을 변경

  1. /etc/hosts
  2. /etc/nodename
  3. /etc/hostname.[인터페이스명]
  4. /etc/net/ticlts/hosts
  5. /etc/net/ticots/hosts
  6. /etc/net/ticotsord/hosts

반응형
Posted by She쥐포s
일반적인 방법은
    1. / 디렉토리에 reconfigure 파일을 생성한 후 reboot
또는
    2. 쉘에서 다음 명령어 입력
        # reboot -- -r
또는
    3. PROM모드에서 다음 명령어 입력
        ok> boot -r
또는
    4. x86에서는
        (b)oot (i)nterpreter 부분에서 "b -r" 입력
을 입력하면 된다는데..

x86 solaris 10에서는 grub으로 변경이 되어 다음과 같은 방법을 사용하였다.

    1. 부팅시 화면에서 e를 입력한다.(편집모드)

    2. 메뉴에서 커널부분을 선택 후 e를 입력(해당 라인 편집)

    3. 라인의 끝에 -r을 추가 하고 엔터

    4. b를 입력하여 부팅한다.

    5. 이후 작업을 진행한다.
반응형
Posted by She쥐포s

2009. 11. 2. 15:56 Unix/Solaris

Solaris Run Level

○ runlevel 0

    - 운영 환경 종료

    - bootPROM ok 프로프트 표시

    - OS가 운영되지 않는 바이오스 수준에서 여러 가지 작업을 할 경우 사용


○ runlevel s, S

    - 단일 사용자로 실행

    - 모든 파일 시스템 마운트 및 액세스 가능

    - 시스템의 잘못된 설정 파일을 수정하거나 파일 시스템을 복구하거나 백업하는 용도로 많이 사용


○ runlevel 1

    - 단일 사용자 관리 상태에서 시스템이 실행되고 있음을 나타냄

    - 사용 가능한 모든 파일 시스템에 액세스 가능


○ runlevel 2

    - 멀티유저 운영 상태에서 시스템이 실행되고 있음을 나타냄

    - 멀티유저에 액세스 가능

    - NFS 서버 데몬을 제외한 모든 시스템 데몬 실행


○ runlevel 3

    - NFS 자원을 공유할 수 있는 멀티유저 운영 상태에서 시스템이 실행되고 있음을 나타냄 /etc/inittab
       파일에서 기본 런 레벨로 지정됨


○ runlevel 4

    - 현재 구현되지 않는다.


○ runlevel 5

    - 운영환경 종료

    - 시스템 전원 끄기


○ runlevel 6

    - 런레벨 0으로 시스템 종료

    - 기본 런 레벨(일반적으로 런 레벨3)로 시스템 재부팅

* 출처 : http://felions.tistory.com 에서 http://honhon20.tistory.com/category/Unix(Solaris) 로
   퍼온글을 옮겼습니다. ㅎㅎㅎ

반응형
Posted by She쥐포s
* 리스트 확인

bash-2.03# unzip -l 142397-01.zip

Archive:  142397-01.zip
 Length    Date    Time    Name
 ------    ----    ----    ----
      0  10-23-09  00:09   142397-01/
     76  07-21-09  07:13   142397-01/.diPatch
    214  07-21-09  07:13   142397-01/patchinfo
   2664  10-23-09  00:09   142397-01/README.142397-01
      0  07-21-09  07:57   142397-01/SUNWlibsasl/
      0  07-21-09  07:57   142397-01/SUNWlibsasl/reloc/
      0  07-21-09  07:57   142397-01/SUNWlibsasl/reloc/usr/
      0  07-21-09  07:57   142397-01/SUNWlibsasl/reloc/usr/lib/
      0  07-21-09  07:57   142397-01/SUNWlibsasl/reloc/usr/lib/sparcv9/
 129680  07-21-09  07:41   142397-01/SUNWlibsasl/reloc/usr/lib/sparcv9/libsasl.so.1
 113152  07-21-09  07:41   142397-01/SUNWlibsasl/reloc/usr/lib/libsasl.so.1
    560  07-21-09  07:57   142397-01/SUNWlibsasl/pkginfo
    627  07-21-09  07:57   142397-01/SUNWlibsasl/pkgmap
      0  07-21-09  07:57   142397-01/SUNWlibsasl/install/
    565  07-21-09  07:13   142397-01/SUNWlibsasl/install/patch_preinstall
  12100  07-21-09  07:13   142397-01/SUNWlibsasl/install/postinstall
   4300  07-21-09  07:13   142397-01/SUNWlibsasl/install/patch_postinstall
   8023  07-21-09  07:13   142397-01/SUNWlibsasl/install/preinstall
   2044  07-21-09  07:13   142397-01/SUNWlibsasl/install/patch_checkinstall
   4104  07-21-09  07:13   142397-01/SUNWlibsasl/install/u.none
   7102  07-21-09  07:13   142397-01/SUNWlibsasl/install/i.none
   3426  07-21-09  07:13   142397-01/SUNWlibsasl/install/copyright
   6488  07-21-09  07:13   142397-01/SUNWlibsasl/install/checkinstall
  18488  06-03-09  04:12   142397-01/LEGAL_LICENSE.TXT
 ------                    -------
 313613                    24 files

* 파일 추출
bash-2.03# unzip 142397-01.zip 142397-01/README.142397-01

Archive:  142397-01.zip
  inflating: 142397-01/README.142397-01
bash-2.03#
반응형
Posted by She쥐포s

awk에서 정규표현식 matching

다음의 명령을 사용하고자 한다면

command | grep pattern | awk '{print $3}'

이 명령은 awk에서의 정규표현식 matching기능을 이용하여 다음과 같이 간단히
사용할 수 있다.

command | awk '/pattern/{print $3}'

--------------------<원문>---------------------
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

                             UNIX GURU UNIVERSE
                                UNIX HOT TIP

                       Unix Tip 3171 - October 12, 2009

                   http://www.ugu.com/sui/ugu/show?tip.today

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

REGEXP MATCHING IN AWK

If you ever find yourself typing "command | grep pattern | awk '{print $3}'
you can shorten this by using the regexp matching in awk, like this:

command | awk '/pattern/{print $3}'

반응형
Posted by She쥐포s
NS1과 NS2 상의 zone transfer 시에 /var/log/messages 파일에 다음과 같은 로그가 나온다.

dumping master file: ................. : open: permission denied

분명히 어딘가 퍼미션이 잘못 되어 나오는 메세지일텐데....

원인은 master에서 읽어온 파일을 slave에 쓸 때 퍼미션이 없는것..
ls -l /var/named/chroot/var
drwxr----- 1  root named 512 2008년  9월  5일 named

# cd /var/named/chroot/var
# chmod g+w named

상황 끝
(이전에 되었다던데.. 그건 왜 그랬던건지.. 참..)


반응형
Posted by She쥐포s

2009. 10. 5. 14:16 Unix

Linux OS Bit 수 확인

# getconf WORD_BIT

getconf는 glibc-common 패키지에 포함되어 있어 일반적으로 적용될 것이다.

## update 2013.12.17

# getconf LONG_BIT

결과값이 64가 나오면 64bit, 32가 나오면 32bit

참고.

AIX :
# getconf WORD_BIT

HP-UX :
# getconf KERNEL_BITS

Solaris :
# isainfo -kv

참고 URL : http://sardonyx.tistory.com/entry/OS-Bit-확인


반응형
Posted by She쥐포s

2009. 8. 3. 11:45 Unix

bind 버전확인

named -v



반응형
Posted by She쥐포s

2009. 3. 31. 17:35 Unix/Linux

liveusb creator

https://fedorahosted.org/liveusb-creator/

Linux liveusb creator
Fedora Project의 일부인듯
그러나 와플에 연결하니 되지 않음.. 다른 무언가가 필요할 듯
반응형
Posted by She쥐포s

블로그 이미지
She쥐포s
Yesterday
Today
Total

달력

 « |  » 2024.4
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

최근에 올라온 글

최근에 달린 댓글

글 보관함