User Tools

Site Tools


aliases

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
aliases [2019-10-11 12:42:31]
mi
aliases [2024-06-05 23:26:01] (current)
mi
Line 3: Line 3:
 <file bash bash.morestuff>​ <file bash bash.morestuff>​
 alias disklist='​lsblk -o NAME,​HCTL,​TYPE,​SIZE,​FSTYPE,​LABEL,​MOUNTPOINT,​TRAN,​VENDOR,​PARTLABEL,​RO'​ alias disklist='​lsblk -o NAME,​HCTL,​TYPE,​SIZE,​FSTYPE,​LABEL,​MOUNTPOINT,​TRAN,​VENDOR,​PARTLABEL,​RO'​
 +
 +alias ipa='​ip -brief addr'
 +alias ipac='​ip -brief -color addr'
 +
 alias dns-reload='​named-checkconf -z && rndc reload; sleep 2; grep named /​var/​log/​daemon.log'​ alias dns-reload='​named-checkconf -z && rndc reload; sleep 2; grep named /​var/​log/​daemon.log'​
 +
 alias epoch2date='​perl -e '​\''​$t=shift;​ printf "%10s :%26s\n%10s :%26s\n%10s :​%26s\n",​ "​epoch",​ $t, "​localtime",​ scalar(localtime $t), "​gmtime",​ scalar(gmtime $t);'​\'''​ alias epoch2date='​perl -e '​\''​$t=shift;​ printf "%10s :%26s\n%10s :%26s\n%10s :​%26s\n",​ "​epoch",​ $t, "​localtime",​ scalar(localtime $t), "​gmtime",​ scalar(gmtime $t);'​\'''​
  
Line 16: Line 21:
  
 alias uri2txt='​xclip -o -selection clipboard | perl -MURI::​Escape -ne "print uri_unescape(\$_),​ qq(\n);"'​ alias uri2txt='​xclip -o -selection clipboard | perl -MURI::​Escape -ne "print uri_unescape(\$_),​ qq(\n);"'​
 +
 +alias dos2unix='​perl -i -pe "​s/​\R/​\n/​g"'​
 +alias unix2dos='​perl -i -pe "​s/​\R/​\r\n/​g"'​
 +
  
 alias mc='​PROMPT_COMMAND="​history -a; history -r" mc; history -r' alias mc='​PROMPT_COMMAND="​history -a; history -r" mc; history -r'
/docs/dokuwiki/data/pages/aliases.txt ยท Last modified: 2024-06-05 23:26:01 by mi