跳至内容
sdvcrx's wiki
用户工具
登录
站点工具
搜索
工具
显示页面
过去修订
Export to Markdown
反向链接
最近更改
媒体管理器
网站地图
登录
>
最近更改
媒体管理器
网站地图
您的足迹:
linux:migrate
本页面只读。您可以查看源文件,但不能更改它。如果您觉得这是系统错误,请联系管理员。
====== Migrate ====== Migrate Linux from X to Y. ===== Rename user ===== First of all, login with ''root'' , then using ''usermod'' to change username: <code bash> usermod -l newUserName -d /home/newUserName -m oldUserName </code> > Linux use uid to identify user, so changing username will not affect permissions. Then, find all broken symlinks and fix it: <code bash> find . -xtype l </code> Last but not least, Search all configurations and change username, I recommand [[https://github.com/BurntSushi/ripgrep|ripgrep]]. <code> rg oldUserName </code> ===== Reference ===== * [[https://askubuntu.com/questions/34074/how-do-i-change-my-username]]
linux/migrate.txt
· 最后更改: 2023/12/03 10:24 由
127.0.0.1
页面工具
显示页面
过去修订
反向链接
Export to Markdown
回到顶部