(https://selfhosters.net/commands/) (..) (../tips/discord_notifications/discord_notifications/) (../assets/images/favicon.ico) Nice-to-know Unraid commands - Selfhosters.net (../assets/stylesheets/main.bcfcd587.min.css) (../assets/stylesheets/palette.06af60db.min.css) (https://fonts.gstatic.com) (https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i%7CFira+Code:400,400i,700,700i&display=fallback) (../assets/stylesheets/glightbox.min.css) Skip to content (..) (Selfhosters.net) (logo) Selfhosters.net Nice-to-know Unraid commands (Search) (Clear) Initializing search (https://github.com/selfhosters/selfhosters.net) (Go to repository) selfhosters/selfhosters.net (..) (Selfhosters.net) (logo) Selfhosters.net (https://github.com/selfhosters/selfhosters.net) (Go to repository) selfhosters/selfhosters.net (..) Home Nice-to-know Unraid commands (./) Nice-to-know Unraid commands Table of contents Docker service Docker containers Nginx PHP VM Service Domains Samba Unraid Shutdown/Reboot Run diagnostics Tail the syslog Look at the parameters in the config file Create a backup image of your usb and store it on disk1 Copy files using midnight commander Check power on hours for all drives Unraid Tips Unraid Tips (../tips/discord_notifications/discord_notifications/) Adding Discord Notifications Docker Docker Telegraf Telegraf (../docker/telegraf/ipmi/) Adding IPMI stats to the Telegraf container Plex Plex (../docker/plex/cloudflare/) Routing Plex through Cloudflare VPN VPN (../docker/pfsense_vlan_vpn/pfsense_vlan_vpn/) Route a container trough a VPN with PfSense (../docker/templating/templating/) Writing a template compatible for Unraid Table of contents Docker service Docker containers Nginx PHP VM Service Domains Samba Unraid Shutdown/Reboot Run diagnostics Tail the syslog Look at the parameters in the config file Create a backup image of your usb and store it on disk1 Copy files using midnight commander Check power on hours for all drives Nice-to-know Unraid commands(Permanent link) ¶ Docker service(Permanent link) ¶ /etc/rc.d/rc.docker Available commands: start stop restart status Docker containers(Permanent link) ¶ docker Available commands: start stop restart pause logs Print all container names: docker ps --format ‘{{ .Names}} ’ Print all container images: docker ps --format ‘{{ .Image}} ’ Nginx(Permanent link) ¶ /etc/rc.d/rc.nginx Available commands: start stop restart status PHP(Permanent link) ¶ /etc/rc.d/rc.php-fpm Available commands: start stop restart status VM Service(Permanent link) ¶ /etc/rc.d/rc.libvirt Available commands: start stop List all domains: virsh list --all Domains(Permanent link) ¶ virsh Available commands: start shutdown reboot suspend Samba(Permanent link) ¶ /etc/rc.d/rc.samba Available commands: start stop Unraid(Permanent link) ¶ Shutdown/Reboot(Permanent link) ¶ /sbin/ Available commands: reboot poweroff shutdown Note poweroff If you get an unclean shutdown when issuing this command you need to adjust your timeout settings, see (https://forums.unraid.net/topic/69868-dealing-with-unclean-shutdowns) https://forums.unraid.net/topic/69868-dealing-with-unclean-shutdowns Run diagnostics(Permanent link) ¶ diagnostics Tail the syslog(Permanent link) ¶ tail -f /var/log/syslog Look at the parameters in the config file(Permanent link) ¶ nano /boot/syslinux.cfg- Create a backup image of your usb and store it on disk1(Permanent link) ¶ dd if = /dev/sda of = /mnt/disk1/unraid.img Copy files using midnight commander(Permanent link) ¶ mc Check power on hours for all drives(Permanent link) ¶ for drive in $( ls -la /dev | grep -Ev 'sda|sd[a-z][0-9]' | grep sd[ a-z] | awk '{print $10}' ) ; do hours = $( smartctl --all /dev/${ drive } | grep Power_On_Hours | awk '{print $10}' ) ; echo "Power on Hours for ${ drive } : ${ hours } " ; echo '' ; done (Last update) April 1, 2024 Made with (https://squidfunk.github.io/mkdocs-material/) Material for MkDocs (https://github.com/selfhosters) (github.com) (https://discord.gg/qWPbc8R) (discord.gg)