blob: 3c7adab13c6b50369b8acccf8bdb63a0410db9ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# For basic OS utilities
* `mktemp`: creates a temporary file in /tmp and returns filename
## `mount`
Set file permissions of mounted drive at mount time:
mount /dev/foo /mnt/bar -o umask=000
## Setting up a swap file
From https://linuxize.com/post/create-a-linux-swap-file/
sudo fallocate -l 1G /swapfile
# or if the above fails:
# sudo dd if=/dev/zero of=/swapfile bs=1024 count=1048576
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
# Add to /etc/fstab
/swapfile swap swap defaults 0 0
# Check with
free -h
|