THIS IS A LEARNING NOTE

更新於 發佈於 閱讀時間約 5 分鐘

Readme

This is a learning note recording problem-solving experience or some helpful insights, and some ways to improve my English ability (XD.

Because these note consists of several contains which is not enough to be an article, I will implement a rolling updates.

這是一篇學習筆記,紀錄一些無法成篇的小知識,並藉此順便練練自己破爛的英文>//<。

因為這篇筆記是由一個個我解決問題後學到的知識所組成,所以這篇會以滾動式的更新。

Directory

computer science

  • How to change the default directory on terminal in linux ?
  • How to change .bashrc to .zshrc ?

cooking

  • egg fried rice

Content

computer science


How to change the default directory on terminal in linux ?

#.bashrc #.zshrc

In Linux, when you open the terminal, the default directory that appears is your home directory (~). If you want to change this default directory, you can modify the .bashrc or .zshrc file. These files control the appearance of the prompt and terminal behavior. To check which shell your system is using, you can type echo $SHELL.

Next, you need to add the command cd directory at the bottom of the configuration file. For example, if I want my default directory to be Desktop/computer_science_1/, I need to add the line cd Desktop/computer_science_1/ at the end of my .zshrc file since I'm using Kali Linux, which defaults to .zshrc.

By the way, I recommend using .zshrc because it offers more suggestions when you input commands in the terminal. If this interests you, you can refer to the next part.

How to change .bashrc to .zshrc ?

#source #chsh

This part is an extension of previouse one.

What we need to do is type source ~/.zshrc. Then, refresh your system. It is easy right ? Sometimes, you may meet some problem. Try chsh -s $(which zsh).



cooking


egg fried rice

This dish is one of the few that I know how to make.

For the preparation, you'll need scallion pieces, eggs, soy sauce, salt, and, of course, rice. If you prefer a stronger flavor, you can add garlic or other ingredients of your choice at the end.

First, fry the eggs. This step is important for giving the fried rice its aroma, so cook them until they release the scent of eggs. The number of eggs depends on how many people are eating. For example, if there are four people, I would use six eggs.

Next, add the rice. This is the most important and tiring step because you need to not only stir-fry the rice continuously but also add oil if the rice is too dry, and soy sauce while stir-frying. By the way, avoid using high heat, or you might end up like me on my first time cooking—having the entire pan coated with burnt soy sauce.

Once the rice turns golden brown, turn off the heat and add the scallion pieces and salt, or any other seasonings you like.

After a while of stir-frying, you'll have a delicious egg fried rice!🤤

後記

I don't know how to say 後記 in English, so forgive me just use Chinese>.< .

This is my first time using English entirely to record a note, and it feels both fresh and interesting to me.

Returning to the previous content, although I have already used ChatGPT (including this paragraph), there may still be some mistakes. So please don't hesitate to point out any grammatical or technical errors.

留言
avatar-img
留言分享你的想法!
avatar-img
周濡墨的沙龍
17會員
112內容數
有別於未付費的文章,專題區的文章偏向愛情短篇小說,較有戲劇性,篇幅也會較長;未付費文章會偏向極短篇小說,並且以類似散文的手法寫作
周濡墨的沙龍的其他內容
2025/04/23
核心意識 自有平台 工作地點 職缺和實習 培訓 你不需要很厲害 QA 面試詳細內容:20分鐘線上程式測驗。沒有複試,一次面試。會從履歷中問問題 有沒有短期實習,例如暑期實習:希望暑假+一個學期。開學後每周三天沒有硬性規定哪幾天 資安推薦能力或證照:英文能力,e
Thumbnail
2025/04/23
核心意識 自有平台 工作地點 職缺和實習 培訓 你不需要很厲害 QA 面試詳細內容:20分鐘線上程式測驗。沒有複試,一次面試。會從履歷中問問題 有沒有短期實習,例如暑期實習:希望暑假+一個學期。開學後每周三天沒有硬性規定哪幾天 資安推薦能力或證照:英文能力,e
Thumbnail
2025/03/03
此題為栅欄密碼或稱籬笆密碼。會知道栅欄密碼是因為文字中出現fence和zig-zag pattern。其中第二點很符合栅欄密碼的特徵,請看下圖。 栅欄密碼真就是以Z字形進行加密的。 而這題只要放進隨便一個online decrypt tool都可以解出來。例如我就是用這個網站解出來的。欄數填
Thumbnail
2025/03/03
此題為栅欄密碼或稱籬笆密碼。會知道栅欄密碼是因為文字中出現fence和zig-zag pattern。其中第二點很符合栅欄密碼的特徵,請看下圖。 栅欄密碼真就是以Z字形進行加密的。 而這題只要放進隨便一個online decrypt tool都可以解出來。例如我就是用這個網站解出來的。欄數填
Thumbnail
2025/01/29
介紹 Remedy ctf 裡,solidity(區塊鏈)的題目占多數。並且在比賽中會不時新增題目 學到知識 雖然沒有解出一題(除了第一題水題),但還是學到一些東西。 先來介紹一些專有名詞 RPC 客戶和區塊鏈互動的介面。如果用瀏覽器造訪會得到一個json,像這樣{"detail":
Thumbnail
2025/01/29
介紹 Remedy ctf 裡,solidity(區塊鏈)的題目占多數。並且在比賽中會不時新增題目 學到知識 雖然沒有解出一題(除了第一題水題),但還是學到一些東西。 先來介紹一些專有名詞 RPC 客戶和區塊鏈互動的介面。如果用瀏覽器造訪會得到一個json,像這樣{"detail":
Thumbnail
看更多
你可能也想看
Thumbnail
TOMICA第一波推出吉伊卡哇聯名小車車的時候馬上就被搶購一空,一直很扼腕當時沒有趕緊入手。前陣子閒來無事逛蝦皮,突然發現幾家商場都又開始重新上架,價格也都回到正常水準,估計是官方又再補了一批貨,想都沒想就立刻下單! 同文也跟大家分享近期蝦皮購物紀錄、好用推薦、蝦皮分潤計畫的聯盟行銷!
Thumbnail
TOMICA第一波推出吉伊卡哇聯名小車車的時候馬上就被搶購一空,一直很扼腕當時沒有趕緊入手。前陣子閒來無事逛蝦皮,突然發現幾家商場都又開始重新上架,價格也都回到正常水準,估計是官方又再補了一批貨,想都沒想就立刻下單! 同文也跟大家分享近期蝦皮購物紀錄、好用推薦、蝦皮分潤計畫的聯盟行銷!
Thumbnail
每年4月、5月都是最多稅要繳的月份,當然大部份的人都是有機會繳到「綜合所得稅」,只是相當相當多人還不知道,原來繳給政府的稅!可以透過一些有活動的銀行信用卡或電子支付來繳,從繳費中賺一點點小確幸!就是賺個1%~2%大家也是很開心的,因為你們把沒回饋變成有回饋,就是用卡的最高境界 所得稅線上申報
Thumbnail
每年4月、5月都是最多稅要繳的月份,當然大部份的人都是有機會繳到「綜合所得稅」,只是相當相當多人還不知道,原來繳給政府的稅!可以透過一些有活動的銀行信用卡或電子支付來繳,從繳費中賺一點點小確幸!就是賺個1%~2%大家也是很開心的,因為你們把沒回饋變成有回饋,就是用卡的最高境界 所得稅線上申報
Thumbnail
接續上一篇文章,本文再深入一點關於ETCD基本操作以及在其他文章中關於ETCD節點資料不一致情況的除錯內容分享
Thumbnail
接續上一篇文章,本文再深入一點關於ETCD基本操作以及在其他文章中關於ETCD節點資料不一致情況的除錯內容分享
Thumbnail
您是否苦於網路資訊爆炸嗎? 教學何其多,但卻無法好好選擇的困境呢? 歡迎加入「🔒 阿Han的軟體心法實戰營」, 這裡不給您冗餘的雜訊, 單刀直入直接送您重點, 避開選擇障礙的困境, 讓您獲得業界標準的開發起手式, 成為Top 1的頂尖人才。 使用Linux作業系統的朋友們應該對於「htop
Thumbnail
您是否苦於網路資訊爆炸嗎? 教學何其多,但卻無法好好選擇的困境呢? 歡迎加入「🔒 阿Han的軟體心法實戰營」, 這裡不給您冗餘的雜訊, 單刀直入直接送您重點, 避開選擇障礙的困境, 讓您獲得業界標準的開發起手式, 成為Top 1的頂尖人才。 使用Linux作業系統的朋友們應該對於「htop
Thumbnail
為什麼寫這麼基本的設定呢? 剛開始打字時預設內定為微軟注音,因為沒有全部設定好,導致後續寫稿時常常打錯字,也有是因為打注音時選錯字也有關。 雖然這個很基本,但也有滿多人不知道該怎麼設定,或常被微軟裡其設定繁雜而困擾,至少我找了一陣子......。 進入畫面右下方切換中英文(右鍵),叫出IME工
Thumbnail
為什麼寫這麼基本的設定呢? 剛開始打字時預設內定為微軟注音,因為沒有全部設定好,導致後續寫稿時常常打錯字,也有是因為打注音時選錯字也有關。 雖然這個很基本,但也有滿多人不知道該怎麼設定,或常被微軟裡其設定繁雜而困擾,至少我找了一陣子......。 進入畫面右下方切換中英文(右鍵),叫出IME工
Thumbnail
本文教你如何運用終端機指令來操作你的電腦,包括Mac和Windows用法。包括指令如pwd, ls, cd, mkdir, touch, rm, rmdir, cp, mv。另外,還附有相關的影片教學和額外資源教學。
Thumbnail
本文教你如何運用終端機指令來操作你的電腦,包括Mac和Windows用法。包括指令如pwd, ls, cd, mkdir, touch, rm, rmdir, cp, mv。另外,還附有相關的影片教學和額外資源教學。
Thumbnail
前言 很多人電腦使用久了,沒有整理,桌面會非常雜亂,這一個雜亂會在你不知不覺中,消磨掉你的時間。今天我會教你用“密語”重新定義你的桌面。 Demo影片 先附上影片,讓各位看看極簡桌面效果如何 接下來,讓我一步一步開始教你怎麼操作: 第一步 建立一個存放資料夾(路徑隨意,在此以桌面為例),名字依你喜好
Thumbnail
前言 很多人電腦使用久了,沒有整理,桌面會非常雜亂,這一個雜亂會在你不知不覺中,消磨掉你的時間。今天我會教你用“密語”重新定義你的桌面。 Demo影片 先附上影片,讓各位看看極簡桌面效果如何 接下來,讓我一步一步開始教你怎麼操作: 第一步 建立一個存放資料夾(路徑隨意,在此以桌面為例),名字依你喜好
Thumbnail
之前因為常需要跑devops相關工具,因此開發環境完全是用Ubuntu的圖形化介面,但偶爾會遇到一些延遲以及小bug,偶然的機會下發現在windows設定git-bash似乎也能達到一樣的效果,也能順便增加對windows開發人員生態系的了解,因此本篇主要是針對如何設定美麗的terminal以及vs
Thumbnail
之前因為常需要跑devops相關工具,因此開發環境完全是用Ubuntu的圖形化介面,但偶爾會遇到一些延遲以及小bug,偶然的機會下發現在windows設定git-bash似乎也能達到一樣的效果,也能順便增加對windows開發人員生態系的了解,因此本篇主要是針對如何設定美麗的terminal以及vs
Thumbnail
更好看更強大的shell,zsh/oh-my-zsh配置。
Thumbnail
更好看更強大的shell,zsh/oh-my-zsh配置。
Thumbnail
大家有這個需求的時候,Google 出來多數都是要去一些地方加一堆東西。但我自己實際測試發現並不用這麼麻煩。因為終究是 Linux,所以回歸到本質上,使用 Linux 的方法設定就好。 本文測試環境: 硬體:Raspberry pi 4 B 8GB OS:Raspberry Pi OS
Thumbnail
大家有這個需求的時候,Google 出來多數都是要去一些地方加一堆東西。但我自己實際測試發現並不用這麼麻煩。因為終究是 Linux,所以回歸到本質上,使用 Linux 的方法設定就好。 本文測試環境: 硬體:Raspberry pi 4 B 8GB OS:Raspberry Pi OS
追蹤感興趣的內容從 Google News 追蹤更多 vocus 的最新精選內容追蹤 Google News