MAC terminal cshrc

MAC terminal cshrc

사랑나무 0 683 2023.05.19 10:44

How to create a cshrc file




Step 1: Open Terminal


Launch Terminal on your Mac by clicking on the icon in the Dock or searching for it using Spotlight.


Terminal icon


Step 2: Create a new file


To create a new .cshrc file, type the following command in Terminal:


$ vi ~/.cshrc

This will open a new file named cshrc in VI editor.


VI Editor


Step 3: Edit the file


You can add any environment variables, aliases, or other settings to the cshrc file. For example:


setenv PATH "/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
alias ll 'ls -al'
set prompt = "[$USER@\h \W]\$ "

These lines set the $PATH environment variable, create an alias for the ll command, and customize the Terminal prompt.




Step 4: Save and exit


Once you have added your desired settings to the cshrc file, save and exit by typing:


:wq
Save and exit


Step 5: Restart Terminal


To see your changes take effect, restart Terminal by quitting and reopening it.




Now you know how to create a cshrc file on your Mac!


Comments

Category
State
  • 현재 접속자 18 명
  • 오늘 방문자 299 명
  • 어제 방문자 269 명
  • 최대 방문자 383 명
  • 전체 방문자 128,400 명
  • 전체 게시물 5,788 개
  • 전체 댓글수 0 개
  • 전체 회원수 2 명
Facebook Twitter GooglePlus KakaoStory NaverBand