Daily Shaarli

All links of one day in a single page.

February 13, 2018

Note: Commande Bash

Liste la taille des dossiers
du -sh *

Rechercher un fichier qui ne contient pas:
find . -not -name ".exe" -not -name ".dll"

Rechercher les fichiers modifiés depuis XX minutes:
find . -mmin -XX

1 jour -> 1440
2 jours -> 2880
1 semaine -> 10080

Rechercher dans du texte dans un ensemble de fichier:
grep -nir "texte" *

Dernières lignes d'un retour:
tail -nx

Ports ouverts sur le serveur:
netstat -lnp

Compter le nombre de lignes en retour:
cat access_log | grep notify | wc -l

The only way to cut vim from mouse awareness seems to be commenting out the configuration about the mouse.

In /usr/share/vim/vim80/defaults.vim I commented out the mouse specific detection as in:

" In many terminal emulators the mouse works just fine. By enabling it you
" can position the cursor, Visually select and scroll with the mouse.
"if has('mouse')
" set mouse=r
"endif

Sous Vi:
Pour utiliser les fleches :set nocompatible