最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊

CS61C Lab0 雜談

2023-03-06 11:12 作者:_dys_  | 我要投稿

Lab0提到了一句話,Each lab will begin with a few objectives; use them to reflect on your learning and guide your thinking!

我想這就是學(xué)習(xí)它的原因,guide your thinking 才是最核心的部分。

有用的命令行技巧

<ctrl> + a 會(huì)將cursor移動(dòng)至當(dāng)前行開頭

<ctrl> + e 會(huì)將cursor移動(dòng)至當(dāng)前行結(jié)束

總結(jié):helpful for fixing mistakes

man - Manul Pages

借用Dan的評價(jià):

They also work offline, so they can be handy if you’re ever stuck in a North Alaskan woodland cabin in the middle of a snowstorm basking in the dying glow of a ThinkPad which BTW runs Arch Linux.

While your favorite search engine probably also has the answers you’re looking for, in this course, we’d still like you to get comfortable with using?man, especially for C and UNIX-related questions.

一般來說,我們會(huì)選擇

man command_name | less

這樣通過pipeline將man page傳遞給less,這個(gè)頁面可以通過鼠標(biāo)滾動(dòng)查看

也可以通過關(guān)鍵詞查找

man -k single_keyword | less


SSH - "Secure Shell"

為了遠(yuǎn)程連接機(jī)器,當(dāng)然這里的介紹就比較簡陋了,詳情還是可以參照6.NULL

1、如果長時(shí)間nothing happens,需要檢查網(wǎng)絡(luò)連接或者防火墻設(shè)置

2、連接成功后,就可以與遠(yuǎn)程機(jī)器進(jìn)行交互和輸入命令

3、如果需要退出SSH會(huì)話,使用exit即可


SCP - "Secure Copy"

scp用于使用SSH協(xié)議在計(jì)算機(jī)之間復(fù)制文件。

如果先從遠(yuǎn)程機(jī)器中獲取單個(gè)文件或者整個(gè)文件夾又或者是發(fā)送過去,就可以使用SCP命令

$ scp <source> <destination>

To specify a remote source or destination, use?username@host:path. To specify a local destination, just use?path.

如果是復(fù)制文件夾,則加上“-r” Flags即可


Vim Basics

當(dāng)然這些基本都是基本操作,可以說如果不會(huì)Vim宏,那就是根本不會(huì)Vim。但現(xiàn)在有了Vs code之后其實(shí)不是特別需要Vim,當(dāng)然能寫Shell這個(gè)基操還是得有的。


Fun with Git

$ git config --global user.name "John Doe"

$ git config --global user.email johndoe@example.com

拉取最新的代碼

git pull origin?master


P.S. (盡量用SSH協(xié)議,HTTP有很多坑,包括SSL之類的,絕對不要用HTTP協(xié)議)


CS61C Lab0 雜談的評論 (共 條)

分享到微博請遵守國家法律
文山县| 田阳县| 庐江县| 云林县| 汉川市| 台东县| 雅安市| 全州县| 察隅县| 邵阳县| 六枝特区| 茶陵县| 丰原市| 成都市| 栖霞市| 海丰县| 文昌市| 南川市| 奉化市| 武平县| 建德市| 嵊州市| 合肥市| 晋城| 嘉善县| 镇江市| 怀宁县| 庆安县| 固阳县| 冕宁县| 河北省| 长宁县| 新乐市| 垫江县| 德格县| 长阳| 颍上县| 资讯 | 密山市| 客服| 永春县|