Meterpreter session was created, framework latest. Victim machine: Ubuntu
Screenshot of session:
I am pretty sure the commands used to work before on the same machine. Shell commands are not working after giving shell in meterpreter. All meterpreter command works fine though.
Uploaded payload manually, same issue.
Reseted the victim machine, also did msfupdate.