Author Archives: Ahmed Tawfik

Unknown's avatar

About Ahmed Tawfik

Cybersecurity Professional, Systems Engineer, OSS & Linux Geek

Install Network Manager 0.7 in Ubuntu Hardy, Intrepid, Jaunty, Karmic …etc

A very nice site called Ubuntu PPA (Personal Package Archives) where many teams contribute their own deb packages to be used by anyone, it’s not an official repository and many of the PPAs are for testing purposes only, but anyway … Continue reading →

Tagged , | Leave a comment

Network Manager 0.7 Multiple Simultaneous Connections!

Four network connections active at the same time: 3G connection (etisalat USB modem) 2 wireless networks with 2 different wireless cards (the internal card and another external one) 1 wired connection This is EXTREMELY useful and I gained a lot … Continue reading →

Tagged , , | Leave a comment

How To Write Infinite Loop in Bash

This is how you create an infinite loop in bash to run a piece of code infinitely at defined intervals. #!/bin/bashwhile [ 1 ]do # Your code goes here # Modify sleep time (in seconds) as needed below sleep 2done … Continue reading →

Tagged | Leave a comment

find files and copy them to a certain folder in bash (draft)

find . -name “*” | grep -i scomm | xargs ls -ltr | grep “Aug 13 10” | awk ‘{print $9}’ to use in the cp command (get the column number 9 which contains the file’s full path cp `find … Continue reading →

Tagged , , | Leave a comment

How to search for a string inside multiple text files

find starting_folder -name “*” | grep -i file_name | xargs grep -i search_string for example: “find . -name “*” | grep -i hobba | xargs grep -i tito” searches for the string “tito” inside all files whose name contains the … Continue reading →

Tagged , , | Leave a comment