grep -rl pattern .
For example :
To search for each line under the current directory for the word “Hacked”
grep -rl Hacked .
grep -rl pattern .
For example :
To search for each line under the current directory for the word “Hacked”
grep -rl Hacked .
dd if=/dev/zero of=testfile_10MB bs=10485760 count=1
OR
seq 10 600000 >> file1.txt > create a 4MB file
cat /proc/cpuinfo
or
grep proc /proc/cpuinfo
Gives Processor count
grep proc /proc/cpuinfo |wc -l
mkdir -p /data/db
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
OR
for i in `cat /etc/trueuserdomains| awk {‘print $2′}`; do find /home/$i/public_html -type f -exec chmod 644 {} \;; find /home/$i/public_html -type d -exec chmod 755 {} \;; done