I have create a swap space by executing following commands:
sudo fallocate -l 8G /swapfile sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon
I no longer need it so I removed it by doing:
sudo swapoff /swapfile sudo rm -f /swapfile
Now when I run the command: free -h
it shows me:
total used free shared buff/cache available Mem: 7.7G 301M 7.1G 720K 285M 7.2G Swap: 0B 0B 0B
I just want to confirm, if the swap space have been removed? since it still shows in the output.