@@ -67,7 +67,6 @@ ssh -L <remote_port>:localhost:<local_port> -i /path/to/key username@hostname
67
67
### rsync
68
68
69
69
``` bash
70
- # https://www.danielms.site/blog/rsync-cheatsheet/
71
70
# -avzPn --stats -h --> archive verbose compressed progress-bar dry-run human-readable-stats
72
71
73
72
# pull files from remote server
@@ -80,6 +79,9 @@ rsync -avzPn ~/local/directory username@remote_host:/home/username/destination_d
80
79
# using ssh key
81
80
rsync -avzPn -e " ssh -i ~/ec2_keyfile.pem" user@remote:/home/folder /tmp/local_system/
82
81
```
82
+
83
+ More details on [ rsync cheatsheet] ( https://www.danielms.site/blog/rsync-cheatsheet/ )
84
+
83
85
### Networking
84
86
85
87
``` bash
@@ -108,10 +110,10 @@ wget -r -np -R "index.html" -nH -e robots=off --cut-dirs=X <download_URL>
108
110
### grep
109
111
110
112
``` bash
111
- # https://www.grymoire.com/Unix/Grep.html
112
113
# find pattern in files
113
114
grep --include=\* .{py, c, h} --exclude=\* .o --exclude-dir={dir1,dir2,* .dst} -rnw ' /path/to/somewhere/' -e " pattern"
114
115
```
116
+ More ` grep ` funda [ here] ( https://www.grymoire.com/Unix/Grep.html )
115
117
116
118
## System Setup
117
119
### Essential Installs
@@ -254,5 +256,6 @@ git checkout existingbranch
254
256
git branch newbranch # Create a new branch, saving the desired commits
255
257
git reset --hard HEAD~3 # Move master back by 3 commits or put a commit hash
256
258
git checkout newbranch # Go to the new branch that still has the desired commits
257
-
258
259
```
260
+
261
+ [ Atlassian Git Tutorials] ( https://www.atlassian.com/git/tutorials )
0 commit comments