Skip to content

Instantly share code, notes, and snippets.

@tml
Created July 19, 2018 05:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tml/5fac802de028b8e8024ebf95902b9951 to your computer and use it in GitHub Desktop.
Save tml/5fac802de028b8e8024ebf95902b9951 to your computer and use it in GitHub Desktop.
root@ip-172-31-19-81:~# cat >> .bash_profile <<EOT
> echo "I ran the .bash_profile for root"
> EOT
root@ip-172-31-19-81:~# logout
(main) 23:33:16 [ joey@ip-172-31-19-81:0 ] ~ 2126 -->sudo -s
23:33:20 [ root@ip-172-31-19-81:0 ] ~ 494 -->exit
(main) 23:33:21 [ joey@ip-172-31-19-81:0 ] ~ 2127 -->sudo -i
I ran the .bash_profile for root
root@ip-172-31-19-81:~#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment