Ciourte Piaille · @ciourte
89 followers · 567 posts · Server piaille.fr

Quand tu t'es enfermé dehors pendant N minutes en faisant trois fois un mauvais mot de passe sur ton compte utilisateur linux mais que tu arrives à te connecter en root, pour vider les logs de tentatives de connexion ratées :

faillock --user utilisateur --reset

#term_tips #linux #faillock #lockedout

Last updated 2 years ago

Ciourte Piaille · @ciourte
82 followers · 450 posts · Server piaille.fr

I just discovered some / syntax:
${variable:-default_if_empty}
${variable:+default_if_not_empty}
${variable:=value_assigned_if_not_empty}

#bash #zsh #shell #term_tips

Last updated 3 years ago

Ciourte Piaille · @ciourte
54 followers · 219 posts · Server piaille.fr

@climagic Boosted, fav'd and bookmarked, so there is a tiny little chance I can find it again when I need it in the future. 😆

#term_tips #tmux

Last updated 3 years ago

Ciourte Piaille · @ciourte
28 followers · 122 posts · Server piaille.fr

A reminder to myself that the `uniq` command is not only for removing duplicate lines (usually after piping from the `sort` command), but that it can also keep only the duplicated lines (-d option) or the unique lines (-u option), count duplicate lines (-c option), and a few more things.

#term_tips #terminal #unix #linux #uniq

Last updated 3 years ago