implements 'whereami' and 'clear' command.