lslogins
시스템의 사용자 계정 정보를 passwd, shadow, group, lastlog 등의 데이터에서 모아 열 형식으로 출력하는 util-linux 명령이다.
Installation
- Debian / Ubuntu:
sudo apt install util-linux - RHEL / Fedora:
sudo dnf install util-linux - macOS: Linux 계정 데이터에 맞춘 동일 구현은 기본 제공되지 않는다.
- Windows: 공식
winget패키지는 확인되지 않았다. WSL에서는 배포판 패키지를 사용한다.
lslogins --version
Usage
lslogins [OPTIONS] [USERNAME…]-u, –user-accs: 일반 사용자 계정 표시-s, –system-accs: 시스템 계정 표시-g, –groups=GROUPS: 지정 그룹의 계정 표시-o, –output LIST: 출력 열 선택-l, –logins=LOGINS: 로그인 이름 목록 제한-p, –pwd: password 관련 상태 열 추가. 권한이 필요할 수 있다.
Examples
lslogins lslogins -u lslogins -o USER,UID,GID,HOME,SHELL sudo lslogins -p alice
Help
See Also
History
- codex:: 2026-08-10 Added the command page with account filters, output selection, and security notes.