#!/bin/bash
cd ~/Documenti
mkdir cartella-esempio
cp /etc/passwd cartella-esempio/utenti-attuali
echo copia completata!
#!/bin/bash
read -p "inserisci il tuo username: " username
if [ -n "$username" ]
then
if [ $username != $USER ]
then
echo "Bugiardo! So che ti chiami $USER"
echo $username >> smascherati.txt
else
echo "Ciao $username!"
fi
else
echo "Sei timido? So giĆ che ti chiami $USER!"
fi
#!/bin/bash
if [ "$1" == "" ]
then
echo "inserisci i primi tre byte come parametro!"
else
for ip in {1..254}
do ping -c 1 $1.$ip | grep "64 bytes" | cut -d " " -f 4 | tr -d ":" &
done
fi