diff --git a/README.md b/README.md index e60573c..e528310 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # cheatsheets Quick lookup documents for commonly used tools + +Comment 1: type git log to look at history of what you’ve done so far diff --git a/bioinformatics.md b/bioinformatics.md index bb0d639..8e8f4e6 100644 --- a/bioinformatics.md +++ b/bioinformatics.md @@ -24,3 +24,6 @@ The final command looks like this: ``` findMotifsGenome.pl peaks.bed out_dir hg19 -bg background.bed -rna -len 4,5,6,7 -mset vertebrates -mis 1 -p 4 ``` +My new note: git checkout checks out (i.e., restores) an old version of a file + + diff --git a/unixcommandnotes.txt b/unixcommandnotes.txt new file mode 100644 index 0000000..3d70360 --- /dev/null +++ b/unixcommandnotes.txt @@ -0,0 +1,21 @@ +pwd: present working directory +~ : home directory +cd: change directory +ls: list directory contents (files) +man: manual for whatever command you specify +mkdir: make directory +cd ..: change back to home directory +touch file.txt: creat an empty file called "text" +cat: look at file's contents +echo "example" >> file. text: this will append "example" into the file "text" +wc: line count +mv: move (must specify origin and destination after) +cp: copy (must specify origin and destination after) +scp: secure copy +chmod: permissions +awk: extract lines based on desired specifications you input +git init: makes a directory a git repo +git add: tells git to start keeping track of something +git commit -m: tells git to record your changes +git diff: shows changes so you can review them +