gerp "serchterm" filename
case insensetive
gerp -i "serchterm" filename
all line except thos contain search term
gerp -v "searchterm" filename
number of eccurance
gerp -c "serchterm" filename
case insensetive
gerp -i "serchterm" filename
all line except thos contain search term
gerp -v "searchterm" filename
number of eccurance
gerp -c "serchterm" filename
Open a cron jobs file with ctontab-e and
add the following line to enable daily backups:
$ crontab -e # open crontab file
@daily rsync -aze ssh ubuntu@10.0.2.50:/home/ubuntu/sampledir
/var/backup
In the preceding example, we have used a pull operation, where we are downloading files from
the remote server. Rsync can be used to upload files as well. Use the following command to
push files to the remote server:
$ rsync -azP -e ssh backup
ubuntu@10.0.2.50:/home/ubuntu/sampledir
#linux
#rscnc
add the following line to enable daily backups:
$ crontab -e # open crontab file
@daily rsync -aze ssh ubuntu@10.0.2.50:/home/ubuntu/sampledir
/var/backup
In the preceding example, we have used a pull operation, where we are downloading files from
the remote server. Rsync can be used to upload files as well. Use the following command to
push files to the remote server:
$ rsync -azP -e ssh backup
ubuntu@10.0.2.50:/home/ubuntu/sampledir
#linux
#rscnc