Linda Wang
April 2023
This slide is based on the Carpentries tutorial on the Unix shell (which you might want to do on your own).
$ ls
pwd
= present working directory)$ pwd
$ mkdir somepath
$ cd somepath
$ pwd
$ cd ..
$ cd ./somepath
$ pwd
$ mv somepath otherpath
cp
) files$ cp test.do otherpath/
rm
) files$ rm filename.do
Version Control system. Track the progress in a project: what changes?, who made changes? Again see the Carpentries tutorial
git clone https://github.com/labordynamicsinstitute/prettygood-example
(don’t forget to change directory)
git status
git pull
git add otherpath/fileimodified.do
git add otherpath/fileicreated.do
git commit -m "you write here a commit message"
git push
We use Markdowns to write reports. why?
# Heading level 1
## Heading level 2
### Heading level 3
#### Heading level 4
##### Heading level 5
Heading level 1
===============
Heading level 2
---------------
1. First item
2. Second item
3. Third item
1. Indented item
2. Indented item
4. Fourth item
- First item
- Second item
- Third item
- Indented item
- Indented item
- Fourth item
This is a block quote, and it is created like this
> This is a block quote, and it is created like this
Code embedded in the document:
"```"
gen var1= var2/var3
"```"
### Bad example
#### U.S.Census Population Division
- Retrieved from https://www.census.gov/geographies/reference-files/2017/demo/popest/2017-fips.html
### Good example
#### U.S.Census Population Division
- Retrieved from https://www.census.gov/geographies/reference-files/2017/demo/popest/2017-fips.html
Bad example:
Thank you for your replication archive.Blablabla.
**Conditional on making the requested changes to the manuscript and the openICPSR deposit prior to publication, the replication package is accepted.**
Good example:
Thank you for your replication archive. Blablabla.
**Conditional on making the requested changes to the manuscript and the openICPSR deposit prior to publication, the replication package is accepted.**