Skip to main contentNedix.io

Linux

Commands

Find largest directories

du -a | sort -nr | head -n 5

Run previous command with sudo

sudo !!

Exit session but leave process running

disown -a && exit

Troubleshooting

Fix access to /dev/dma_heap denied

sudo setenforce 0
sudo chcon system_u:object_r:device_t:s0 /dev/dma_heap/
sudo setenforce 1

Fix cgroup mount destination: unknown

sudo mkdir /sys/fs/cgroup/systemd
sudo mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd

Set SELinux to permissive mode

Permanent

/etc/selinux/config
SELINUX=permissive
reboot

Until reboot

sudo setenforce 0