国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(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 雜談的評論 (共 條)

分享到微博請遵守國家法律
林芝县| 黄平县| 慈溪市| 县级市| 祥云县| 广元市| 库尔勒市| 黄大仙区| 眉山市| 聊城市| 逊克县| 和静县| 黔江区| 嘉定区| 阿克苏市| 巴中市| 通许县| 闸北区| 北海市| 厦门市| 新营市| 象州县| 岗巴县| 许昌县| 页游| 古蔺县| 东兴市| 汶川县| 大城县| 南阳市| 吉木乃县| 利津县| 哈巴河县| 灵寿县| 沁阳市| 隆子县| 霍林郭勒市| 黔南| 浙江省| 封开县| 千阳县|