IP변경

/etc/sysconfig/network-scripts/<인터페이스>
 IPADDR="<IP>" 

# ifup <인터페이스> 



history 타임스탬프

/etc/profile 
  HISTTIMEFORMAT="[%F %T] " 
  export HISTTIMEFORMAT 

or

# sed -i '10a\\export HISTTIMEFORMAT\n' /etc/profile 
# sed -i '10a\\HISTTIMEFORMAT="[%F %T] "' /etc/profile 

 


ssh root 접근 차단

/etc/ssh/sshd_config 
 PermitRootLogin no 

# sed -i "s/tLogin yes/tLogin no/g" /etc/ssh/sshd_config 

# systemctl restart sshd 



TimeZone 변경

# timedatectl set-timezone Asia/Seoul 

 


Prompt 전체 경로 표시

# echo 'export PS1="[\u@\h \w]\\$ "' > /etc/profile.d/prompt.sh