How to check if your home folder and swap partition are encrypted using terminal? [duplicate]

Open terminal and type ls -A /home. There should be a .ecryptfs folder, if you have encryption of your home folder.


This is how to check if swap partition is encrypted:

sudo blkid | grep swap

and should check for an output similar to

/dev/mapper/cryptswap1: UUID="95f3d64d-6c46-411f-92f7-867e92991fd0" TYPE="swap"

If instead of cryptswap1 there is something like a usual drive (e.g. /dev/sda4) then swap area is not encrypted.