Linux add swap space oneliner

size="8G" && file_swap=/swapfile_$size.img && \
touch $file_swap && fallocate -l $size /$file_swap && \
mkswap /$file_swap && swapon -p 20 /$file_swap