linux - 如何找到我的用户名(ubuntu 20.04 中的系统登录用户名)?

标签 linux ubuntu unix root ubuntu-20.04

关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。












我们不允许在 Stack Overflow 上提出有关通用计算硬件和软件的问题。您可以编辑问题,使其成为 on-topic对于堆栈溢出。


5个月前关闭。







Improve this question




如何在 Ubuntu 20.04.3 LTS 中找到我的系统登录用户名?
enter image description here

最佳答案

Use this solution if you didn't encrypt your home directory.


Do you still have the installation media(LiveCD/USB) from which you installed Ubuntu? Boot from it and select Try Ubuntu.


Go to Files and then, you will see you already installed Ubuntu partition. Click on it, it will mount.


Go to /home. Here you will see a list of all users on the system that you have created.


To jog your memory, however, what is your name? Did you enter the same name while installing Ubuntu? Do you recall the name that was displayed on the login prompt where you entered your password? Ubuntu by default sets the username as your first name in lowercase.


Example; name= John Doe, automatically set username= john


来源:https://askubuntu.com/a/704873
enter image description here

关于linux - 如何找到我的用户名(ubuntu 20.04 中的系统登录用户名)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70831381/

相关文章:

linux - Grunt Package cmd 在运行 minall 任务时失败(ubuntu 和 windows)

shell - 从 nmcli 输出中获取以太网连接 ID

ubuntu - Docker - 使用 IP 浏览 Docker 容器

google-chrome - 在 Ubuntu 中为 Google Chrome 禁用 AdBlock Plus 中的首次运行页面

unix - 如何忽略以带有差异的字符串开头的行?

linux - Bash 模式匹配

linux - 如何检查 sshd 是否在远程机器上运行

php - 仅自动备份 MySql 数据库和 WHM 中的选定文件夹或通过 cron 作业命令

c - 一次又一次分配相同的内存空间

创建多代子进程