Aargh please remove the wildcard: for tty in /dev/tty[1-9]; do setleds -D +num < $tty done I suppose one could write a systemd unit to do the same job.