2024-11-05|閱讀時間 ‧ 約 5 分鐘

THIS IS A LEARNING NOTE

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.

分享至
成為作者繼續創作的動力吧!
© 2024 vocus All rights reserved.