Here is command to get files which contains the given pattern. For example, if you are trying to find "Got my text" in current directory and its sub directories, then following command will give line numbers along with file names that contains that text:
grep "Got my text" -nr ./*
Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts
Uploading files to Remote Server
There are different ways we can upload files to remote servers. Few command line tools are listed here"
1- Securely Copy files (scp):
scp -v -r -o IdentityFile=<cert.pem> <source folder> <user>@<remoteserverip>:/home/<user>/<destination folder>
Note: If a certificate is needed, then IdentityFile=<cert.pem> should be used.
2- rSync:
rsync -vcrz --delete-after <source folder> <user>@<remoteserverip>:/home/<user>/<destination folder>
Subscribe to:
Posts (Atom)
Scheduling Repeating Local Notifications using Alarm Manager
Learn about Scheduling Repeating Local Notifications using Alarm Manager in this post .
-
Couple of days ago, I started using Google's code projects for Git as well. It required me to setup and use .netrc file. Here are steps...
-
I've been struggling to get this working for about 2 days now. I was able to POST a request directly from sockets, but it took me a whi...
-
Normal structure of build.gradle for an Android library looks like this: apply plugin : 'com.android.library' android { comp...