made the path_to_ls function common
login support and basic commands for telnet