ubuntu虛擬機查看用戶名的方法:
打開終端使用任意賬號,如:
cat /etc/passwd
每行對應一個用戶,各列分別為:
username:password(masked):userId;groupId:comment:homeDir:shell
例如:
da_kao_la:x:1042:1042:,,,:/home/da_kao_la:/bin/bash
其中密碼一般用`x`或`*`表示。