Thread: alias to run at boot?
i wondering if there way run alias @ bootup on admin account. if run @ boot guest account @ public library guest account doesn't have sudo privileges. here alias run daily
code:alias ud='sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt-get clean -y'
place command:in /etc/rc.local file abovecode:/usr/bin/apt-get update && /usr/bin/apt-get upgrade -y && /usr/bin/apt-get dist-upgrade -y && /usr/bin/apt-get clean -yline, reads:exit 0code:#!/bin/sh -e # # rc.local # # script executed @ end of each multiuser runlevel. # make sure script "exit 0" on success or other # value on error. # # in order enable or disable script change execution # bits. # # default script nothing. /usr/bin/apt-get update && /usr/bin/apt-get upgrade -y && /usr/bin/apt-get dist-upgrade -y && /usr/bin/apt-get clean -y exit 0
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [SOLVED] alias to run at boot?
Ubuntu
Comments
Post a Comment