Comme on limite les inodes, c'est toujours intéressant de savoir les superviser :)
So basically you're looking for which directories have a lot of files? Here's a first stab at it:
find . -type d -print0 | xargs -0 -n1 count_files | sort -n
where "count_files" is a shell script that does (thanks Jonathan)
echo $(ls -a "$1" | wc -l) $1
c'est en prod et c'est cool :) plus j'ai découvert cpan qui est vraiment bien foutu, ça donnerait envie de se mettre à perl tout ça :D
il faut que je me le réinstalle quand même :) il avance bien ce gars !
home | blog | popular | study | writing | projects | about | connect
Collection of Less Commonly Used UNIX Commands
September 11th, 2013 | Linux | System Administration | Technology
[ Check out my latest post on the HP Security Blog: “The Secure Web Series, Part 1: Securing The Password Reset Mechanism” ]
unixcommands
Over at Hacker News there are often threads about less-traveled UNIX commands. One particular comment collected a few of the posts, and I decided to parse all of those threads’ commands, plus my own favorite list of obscure entries, and put them in one place.
Somewhat obscure UNIX commands
column: create columns from text input
tr: translate/substitute/delete input
join: like a database join but for text
comm: file comparison like a db join
paste: put lines in a file next to each other
rs: reshape arrays
jot: generate data
expand: replace spaces and/or tabs
time: track time and resourcing
watch: execute something on a schedule in realtime
xargs: execute something on all inputs
iftop: visually show network traffic
jnettop a more detailed iftop
htop: show system stats more powerfully
xxd: manipulate files in hex
mtr: powerful traceroute replacement
mdfind: osx find replacement that uses spotlight
brew: osx package manager
df: disk free
du: disk usage
iotop: i/o stats
dig: dns queries
host: dns queries
man ascii: lookup your ascii
sshfs: mount a directory through ssh
wget: get w’s
dstat: powerful system statistics
tmux: a better screen
jq: command line JSON parsing
pushd: push your pwd to a stack
popd: pop pwd off your stack
lsof: godlike system information [*]
ncat: nmap-based replacement for nc
fuser: kills locking processes
vim: attack yourself
tac: cat in reverse
slurm: network interface stats
rename: change spaces to underscores in names
bmon: a simple bandwidth monitor
open .: in osx, open finder in the current dir
lsmod: show kernel modules
printf: change the format of output
timeout: execute something and kill it soon after
disown: protect a job from disconnect
fc: edit your last command in your editor and execute it
sudo !!: repeat last command with sudo
tee: send output to stdout as well
pgrep: greps through processes
pkill: kills processes based on search
fmt: text formatter
multitail: see logs in separate views
bc: an interactive calculator language
apropos: info on commands
strace: the uber debug tool
man units: interesting
pstree: shows processes in a…well…tree
pv: a progress bar for piped commands
ddate: wtf
zgrep: grep within compressed files
zless: look at compressed files
nping: nmap-based custom packet creation
readlink: read values of links
iostate: look at your disk i/o
atop: another top
split: break a file into pieces
dd: disk writing
ndiff: show differences in nmap scans
ss: socket statistics (show apps using the Internet)
En bref
Un résumé rapide, pour ceux qui ne veulent pas tout lire:
Le texte de la Commission était assez nul.
Les plus grosses erreurs sont corrigées.
Les propositions de la rapporteuse pour la commission ITRE, saisie du fond du dossier sont manifestement pilotées par les opérateurs télécom, avec une volonté claire (mais pas affichée ou pas assumée) de rendre le texte inutle et donc de ne pas protéger la neutralité du net en europe.
Il faut donc espérer que la commission ITRE se rapproche de l'avis rendu par la commission LIBE, et qui donnait un texte valable. Ou, au strict minimum, que Catherine Trautmann tienne ses positions, qui sont des positions de replis, et ne décide pas de céder sur ce texte-là en échange d'un accord sur un autre texte.
Pour filer un coup de main sur le dossier, ça se passe sur savetheinternet.
j'ai acheté ce bouquin en numérique -> impossible de le dl en epub ! Le PDF est watermarké de partout ... Et on est obligé d'exporter en pdf chapitre par chapitre si l'on veut tout le bouquin en offline ... J'ai exporté tout ça, je vais demander un remboursement, l'accès payant au savoir devrait être proscrit à force :x
un shaarli hosté sur un mutu OVH ... Autant dire que ça PUTAIN DE RAME !!
Ils ont clairement des problèmes avec leurs filers ou la gestion de charge, c'est affreux même pour charger le flux RSS !
First generation wikis are used to collaborate on content. Second generation wikis (a.k.a Application Wikis) can be used to create collaborative web applications. XWiki can be used either as a first generation wiki or a second generation one.
https://github.com/dropio
j'ai mis lutim en prod au boulot et personnellement : c'est pas mal aussi
Je suis pas prêt psychologiquement à quitter gnome shell pour ça même si c'est le fonctionnement des 1337 :d
require "imap4flags";
require "regex";
if anyof (exists "X-Cron-Env",
header :regex ["subject"] [". security run output",
". monthly run output",
". daily run output",
". weekly run output"]) {
addflag "$label1"; # ie 'Important'/red label within Thunderbird
#
}
<3