Tag: cli
-
Here’s an excerpt from my ‘ .functions.sh ’ file — a file that gets read (and executed) every time I start up a new terminal-session. llength=”80″ printf -v line ‘%*s’ “$llength” line=”${line// /-}” Uptime=”$(w|head -n 1|awk -F’ ‘ ‘{print $3 ” ” $4}’)” printf ‘%bn’ “$line” printf ‘%bn’ “tWelcome to:nt$(uname -n)n” printf ‘%bn’ “tUp and running $(uname -o), on…
-
me=”$(whoami)” make “$me” –bacon –cheese –eggs a-sandwhich me=”$(whoami)” sudo make “$me” –bacon –cheese –eggs a-sandwhich ↑ Or … Why you should always use sudo — (or gksudo for graphical applications) — instead of “ logging in as root (not recommended). ”