Archives mensuelles : August 2015
Scinder/réunir un fichier volumineux
Il arrive que le téléchargement d’un gros fichier n’aboutisse pas car le client s’est vu déconnecté du serveur.
La cission et la réunification – ultérieur – de ce fichier peut aider. En effet, si la connection venait à être perdu, seul le re-téléchargement d’un des petit fichier sera nécessaire, et non l’entièrement du fichier original.
Scinder un fichier
Pour scinder un fichier, c’est la commande split
qui est utilisé. Ce, avec l’option --bytes
ou -b
qui permet de déterminer la taille des fichiers scindés.
user@debian~$: split --bytes 50000000 fichier.ext
Cette commande va scinder le fichier fichier.ext en fichier plus petit de 50Mb chacun.
sortie
-rw-r--r-- 1 root root 48M août 24 14:16 xaa -rw-r--r-- 1 root root 48M août 24 14:16 xab -rw-r--r-- 1 root root 48M août 24 14:16 xac -rw-r--r-- 1 root root 48M août 24 14:16 xad -rw-r--r-- 1 root root 48M août 24 14:16 xae -rw-r--r-- 1 root root 48M août 24 14:16 xaf -rw-r--r-- 1 root root 48M août 24 14:16 xag -rw-r--r-- 1 root root 48M août 24 14:16 xah -rw-r--r-- 1 root root 48M août 24 14:16 xai -rw-r--r-- 1 root root 48M août 24 14:16 xaj -rw-r--r-- 1 root root 48M août 24 14:16 xak -rw-r--r-- 1 root root 48M août 24 14:16 xal -rw-r--r-- 1 root root 48M août 24 14:16 xam -rw-r--r-- 1 root root 48M août 24 14:16 xan -rw-r--r-- 1 root root 48M août 24 14:16 xao -rw-r--r-- 1 root root 48M août 24 14:16 xap -rw-r--r-- 1 root root 48M août 24 14:16 xaq -rw-r--r-- 1 root root 48M août 24 14:16 xar -rw-r--r-- 1 root root 48M août 24 14:16 xas -rw-r--r-- 1 root root 48M août 24 14:16 xat -rw-r--r-- 1 root root 48M août 24 14:16 xau -rw-r--r-- 1 root root 48M août 24 14:16 xav -rw-r--r-- 1 root root 48M août 24 14:16 xaw -rw-r--r-- 1 root root 48M août 24 14:16 xax -rw-r--r-- 1 root root 48M août 24 14:16 xay -rw-r--r-- 1 root root 48M août 24 14:16 xaz -rw-r--r-- 1 root root 48M août 24 14:16 xba -rw-r--r-- 1 root root 48M août 24 14:17 xbb -rw-r--r-- 1 root root 48M août 24 14:17 xbc -rw-r--r-- 1 root root 48M août 24 14:17 xbd -rw-r--r-- 1 root root 48M août 24 14:17 xbe -rw-r--r-- 1 root root 48M août 24 14:17 xbf -rw-r--r-- 1 root root 48M août 24 14:17 xbg -rw-r--r-- 1 root root 48M août 24 14:17 xbh -rw-r--r-- 1 root root 48M août 24 14:17 xbi -rw-r--r-- 1 root root 48M août 24 14:17 xbj -rw-r--r-- 1 root root 48M août 24 14:17 xbk -rw-r--r-- 1 root root 48M août 24 14:17 xbl -rw-r--r-- 1 root root 48M août 24 14:17 xbm -rw-r--r-- 1 root root 48M août 24 14:17 xbn -rw-r--r-- 1 root root 48M août 24 14:17 xbo -rw-r--r-- 1 root root 48M août 24 14:17 xbp -rw-r--r-- 1 root root 15M août 24 14:17 xbq
Réunir un fichier
Pour réunir le fichier scindé, c’est la commande cat
avec une redirection de sortie qui est utilisée.
user@debian~$: cat x* > fichier.ext
Ici la sortie de la commande cat
est redirigé vers le fichier fichier.ext. La wildcard « * » sélectionne tous les fichiers commançant par la lettre x.
by Nicolas SHINEY | August 25, 2015 | No Comments | Manipulation de fichier | Tags : copie de fichier décompression de fichier
Ubuntu : installer VLC 2.2
L’une des fonctionnalité notable apportée à VLC 2.2 est la mémorisation de l’emplacement des dernières vidéos ouvertes.
L’installation de VLC 2.2 ne peut pas encore se faire via le gestionnaire de packets, car c’est la version 2.16 qui est installé en lieu et place.
Lire la suite…
by Nicolas SHINEY | August 23, 2015 | No Comments | Bonnes pratiques | Tags : video vlc
Monitoring : Shinken
: applicable sous Debian 7 et Ubuntu 14.04.
Shinken (actuellement un version 2.2) est un outil de supervision. Pour des informations détaillées, je vous invite à consulter le très beau site de Shinken.
Installation de Shinken
Pour commencer, il faut créer l’utilisateur shinken.
root@debian~#: adduser shinken
by Nicolas SHINEY | August 20, 2015 | No Comments | Système