Customization > Desktop Customization
Alias your Specter Meltdown Checker
bfb:
I get
$ smck
bash: cd: spectre-meltdown-checker/: No such file or directory
chmod: cannot access 'spectre-meltdown-checker.sh': No such file or directory
this is my bash
enable bash completion in interactive shells
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
alias usage='du -sk * | sort -n | perl -ne '\''($s,$f)=split(m{\t});for (qw(K M G)) {if($s<1024) {printf("%.1f",$s);print "$_\t$f"; last};$s=$s/1024}'\'
alias ls="ls --color"
alias smck='cd spectre-meltdown-checker/;chmod +x spectre-meltdown-checker.sh;sudo ./spectre-meltdown-checker.sh'
trinidad:
Since kernel changes, mitigations, and so forth are probably going to be nagging at us for quite a while a simple functional shortcut to the spectre-meltdown-checker in nice to have. Aliasing the commnd and saving to .bashrc is probably the most efficient way to make the application more convenient.
Open a terminal and enter: sudo nano ~/.bashrc
Scroll down to where you see alias listed.
Below the last alias line listed add the following:
alias smck='cd spectre-meltdown-checker/;chmod +x spectre-meltdown-checker.sh;sudo ./spectre-meltdown-checker.sh'
Hit Control X, then Y, then Enter to save.
Exit the terminal.
Re-open the terminal and at the prompt type: smck
Enter your sudo password and spectre-meltdown-checker will run.
Since the alias is added to .bashrc the command smck (for which I found no other unique instances in bash) will run the spectre-meltdown-checker for you.
Simple and clean and sensible since it is a terminal app to begin with.
TC
You may also alias the Ubuntu commands and Rok's memory leak checker in the same way.
i use alias ubusmck and roksmck.
Navigation
[0] Message Index
[*] Previous page
Go to full version