五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

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

分享到微博請遵守國家法律
汝州市| 双柏县| 积石山| 百色市| 东至县| 江源县| 政和县| 商城县| 青河县| 灵台县| 夏邑县| 孝昌县| 湟中县| 康马县| 鱼台县| 大姚县| 贵阳市| 循化| 丽水市| 舟曲县| 临邑县| 华池县| 宁明县| 漳平市| 深圳市| 上杭县| 若羌县| 随州市| 长子县| 岱山县| 陵水| 建始县| 酉阳| 门源| 商都县| 察哈| 肥西县| 兴义市| 长兴县| 灵璧县| 满洲里市|