Archives mensuelles : mars 2020

Cygwin tricks

* Remove the .exe extension when autocomplete for cygwin commands (to add in .bashrc): shopt -s completion_strip_exe * By default grep doesn’t use color to emphase matching We could enable that by adding an alias in ~/.bashrc such as : … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Write Bash Scripts

Two ways of using scripts : 1) sh 2 bash 1) sh is available in any linux distrib. That implements the POSIX standard. Advantage : strong compatibility Drawback: cumbercome syntax (ex: compared elements has to be inside double quotes) and … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Linux General Commands

Name Service Switch libraries COMMANDS Survival kit :) apt install -y less procps vim net-tools wget Timezone configuration The /etc/localtime file configures the system-wide timezone of the local system that is used by applications for presentation to the user. That … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Cygwin my packages

My package list Export package list : cygcheck -cd | tail -n+3 | cut -d’ ‘ -f1 > package-list.txt

Publié dans Non classé | Laisser un commentaire