17 พฤษภาคม 2560

run shell script after connecting via ssh on linux / unix

If you want to run shell script after connecting to the server via ssh on linux or unix. Simple edit this file (depend on your shell)

  • ~/.profile
  • ~/.bash_profile
  • ~/.zprofile
  • ~/.login
then try to logout and re-login, the script will be executed automatically.

ไม่มีความคิดเห็น:

แสดงความคิดเห็น

บทความยอดนิยม (ล่าสุด)

บทความยอดนิยม (All Time)