리눅스 getent

1 개요[편집]

리눅스 getent[1]
/usr/bin/getent
  • 엔트리 조회 리눅스 명령어

2 실행 예시[편집]

[root@zetawiki ~]# getent passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
... (생략)
/etc/passwd 참고
[root@zetawiki ~]# getent passwd apache
apache:x:48:48:Apache:/var/www:/sbin/nologin
[root@zetawiki ~]# getent group
root:x:0:
bin:x:1:bin,daemon
daemon:x:2:bin,daemon
... (생략)
/etc/group 참고
[root@zetawiki ~]# getent aliases
mailer-daemon:  postmaster
postmaster:     root
bin:            root
... (생략)
/etc/aliases 참고
[root@zetawiki ~]# getent hosts
127.0.0.1       localhost.localdomain localhost.localdomain localhost4 localhost4.localdomain4 localhost
127.0.0.1       localhost.localdomain localhost.localdomain localhost6 localhost6.localdomain6 localhost
/etc/hosts 참고

3 같이 보기[편집]

4 참고[편집]

  • ←get entry
  • 문서 댓글 ({{ doc_comments.length }})
    {{ comment.name }} {{ comment.created | snstime }}