linux用户登录指定目录
生活随笔
收集整理的這篇文章主要介紹了
linux用户登录指定目录
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
一、創建用戶和用戶組
[root@web4 lianyu]# groupadd lianyu [root@web4 lianyu]# useradd lianyu -g lianyu [root@web4 lianyu]# passwd lianyu二、用戶登錄指定目錄
[root@web4 lianyu]# cd /home/lianyu [root@web4 lianyu]# ls -a . .. .bash_history .bash_logout .bash_profile .bashrc .cache CATALINA_HOME_IS_UNDEFINED .config .dubbo .ssh .viminfo?編輯.bash_profile,來指定:
# .bash_profile# Get the aliases and functions if [ -f ~/.bashrc ]; then. ~/.bashrc fi# User specific environment and startup programsexport IPOWER_HOME=/usr/local/PATH=$PATH:$HOME/.local/bin:$HOME/binexport PATHcd $IPOWER_HOME?
轉載于:https://www.cnblogs.com/zhangqigao/p/9113286.html
總結
以上是生活随笔為你收集整理的linux用户登录指定目录的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 关于常用序号的几点说明(数字序号顺序)
- 下一篇: linux 其他常用命令