Faced a problem using my MacBook Air 13 2017. I ran out of space (500mb free now). I tried to empty the trash bin, but it says that is not possible because there is no memory O_o. Having heard that it can be done through terminal. I open the terminal and have a white window saying "last login fri feb 11 18:22:42 on console [process finished]". When I start a new window it tells the same. When I make a new command, whatever I type it tells the same. Seen here a solution with '\bin\bash -x -it still tells the same.
About half a year ago I had a problem also linked with no free memory, my mac refused working and a solution for this problem was using the terminal. But I couldn't use it because there was a similar problem with the terminal. I don't remember the details and how I solved this problem, but it was almost a miracle. After that I haven't used the terminal and now it behaves like that.
What can I do in such situation?