bash

Vendredi, den 17. février 2012

HowTo : install the mail command under Debian Nov19 2008 Leave a Comment Written by gkoo The mail command under Debian distros is a part of the mailutils package. Simply use : apt-get install mailutils and you’re done ! viaHowTo : install the mail command under Debian | ItHowTo.ro.

Tags: , , , ,

Category: bash, Debian | 0 Comments »
Mardi, den 7. février 2012

dd bs=1M count=2048 if=/dev/zero of=test conv=fdatasync

Tags: , ,

Category: bash, Debian | Commentaires fermés
Mercredi, den 11. janvier 2012

Build cross-compiled kernel debian package Par Jérôme Pouiller le vendredi, octobre 29 2010, 09:37 – Lien permanent As you may know, you have juste to add options ARCH and if necessary CROSS_COMPILE to command line: make ARCH=powerpc CROSS_COMPILE=ppc-linux-gnu- XXX_defconfig make ARCH=powerpc CROSS_COMPILE=ppc-linux-gnu- XImage My primary concern is to compile an x86 32bits kernel in 64bits [...]

Tags: , ,

Category: bash, Debian | Commentaires fermés
Vendredi, den 30. décembre 2011

A – search for rootkits B – more detailed investigation C – more trails D – remove it! E – refresh system F – Todo G – Infos Start with these tools: chkrootkit rkhunter A – search for rootkits chkrootkit: Checking `ifconfig’… INFECTED Checking `pstree’… INFECTED Searching for t0rn’s v8 defaults… Possible t0rn v8 \(or [...]

Tags: ,

Category: bash, Debian | Commentaires fermés
Mercredi, den 28. décembre 2011

Variables en shell Bash Manipulation de variables simples var=val ou var= »a b » affectation de la variable « var » $var ou ${var} contenu de la variable « var » ${#var} longueur de la variable « var » export var ou declare -x var exportation de la variable « var » vers les shells fils set affichage de l’ensemble des variables définies dans le [...]

Category: bash, Debian | Commentaires fermés
Mardi, den 27. décembre 2011

How to debug or test cron script If your simple cron script (/etc/cron.daily, etc/cron.hourly etc) does not run as expected, do the following: 1. be sure to have ‘#!/bin/sh’ as the first line 2. make sure the script’s name does not contains ‘.’. for example, you should rename ‘yourscript.sh’ to ‘yourscript’. 3. use absolute path [...]

Tags: , ,

Category: bash, Debian | Commentaires fermés
Mercredi, den 31. août 2011

zssh, ZModem ssh, an alternative way to ssh and scp? To perform file transfer and ssh in ordinary way you need ssh and scp. Conventional way, let say you want to download certain files from a root directory of a server which you do not sure where is the actual location. First you login to [...]

Tags: , ,

Category: bash, Debian | Commentaires fermés
Mercredi, den 31. août 2011

find . | grep php$ | xargs grep ‘ce que je cherche’ | sort | more

Tags: , , , , ,

Category: bash, Debian | Commentaires fermés
Mercredi, den 31. août 2011

# The linux fuser command has a special option for port conflicts. # Use fuser -n tcp <port id> for tcp ports to see which process is using # the port. # For example to see which application is already using port 80 use: $ fuser -n tcp 80 # The netstat command can also [...]

Tags: , , , , , ,

Category: bash, Debian | Commentaires fermés