metasploit – Shell from meterpreter not responding to commands

Meterpreter session was created, framework latest. Victim machine: Ubuntu

Screenshot of session:

enter image description here

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.