Command line tips and tricks

NORD

Well-Known Member
Joined
Jan 4, 2019
Messages
443
Reaction score
327
Credits
2,386
I only know of one and it was by I wonder if...
so I saw this command that caught my attention and I was like hmm...
I wonder if I typed the same command but with my online signature name. And yes it worked . just a little fun for you guys .

figlet -c and your text

sorry my photo sux for phones.
 

Attachments

  • 20210825_192851.jpg
    20210825_192851.jpg
    5.2 MB · Views: 275
Last edited:


It looks like you're using Mint. Try 'aptitude moo' in the terminal.
 

Attachments

  • 20210824_215016.jpg
    20210824_215016.jpg
    6 MB · Views: 304
  • received_192845919443165.jpeg
    received_192845919443165.jpeg
    59.2 KB · Views: 236
It looks like you're using Mint. Try 'aptitude moo' in the terminal.
nord@nord-K53E:~$ aptitude moo
There are no Easter Eggs in this program.
nord@nord-K53E:~$
 
its apt moo
Code:
apt moo
                 (__) 
                 (oo) 
           /------\/ 
          / |    ||   
         *  /\---/\ 
            ~~   ~~   
..."Have you mooed today?"...
 
doesn't seem to work with mint... or maybe I just don't understand how to use git hub...
down load the .deb
Install it
then edit
/usr/bin/simple-motd

This is what mine looks like:
Code:
#!/bin/sh

BANNER=$(hostname)

[ -r /etc/lsb-release ] && . /etc/lsb-release

if [ -z "$DISTRIB_DESCRIPTION" ] && [ -x /usr/bin/lsb_release ];
then
  # Fall back to using the very slow lsb_release utility
  DISTRIB_DESCRIPTION=$(lsb_release -s -d)
fi


figlet "Debian Sid" -c | lolcat -f
printf "\n"

printf "\t%s \t\t\e[1mKernel\e[0m %s\n" "$DISTRIB_DESCRIPTION" "$(uname -r)"
printf "\n"

DATE=$(date)
LOAD=$(cat < /proc/loadavg | awk '{print $1}')
ROOT_USAGE=$(df -h / | awk '/\// {print $(NF-1)}')
MEMORY_USAGE=$(free -t -g | grep "Total" | awk '{print $3;}')
TOTAL_MEMORY=$(free -h -g | grep "Mem" | awk '{print int($2+0.5)" GB";}')
SWAP=$(free -m | awk '/Swap/ { printf("%3.1f%%", "exit !$2;$3/$2*100") }')
TIME=$(uptime | grep -ohe 'up .*' | sed 's/,/\ hours/g' | awk '{ printf $2" "$3 }')
PROCESSES=$(ps aux | wc -l)
IP=$(hostname -I)
HEAVY_MEM=$(ps -eo cmd,%mem,%cpu --sort=-%mem | head -n 4 | lolcat -f --spread=2)

printf "\t\t\e[1mAs of:\e[0m %s\n\n" "$DATE"
printf "\t\e[1mSystem Load:\e[0m\t%s\t\t\e[1mProcesses:\e[0m\t%s\n" "$LOAD" "$PROCESSES"
printf "\t\e[1mMemory Usage:\e[0m\t%s/%s\t\t\e[1mUptime:\e[0m\t\t%s\n" "$MEMORY_USAGE" "$TOTAL_MEMORY" "$TIME"
printf "\t\e[1mDisk Usage:\e[0m\t%s\t\t\e[1mSwap:\e[0m\t\t%s\n\n" "$ROOT_USAGE" "$SWAP"
printf "\t\t\t\e[1mIP:\e[0m %s\n\n" "$IP"
printf "\e[1mHeaviest Memory Usage:\e[0m\n%s\n\n" "$HEAVY_MEM"

Edit the line that starts with figlet, where I have Debian Sid, put your distro or whatever you want to show.
 
There are no Easter Eggs in this program.

Yup. It's just something some coder added, likely because you can do apt moo. You can also do cowsay and fortune, as mentioned in a recent article.
 
neofetch | lolcat

2021-08-26_16-36.png
 
Oh, there's also 'aptitude -v moo'. I meant to add that earlier, but I forgot.
 

Members online


Latest posts

Top