You are herelinux
linux
find files in linux and take backup
Recently working on one of my projects i found how powerful linux commands are, if u have proper knowledge.
My Problems is to find a files (test.php) in a directory and its sub directory. and then take a backup of that file and then copy a new file at the same place.
# backup test.php
find */*/www/code/ -name 'test.php' -exec cp {} {}.bak \;
# copy new_test.php
find */*/www/ -name 'code' -type d -exec cp /home/new_test.php {}/ \; 2>/dev/null
Sharing internet between windows and linux
While sharing internet connections between windows is quite easy for normal users because most of time all settings are done by windows itself i.e. Network setup wizard or creating new connection. But if you are sharing internet connection between Linux and windows you need to know the technical details of IP Address, Default Gateway, and DNS server. I have faced the same problem yesterday and after a lot of research and talking to friends I finally get it done.
Requirements:
An Internet connection
A LAN network