How do I open and edit a file in bash?

Trương Duy

New member
How do I open and edit a file in bash?
Answer
On a MacBook, step by step:
  1. First of all, open a terminal and write it: cd ~/
  2. Create your Bash file: touch .bash_profile. You created your “.bash_profile” file, but if you would like to edit it, you should write it;
  3. Edit your Bash profile: open -e .bash_profile.
 

Tìm kiếm

Back
Top