dotfile
Posted on October 2, 2012
Tags: hacksoft
1 .profile : on login
~/.profile
{bash} is used as a fallback
zsh uses ~/.zprofile
{bash}
bash uses ~/.bash_profile or ~/.bash_login instead of ~/.profile
2 .zsh : on new shell
more universal than .zprofile because it runs everytime you open a new terminal.
The bash version is .bashrc
3 PATH
$HOME
is same as ~
export PATH = "$PATH:$HOME/.local/bin"
4 alias
ps -aef --forest
# user PID Parent
#
# root 114032 1170 0 Apr05 ? 00:00:00 \_ sshd: root@pts/4
# root 114039 114032 0 Apr05 pts/4 00:00:00 | \_ -bash
# root 56225 114039 0 13:47 pts/4 00:00:16 | \_ top
# root 114034 1170 0 Apr05 ? 00:00:00 \_ sshd: root@notty
# root 114036 114034 0 Apr05 ? 00:00:00 | \_ /usr/libexec/openssh/sftp-server