AliasAdventskalender
Ausgehend von https://debianforum.de/forum/viewtopic.php?f=15&t=179252 entstanden bisher folgende Beiträge
A
alias a=alias
alias au='apt update'
alias afu='apt full-upgrade'
alias au="apt update'
alias a="apt update"
alias a='a=(. {a..z});echo ${a[$(date +%e)]}'
alias A="curl --silent \"https://debianforum.de/forum/viewtopic.php?f=15&t=179454\" | tr \"\n\" \" \" | sed \"s_>_>\n_g\" | awk 'BEGIN{P=0} /<code\>/{ P=1} P==1{print \$0} /<.code/{P=0}' "
alias a='* 4 1 && 1 4 *'
alias a='printf "\a"'
alias a='mpv "https://mcdn.daserste.de/daserste/de/master.m3u8"'
Thread: https://debianforum.de/forum/viewtopic.php?t=179454
B
alias af='apt full-upgrade'
alias b='apt full-upgrade'
alias b=batch
alias b='echo bitte'
alias b=BLOCKSIZE=1
alias b='i=0; j=1; k=1; while test ${i} -lt 100 ; do i=$((i + 1)); output=""; if test ${j} -eq 3 ; then output="${output}Fizz"; j=1; else j=$((j + 1)); fi; if test ${k} -eq 5 ; then output="${output}Buzz"; k=1; else k=$((k + 1)); fi; if test -z ${output} ; then echo -n "${i} "; else echo -n "${output} "; fi; done'
alias b=banner
Thread: https://debianforum.de/forum/viewtopic.php?t=179463
C
alias C=clear
alias c=calendar
alias c='shuf -en' # Choose
alias C="cal -3"
alias c='output="$(pwd)"; echo "${output} > /$(echo ${output} | sed "s/\/[^\/]*$//;s/^.//")" ; cd ..'
alias c='echo -e '\AUTHENTICATE "a"\nsignal NEWNYM\nQUIT'\ | nc 127.0.0.1 9050'
alias c="bc"
alias c='date +%H:%M | figlet -ck'
Thread: https://debianforum.de/forum/viewtopic.php?t=179475
D
alias D="diff --side-by-side" alias d="du -ks \$(ls -d */) | sort -nr | cut -f2 | xargs -d \"\n\" du -sh 2> /dev/null" alias d=dd alias df='df -x devtmpfs -x tmpfs -m' alias d='ls -d */' alias d='ls|grep ^d' alias e=ed alias d="clear" alias d='sensible-browser "http://debianforum.de"'
Thread: https://debianforum.de/forum/viewtopic.php?t=179483
E
alias E='eject --traytoggle'
alias e='test ${?} -ne 0 && echo "Alarmstufe Rot"'
alias e=ed
alias e=eggy
alias e="echo e"
alias e='printf "e%s\n"'
alias f="www-browser https://debianforum.de/"
alias f="find -user eggy"
alias f="find . -name"
Thread: https://debianforum.de/forum/viewtopic.php?t=179498
F
alias f="find -user eggy"
alias f='fmt -w 72'
alias f='feh --scale-down -g 400x300 -d '
alias f='DTTEMP="$(mktemp -d)" ; for i in cache config ; do mkdir "${DTTEMP}/${i}" ; done ; darktable --cachedir "${DTTEMP}/cache" --configdir "${DTTEMP}/config" --library ":memory:"'
Thread: https://debianforum.de/forum/viewtopic.php?t=179513
G
alias g='git commit -a -m "`date`"'
alias g='[ $(sudo arp-scan -x --localnet 2>/dev/null | cut -f 1 | sort -u | wc -l) -gt 9 ] && echo You have guests\!'
alias grep='grep --color=auto'
alias g='g(){ eval `printf g%s "$1"`;};g'
alias g='g(){ eval $(echo "man git-${1} || man git");};g'
alias g='git help'
Thread: https://debianforum.de/forum/viewtopic.php?t=179523
H
alias h='env alias h="head -1" alias h='sed 10q' alias h='head -n' alias h=man
Thread: https://debianforum.de/forum/viewtopic.php?t=179532
I
alias I='bashtop'
alias i="info"
alias i=igawk
alias i='i(){ eval $(echo "yelp info:${1} &> /dev/null &");};i'
alias i=import
alias i="iwatch -e all_events ."
Thread: https://debianforum.de/forum/viewtopic.php?t=179560
J
alias j=join alias j=jobs alias j='journalctl -p7 -u '
Thread: https://debianforum.de/forum/viewtopic.php?t=179576
K
alias k='khal' alias k=killall alias k='for i in `seq 8949`; do wget -q "http://www.rfc-editor.org/rfc/rfc$i.txt"; done; egrep rfc*.txt -ie'
Thread: https://debianforum.de/forum/viewtopic.php?t=179593
L
alias l='zufall=$(( RANDOM % 800)) alias l='l -CF' alias l='ls -larth' alias l='ls -aCF' alias la='ls -la' alias ll='ls -oga' alias ls='ls --color=auto' alias l='ls -CF' alias la='ls -A' alias ll='ls -alF' alias lsd='ls -l |grep ^d' alias lsr='ls -lSr' alias lst='ls -R | grep ":$" | sed -e '\s/:$//'\ -e '\s/[^-][^\/]*\//--/g'\ -e '\s/^/ /'\ -e '\s/-/|/'\' alias ltr='ls -ltr' alias l='for i in `echo $PATH|tr : " "`;do \ls -d1 $i/l?;done 2>/dev/null;alias|sed -n "s/^\(l.\)=.*/\1/p"' alias l='`yes ls|sed "1s,.*,sl,;10q"|sort -R|sed q` -`man ls|col -b|sed -n "s/^ *-\([A-Za-z0-9]\).*/\1/p"|sort -R|sed \`expr $RANDOM % 4 + 1\`q|tr -d "\n"`'
Thread: https://debianforum.de/forum/viewtopic.php?t=179609
M
alias M='mutt -F ~/.mutt/hydras_mailaccount_nr'
alias m='m(){ mkdir "$1"&&cd "$1";};m'
alias m='mpc -h orpheus.pan current -f "%name%: %title%"'
Thread: https://debianforum.de/forum/viewtopic.php?t=179624
N
alias n=next
alias N="nc -lp 5000"
alias n='MPD_HOST=orpheus.pan ncmpcpp'
alias n='n() { i=${1:-.}; f="$(sed "$(($(find "$i" -type f | sort | nl -n ln | (if [ -f "$i"/.last ]; then grep "$(cat "$i"/.last)"; else echo 0; fi) | cut -f1) + 1))q;d" <(find "$i" -type f | sort))"; vlc --quiet --play-and-exit "$f"; basename "$f" >"$i"/.last; }; n'
alias n='n(){ f="$(sed "$(( $(find "$1" -type f | sort | nl -n ln | grep "$(cat "$1"/.last)" | cut -f1) + 1 ))q;d" <(find "$1" -type f | sort))"; vlc --play-and-exit "$f"; basename "$f" > "$1"/.last; };n'
Thread: https://debianforum.de/forum/viewtopic.php?t=179639
O
alias O="cd $OLDPWD" alias O="cd $OLDPW" alias o='xdg-open' alias o="nvlc $HOME/x_radio.xspf" alias o='awk NR%2'
Thread: https://debianforum.de/forum/viewtopic.php?t=179649
P
alias P='pwgen -s 25 -y'
alias p='pstree -ap'
alias P='cancel -a' # Druckaufträge abbrechen
alias p='lp'
alias p='df=pydf; type ${df} &>/dev/null || df=df; eval ${df}'
Thread: https://debianforum.de/forum/viewtopic.php?t=179658
Q
alias q='command -v q'
alias Q='quiz function ed-command'
alias qr='qrencode'
alias q='d=$(date +%e);i=0;for c in {a..z};do i=$((i+1));if [ "$i" -eq "$d" ];then s=$(ls --color=never /usr/bin/${c}* 2>/dev/null|wc -l);r=$(($RANDOM %${s}+1));printf "alias ${c}=\"$(ls --color=never /usr/bin/${c}* 2>/dev/null|sed -n "${r}p")\"\n";break;fi;done'
alias q="/usr/bin/quodlibet"
alias q='c="$(printf "\x$(echo "obase=16;$(date +%e)+96"|bc -ql)")";echo "alias $c=\"$(ls /usr/bin/$c* 2>/dev/null|sort -R|sed q)\""'
alias q='c="$(printf "\x$(echo "obase=16;$(date +%e)+96"|bc -ql)")";printf "alias %s=\"%s\"\n" "$c" "$(ls $(echo $PATH:|sed "s,:,/$c* ,g") 2>/dev/null|sort -R|sed q)"'
alias q='c=$(printf "\x$(printf %x $(($(printf %d \"a)+$(date +%e)-1)))");printf "alias %s=\"%s\"\n" $c "$(find $(echo $PATH:|sed "s/:/ /g") -name "${c}*"|sort -R|sed q)"'
Thread: https://debianforum.de/forum/viewtopic.php?t=179679
R
alias r='awk "BEGIN{while(++i<9){a=a\" \"i;b=b\"1234567890\"}print a\"\\n\"b}"'
alias r='yes 1234567890|awk "{printf \"%10d\",NR;b=b\$0}NR==8{print \"\\n\"b;exit}"'
alias r='yes 1234567890|sed "1s/90//;1s/./ &/g;2s/.*/&&&&&&&&/;2q"'
alias md='mkdir -p'
alias rd='rmdir'
alias r='awk "BEGIN{srand()}{j=int(rand()*NR+1);if(j==1){r=\$0}}END{print r}"'
alias r='rsync -av --delete'
alias r='egrep -rI --color --exclude-dir=.svn --exclude-dir=.git'
alias r='echo alias'
Thread: https://debianforum.de/forum/viewtopic.php?t=179689
S
alias s=spruch alias s="sed '\sggssggssgg'" alias s=sed\ \\s\\ssss\\\\s'\' alias s="sed --posix"\ "'"'/\s/s\/s\s/\'"'" alias s=sed\ \\s\\ssss\\\\s'\' → alias s='sed '\\s\\ssss\\\\s'\' alias s="sed '\\s\\\\ssss\\\\\\\\s'" alias s=sed\ \\\\\\\&\\\\\\\&\\\\\\\&\\\&s\\\&\\\\\\\&\\\&\\\\\\\&\\\\\\\&\\\&
Thread: https://debianforum.de/forum/viewtopic.php?t=179704
T
alias t='tmux a || tmux' alias td='cd "$(mktemp -d)"' alias t='telnet' alias t='watch -n 2 sensors' alias t=talk; t krt
Thread: https://debianforum.de/forum/viewtopic.php?t=179713
U
alias u="sync && umount /mnt/sdcard" alias u='units' alias u='while !'
Thread: https://debianforum.de/forum/viewtopic.php?t=179723
V
alias v='hrir="${HOME}/pulse/hrir/hrirs/hrir-1050.wav";
alias V='vd --csv-delimiter=";"'
alias v='grep -v'
Thread: https://debianforum.de/forum/viewtopic.php?t=179741
W
alias w='wc -w' alias w='w3m debianforum.de' alias wc='/usr/bin/wc'
Thread: https://debianforum.de/forum/viewtopic.php?t=179752
X
alias x=startx alias x=xsnow alias x='ls | xargs' alias x='parallel -- "xsnow -defaults -nomenu -nomenu -nosanta -norudolph -nbirds 0 -stars 0 -nometeorites -trees 1 " xpenguins' alias x='parallel -- "xsnow -defaults -nomenu -nomenu -nosanta -norudolph -nbirds 0 -stars 0 -nometeorites -trees 1 " xpenguins'
Thread: https://debianforum.de/forum/viewtopic.php?t=179765
Y
alias y='for paket in $(apt-mark showauto); do if [ "$(apt-cache --installed --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances rdepends ${paket} | wc -l)" -eq "2" ]; then if [ "$(apt-cache --installed --no-depends --no-conflicts --no-breaks --no-replaces --no-enhances rdepends ${paket} | wc -l)" -eq "2" ]; then echo "${paket} wird vermutlich wegen indirekter Abhängigkeiten (provides) benötigt"; else paketliste+=("${paket}"); fi; fi; done ; echo "" ; echo "folgende Pakete könnten vielleicht deinstalliert werden:" ; echo -n "${paketliste[@]}" ; echo ""'
alias y='yes no'
Thread: https://debianforum.de/forum/viewtopic.php?t=179770
Z
alias z='zless' alias z='egrep -xi "$(ls /usr/bin|tr -cd a-z|sed "s/./&\\n/g"|sort -u|tr \\n \?)" /usr/share/dict/ngerman|sort|grep ...|xargs'