- vim ~/.zshrc
eval "$(rbenv init - zsh)"
alias neo="cd Documents/GitHub/[project]"
alias podinstall="bundle exec pod install --repo-update"
alias chore="./chore.bash"
alias sshadd="ssh-add -K ~/.ssh/[user-project]-GitHub"
- source ~/.zshrc
iOS Developer
eval "$(rbenv init - zsh)"
alias neo="cd Documents/GitHub/[project]"
alias podinstall="bundle exec pod install --repo-update"
alias chore="./chore.bash"
alias sshadd="ssh-add -K ~/.ssh/[user-project]-GitHub"
sudo chown -R root:wheel /Users/Library/MobileDevice/Provisioning\ Profiles
**not system
how to know current permission: ls -l [filename]
long click green(enlarge) button on left top of window
gem update bundler
gem install bundler
You don’t have write permissions for the /Library/Ruby/Gems/2.3.0 directory. (mac user) -> use “sudo”
My problem was
strange thing was it doesn’t stop well.. I needed to postfix stop several time to stop it. because it starts too soon sometimes.
2. but when I type mailq -> it says mail system is down. but
sudo mailq -> same and queues are listed and the sender is just the mac login name not email account. and all the requests stayed on the queue.
3. postfix status -> mail system is running
4. ps aux | grep postfix -> on
MacBook-Pro-3:LaunchDaemons jihyunson$ ps aux | grep postfix
jihyunson 9362 0.0 0.0 4268056 804 s000 S+ 2:40PM 0:00.00 grep postfix
root 8697 0.0 0.0 4278724 776 ?? Ss 2:35PM 0:00.00 /usr/libexec/postfix/master -w
if postfix is running it should be like
jihyunson 21556 0.0 0.0 4286488 844 s000 S+ 4:04PM 0:00.00 grep postfix
_postfix 21511 0.0 0.0 4296268 5232 ?? S 4:04PM 0:00.01 local -t unix
_postfix 21510 0.0 0.0 4315580 5316 ?? S 4:04PM 0:00.01 bounce -z -t unix -u
_postfix 21501 0.0 0.0 4298264 5172 ?? S 4:04PM 0:00.01 tlsmgr -l -t unix -u
_postfix 21495 0.0 0.0 4316032 6500 ?? S 4:04PM 0:00.03 smtp -t unix -u
_postfix 21490 0.0 0.0 4297224 5148 ?? S 4:04PM 0:00.01 trivial-rewrite -n rewrite -t unix -u
_postfix 21486 0.0 0.0 4298364 5284 ?? S 4:04PM 0:00.01 cleanup -z -t unix -u
_postfix 21386 0.0 0.0 4300292 5200 ?? S 4:04PM 0:00.01 pickup -l -t fifo -u -o content_filter=
_postfix 21385 0.0 0.0 4300340 5260 ?? S 4:04PM 0:00.01 qmgr -l -t fifo -u
root 21332 0.0 0.0 4306396 944 ?? Ss 4:04PM 0:00.02 /usr/libexec/postfix/master -w
5. sudo postsuper -d ALL ->
postsuper: Deleted: 80 messages
-> it made me to try sudo mailq
5. when I ls-l /etc/postfix
-rw-r--r-- 1 root wheel 11942 Aug 18 2018 LICENSE
-rw-r--r-- 1 root wheel 1629 Aug 18 2018 TLS_LICENSE
-rw-r--r--@ 1 root wheel 0 Oct 17 2018 access
-rw-r--r-- 1 root wheel 21535 Aug 18 2018 access~orig
-rw-r--r--@ 1 root wheel 0 Oct 17 2018 aliases
-rw-r--r-- 1 root wheel 10086 Aug 18 2018 aliases~orig
-rw-r--r-- 1 root wheel 3547 Aug 18 2018 bounce.cf.default
-rw-r--r--@ 1 root wheel 0 Oct 17 2018 canonical
-rw-r--r-- 1 root wheel 12000 Aug 18 2018 canonical~orig
-rw-r--r-- 1 root wheel 44 Aug 18 2018 custom_header_checks
-rw-r--r-- 1 root wheel 10221 Aug 18 2018 generic
-rw-r--r--@ 1 root wheel 0 Oct 17 2018 header_checks
-rw-r--r-- 1 root wheel 23802 Aug 18 2018 header_checks~orig
-rw-r--r--@ 1 root staff 27732 Aug 7 15:28 main.cf
-rw-r--r-- 1 root wheel 511 Aug 6 17:06 main.cf.bak
-rw-r--r-- 1 root wheel 535 Aug 7 11:52 main.cf.bak2
-rw-r--r-- 1 root wheel 27308 Aug 18 2018 main.cf.orig
-rw-r--r-- 1 root wheel 26862 Aug 18 2018 main.cf.proto
-rw-r--r-- 1 root wheel 27308 Aug 18 2018 main.cf~orig
-rw-r--r-- 1 root wheel 4760 Aug 18 2018 makedefs.out
-rw-r--r--@ 1 root wheel 0 Oct 17 2018 master.cf
-rw-r--r-- 1 root wheel 7443 Aug 18 2018 master.cf.default
-rw-r--r-- 1 root wheel 6230 Aug 18 2018 master.cf.proto
-rw-r--r-- 1 root wheel 7443 Aug 18 2018 master.cf~orig
-rw-r--r--@ 1 root wheel 0 Oct 17 2018 postfix-files
drwxr-xr-x 2 root wheel 64 Aug 18 2018 postfix-files.d
-rw-r--r-- 1 root wheel 20330 Aug 18 2018 postfix-files~orig
-rw-r--r--@ 1 root wheel 0 Oct 17 2018 relocated
-rw-r--r-- 1 root wheel 6929 Aug 18 2018 relocated~orig
-rw------- 1 root wheel 52 Aug 6 17:06 sasl_passwd
-rw------- 1 root wheel 52 Aug 6 14:51 sasl_passwd.bak
-rw------- 1 root wheel 16384 Aug 7 15:11 sasl_passwd.db
-rw-r--r--@ 1 root wheel 0 Oct 17 2018 transport
-rw-r--r-- 1 root wheel 12666 Aug 18 2018 transport~orig
-rw-r--r--@ 1 root wheel 0 Oct 17 2018 virtual
-rw-r--r-- 1 root wheel 12823 Aug 18 2018 virtual~orig
So many files are just empty. and the created date of ~orig is the day when postfix folder is created.. (you can check the date modified and created using stat [fileName] -> modified date, created date) And the date is like when I got this mac book.
I assume that something went wrong when I updated OS in my old macbook. https://apple.stackexchange.com/questions/82114/what-are-the-orig-files-in-os-x
HOME: home directory.
you can go into your home directory by typing cd in terminal
Jihyuns-MacBook-Pro:~ jihyunson$ cd Documents/
Jihyuns-MacBook-Pro:Documents jihyunson$ cd
Jihyuns-MacBook-Pro:~ jihyunson$
p.528 environment
MacBook-Pro:Downloads jihyunson$ unzip merry.zip
~/.Trash