Resizing temporary on ArchLinux

Today I’ll discribe about expand tmp area on ArchLinux.
First one, please check your tmp area volume. To check temporary area use df command.

$ df -h

I guess you can get like bellow information.

Filesystem      Size  Used Avail Use% Mounted on
dev             3.9G     0  3.9G   0% /dev
run             3.9G  832K  3.9G   1% /run
/dev/nvme0n1p3  233G   49G  173G  22% /
tmpfs           3.9G   80M  3.8G   3% /dev/shm
tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup
tmpfs           3.9G   20K  3.9G   1% /tmp
/dev/nvme0n1p1  511M   48M  464M  10% /boot
tmpfs           788M  4.0K  788M   1% /run/user/1000

Unless otherwise specified, the capacity of tmp is half of the installed RAM.
So if you have 8G of RAM, tmpfs is around 4G.

It is possible to change the capacity of tmp by writing size = xxx in /etc/fstab

$ sudo nano /etc/fstab

For example, if you wanna use 5G.

tmpfs /tmp  tmpfs nodev,nosuid,size=5G  0 0