Les alias pour lancer les commandes à rallonge

Certaines commandes sont difficiles à retenir, on peut créér des alias pour les lancer facilement…

Créer un fichier d’alias dans son home

gedit .bash_aliases

y insérer les alias des commandes

alias aptlist='cat /etc/apt/sources.list{,.d/*} 2>/dev/null | grep -v "^#"'
alias erreur='journalctl -p err --no-pager'
alias noyau='apt list --installed | grep linux-image'

Enregistrer le fichier, fermer la session et ouvrir une nouvelle session

Tester

 aptlist
deb https://cdn-aws.deb.debian.org/debian-security/ jessie/updates contrib main non-free
deb https://cdn-aws.deb.debian.org/debian-security/ stretch/updates contrib main non-free
deb https://cdn-aws.deb.debian.org/debian-security/ buster/updates contrib main non-free
deb https://cdn-aws.deb.debian.org/debian/ stretch contrib main non-free
deb https://cdn-aws.deb.debian.org/debian/ buster contrib main non-free
deb https://cdn-aws.deb.debian.org/debian/ buster-updates contrib main non-free
deb https://cdn-aws.deb.debian.org/debian/ buster-proposed-updates contrib main non-free
deb https://cdn-aws.deb.debian.org/debian/ bullseye contrib main non-free
deb https://cdn-aws.deb.debian.org/debian/ sid contrib main non-free
deb [arch=amd64] http://archive.canonical.com/ bionic partner
deb [arch=amd64 trusted=yes] https://dl.google.com/linux/earth/deb/ stable main
deb [arch=amd64] http://repository.spotify.com stable non-free
erreur
-- Logs begin at Sat 2020-01-04 17:32:39 CET, end at Sat 2020-01-04 18:41:07 CET. --
janv. 04 17:32:39 debian kernel: do_IRQ: 1.55 No irq handler for vector
janv. 04 17:32:58 debian kernel: brcmsmac bcma0:1: brcms_ops_bss_info_changed: qos enabled: false (implement)
janv. 04 17:32:58 debian kernel: brcmsmac bcma0:1: brcms_ops_config: change power-save mode: false (implement)
janv. 04 17:32:58 debian kernel: brcmsmac bcma0:1: brcms_ops_bss_info_changed: qos enabled: false (implement)
janv. 04 17:32:58 debian kernel: brcmsmac bcma0:1: brcms_ops_config: change power-save mode: false (implement)
janv. 04 17:33:00 debian kernel: brcmsmac bcma0:1: brcms_ops_bss_info_changed: qos enabled: false (implement)
janv. 04 17:33:00 debian kernel: brcmsmac bcma0:1: brcms_ops_config: change power-save mode: false (implement)
janv. 04 17:33:01 debian kernel: brcmsmac bcma0:1: brcmsmac: brcms_ops_bss_info_changed: associated
janv. 04 17:33:01 debian kernel: brcmsmac bcma0:1: brcms_ops_bss_info_changed: qos enabled: true (implement)
janv. 04 17:33:02 debian kernel: brcmsmac bcma0:1: brcms_ops_bss_info_changed: arp filtering: 1 addresses (implement)
noyau

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

linux-image-4.19.0-6-amd64/stable,proposed-updates,now 4.19.67-2+deb10u2 amd64  [installé]
linux-image-5.4.0-1-amd64/unstable,now 5.4.6-1 amd64  [installé, automatique]
linux-image-amd64/unstable,now 5.4.6-1 amd64  [installé]

Publié le
Classé dans Debian Marqué

Par Bidouille De Bian

Bidouilleur sur Linux Debian 10 (Buster). Débutant dans le blog sur Wordpress.