nome cognome email
Voglio creare un nuovo file con le sole mail
grep -o -E '[a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}' users.txt > userc.txt
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
To:GRUB_CMDLINE_LINUX_DEFAULT="text"
Now you must update the grub configs:sudo update-grub
And its done!
After reboot, to start the gui just login and type:startx
/etc/ssh/sshd_config
e metti a:
yes
la voce: PasswordAuthentication
restart the sshd server
sudo /etc/init.d/ssh restart
$ wget http://download.oracle.com/otn-pub/java/jdk/6u34-b04/jre-6u34-linux-i586.bin $ chmod u+x jre-6u34-linux-i586.bin $ ./jre-6u34-linux-i586.bin $ sudo mkdir -p /usr/lib/jvm $ sudo mv jre1.6.0_34 /usr/lib/jvm/ $ sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jre1.6.0_34/bin/java" 1 $ sudo update-alternatives --install "/usr/lib/mozilla/plugins/libjavaplugin.so" "mozilla-javaplugin.so" "/usr/lib/jvm/jre1.6.0_34/lib/i386/libnpjp2.so" 1 $ sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jre1.6.0_34/bin/javaws" 1
$ wget --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F" http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin $ chmod u+x jdk-6u45-linux-x64.bin $ ./jdk-6u45-linux-x64.bin $ sudo mv jdk1.6.0_45 /opt $ sudo update-alternatives --install "/usr/bin/java" "java" "/opt/jdk1.6.0_45/bin/java" 1 $ sudo update-alternatives --install "/usr/bin/javac" "javac" "/opt/jdk1.6.0_45/bin/javac" 1 $ sudo update-alternatives --install "/usr/lib/mozilla/plugins/libjavaplugin.so" "mozilla-javaplugin.so" "/opt/jdk1.6.0_45/jre/lib/amd64/libnpjp2.so" 1 $ sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/opt/jdk1.6.0_45/bin/javaws" 1
$ sudo update-alternatives --config java $ sudo update-alternatives --config javac
export _JAVA_HOME=/opt/jdk1.6.0_45/
sudo update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java). Selection Path Priority Status ———————————————————— * 0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode 1 /usr/lib/jvm/jre1.7.0/jre/bin/java 3 manual mode Press enter to keep the current choice[*], or type selection number: 1
chmod a+x ibm-java-ppc-jre-6.0-10.1.bin sudo ./ibm-java-ppc-jre-6.0-10.1.bin
export PATH=/usr/lib/jvm/java-6-ibm-powerpc/bin:/usr/lib/jvm/java-6-ibm-powerpc/jre/bin:$PATH
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/java-6-ibm-powerpc/jre/bin/java" 1 sudo update-alternatives --set java /usr/lib/jvm/java-6-ibm-powerpc/jre/bin/java
sudo update-alternatives --install /usr/lib/mozilla/plugins/mozilla-javaplugin.so mozilla-javaplugin.so /usr/lib/jvm/java-6-ibm-powerpc/jre/lib/ppc/libnpjp2.so 1 sudo update-alternatives --config mozilla-javaplugin.so
java -version
sudo sh -c 'echo "JITC_PROCESSOR_TYPE=6" >> /etc/environment'
sudo sh -c 'echo "JITC_PROCESSOR_TYPE=5" >> /etc/environment'
Ricerca di un file
inizia dalla root
find . -name "*.xxx" -print
da una cartella
find path_cartella -name "*.xxx" -print
Ricerca dentro un file
grep "cosaricercare" /directorydovecercare
grep 'Linux is' *
grep -r .... se la si uole ricorsiva
You can force grep to ignore word case i.e match boo, Boo, BOO and all other combination with the -i option:
$ grep -i "boo" /etc/passwd