同樣來自於著名網校coursera,本來寫了第一章的筆記的,可惜不小心不見了,哎,只有從week2開始搞起了
2.1 命令行界面(就是window中的cmd.exe)
命令行界面(Command
Line Interface,簡寫:CLI)是在圖形用戶界面得到普及之前使用最爲廣泛的用戶界面,它通常不支持鼠標,用戶通過鍵盤輸入指令,計算機接收到指令後,予以執行。也有人稱之爲字符用戶界面(CUI)
通常認爲,命令行界面(CLI)沒有圖形用戶界面(GUI)那麼方便用戶操作。因爲,命令行界面的軟件通常需要用戶記憶操作的命令,但是,由於其本身的特點,命令行界面要較圖形用戶界面節約計算機系統的資源。在熟記命令的前提下,使用命令行界面往往要較使用圖形用戶界面的操作速度要快。所以,在現在的圖形用戶界面的操作系統中,通常都保留着可選的命令行界面。
directories
root::根目錄,用/(slash)斜線
home:用~(tilde)
ls list files and folders in the current directory /a lists hidden and unhidden files and folders
cd 轉移目錄項
mkdir --------------stand for "make directory",just like :right click->create new folder
touch ________create a empty file
cp--------------------stands for "copy"
rm--------------------stands for"remove"
mv----------------------move 也可以用來改名,rm newname oldname
echo------------------打字 不知道是像r 還是php總之是不記得了
date-----------------顯示當前時間,如Mon May 19 23:34:37 2014
clear-----------------清屏
2.2 GIT簡介
說實話,以前聽過真心沒見過的
命令行界面,Git是一個分佈式版本控制/軟件配置管理軟件,Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
不得不吐下槽了,我校園網,你讓我下這東西,哎。。。。。下個破東西用了近1小時,網站上還有本書,哎,最討厭看書什麼的了
git config-global user.name"li"
可憐的是不知道dash號咋打
2.3 GitHub簡介
GitHub 是一個共享虛擬主機服務,用於存放使用Git版本控制的軟件代碼和內容項目。它由GitHub公司(曾稱Logical
Awesome)的開發者Chris Wanstrath、PJ Hyett和Tom Preston-Werner使用Ruby
on Rails編寫而成。
2.4創建一個github repository
使用git時無需github,git=當地(在你的電腦上),github=遠程(在網上)
github允許你,同他人分享你的repositories,訪問別人的repositories,在github服務器上儲存你的repositories的複本,以防會在本地複本上發生事故(在你的電腦上)
創建一個當地copy
$ mkdir ~/test-repo
導航到這個新目錄 $ cd ~/test-repo
initialize a local git repositroy in this directory $ git init
point your local repository at the remote repository you just created on the github server
$ git remote add origin http://github.com/yourusername/test-repo.git
當你 fork 他人的repo 時,可
$ git clone http://github.com/yourusername/reponamehere.git this will clone the repository into your current directory.
2.5基礎git命令
2.6 basic markdown
md 文件
headings
## this is a secondary heading
### this is a tertiary heading
unordered lists
* first item in list
** second item in list
*** third item in list
2.7 installing R Packages
load 裝載
2.8 Rtools
雖然暫時不知道有麼用,但絕對是大有用處的吧