How to use litecoin testnet on fully synced litecoin core on amazon ec2 instance I run a synced litecoind on amazon ec2 linux instance.  

[ec2-user@ip-xxx-xx-xx-xxx ~]$ litecoind -version
Litecoin Core Daemon version v0.13.2.1  

[ec2-user@ip-xxx-xx-xx-xxx ~]$ litecoin-cli getblockcount
1411130


I tried starting daemon with below commands


litecoind -testnet -daemon
litecoind  -daemon , then litecoind -testnet


I want to get litecoin testnet address to test sending LTCT. But when I generate address i get litecoin address. How can I use this core to switch between main net and testnet ? 

UPDATE

[ec2-user@ip-xxx-xx-xx-xxx ~]$ litecoind --testnet --daemon
Litecoin server starting
[ec2-user@ip-xxx-xx-xx-xxx ~]$ litecoin-cli getnewaddress
error: couldn't connect to server



  top command shows litecoind running.
   5787 ec2-user  20   0  786m  26m  288 S  1.0  2.6   0:00.63 litecoind                                                                                  


Is it okay if i kill the daemon ??

Please Help!
litecoind --testnet --daemon


Should be all you need to start in testnet and run as a daemon