Rappel : si vous voulez pouvoir exécuter un script shell ou un programme Python directement sur votre smartphone, ou même faire un rsync via ssh, c'est possible !
Et sans rooter votre téléphone.
Et cela ouvre également plein d'autres possibilités (oui il est possible de faire tourner Gimp directement sur votre smartphone non rooté.)
https://f-droid.org/fr/packages/com.termux/
Par exemple moi j'ai un script Python qui me permet de convertir mes favoris MagicEarth en kml pour les importer dans OrganicMaps.
L'excellent Rclone fonctionne aussi, ce qui permet des synchros depuis/vers différents clouds/webdav/ssh/sftp, et même re-servir sur un LAN un cloud distant (avec la commande "rclone serve" : https://rclone.org/commands/rclone_serve/)
A list of new(ish) command line tools
The Best Linux Blog In the Unixverse sur Twitter :
"Did you know? Man pages on Linux and Unix-like systems such as macOS/*BSD don't have to be dull black and white.
You can get colorful output in the console when using the man command:
export MANPAGER="less -R --use-color -Dd+r -Du+b"
man bash
See https://bash.cyberciti.biz/guide/Man_command#Color_output_in_the_console for info
https://t.co/quDO8EdtNd" / Twitter
Il faut less version 590
Ou avec most:
export MANPAGER='most -s'
man bash
ou bien
man -P most bash
Voir la suite du fil pour utiliser vim, batcat, ...
man -P "sh -c 'col -b | vim -c \"set ft=man nomod nolist\" -'" bash
man -P "sh -c 'col -bx | bat -l man -p'" bashici: https://github.com/ibraheemdev/modern-unix
via https://sebsauvage.net/links/?2ObGig
Une collection d'outils en ligne de commande pour Linux pour remplacer (de manière plus moderne, pratique et élégante) nos antiques commandes cat, ls, diff, du, find, grep, etc.
Parce que je n'arrive pas à me débarrasser des vieilles habitudes :-(
Un résumé des anciennes commandes réseau, et leur traduction en commandes plus actuelles (l'article date tout de même de 2011)
et aussi une liste de commandes réseau, par exemple nslookup -> dig
Troubleshooting faulty network connectivity, part 2: Essential network commands
Rich Enhanced Shell History - Context-based replacement/enhancement for zsh and bash shell history - :warning: Work in progress - curusarn/resh
Avec explications de techniques de parallélisation en shell
The SUDO(Substitute User and Do) command , allows users to delegate privileges resources proceeding activity logging. In other words users can execute command under root ( or other users) using their own passwords instead of root’s one or without password depending upon sudoers setting.
Another great book to read online (or buy it if you like). The Linux Command Line http://linuxcommand.org/tlcl.php
reptyr is a utility for taking an existing running program and attaching it to a new terminal. Started a long-running process over ssh, but have to leave and don't want to interrupt it? Just start a screen, use reptyr to grab it, and then kill the ssh session and head on home.
via https://linuxfr.org/forums/linux-general/posts/reattacher-un-bash
la plus simple: paste -s -d+ infile|bc
plus cool: dc -f infile -e '[+z1<r]srz1<rp'
et pour améliorer ma solution usuelle: (cat infile tr '\n' '+'; echo 0) |bc -l
see also discussion at https://bugzilla.redhat.com/show_bug.cgi?id=1141597
there is a fix and a fix to the fix, two CVE:
CVE-2014-6271 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-6271 https://security-tracker.debian.org/tracker/CVE-2014-6271
CVE-2014-7169 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-7169 https://security-tracker.debian.org/tracker/CVE-2014-7169
Journal linuxfr http://linuxfr.org/users/tankey/journaux/mets-a-jour-ton-bash-maintenant
suivre sur touitteure: https://twitter.com/hashtag/shellshock
(MS) http://www.troyhunt.com/2014/09/everything-you-need-to-know-about.html
scanner http://blog.erratasec.com/2014/09/bash-shellshock-scan-of-internet.html
shellshock pour les nuls http://blog.ippon.fr/2014/09/26/shell-shock-un-obus-dans-les-dents-de-bash/
more bash bugs http://lcamtuf.blogspot.fr/2014/09/bash-bug-apply-unofficial-patch-now.html
Shellshocker - Repository of "Shellshock" Proof of Concept Code - https://github.com/mubix/shellshocker-pocs
X-force http://securityintelligence.com/how-bash-shellshock-bug-couldve-been-avoided-7-years-ago/