Last active
December 9, 2015 19:40
-
-
Save AjeetK/e7e06987acc376f950fc to your computer and use it in GitHub Desktop.
custom aliases to shorten the unix commands. Make a file ~/.bash_aliases and source the ~/.bashrc file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias cls='clear' | |
alias pag='ps aux | grep' | |
alias nreload='sudo servince nginx reload' | |
alias nstop='sudo service nginx stop' | |
alias nstart='sudo servince nginx start' | |
alias nrestart='sudo service nginx restart' | |
alias ebe='ember build --environment=' | |
alias chmodx='sudo chmod +x' | |
alias epreprod='RAILS_ENV=pre_prod' | |
alias eprod='RAILS_ENV=production' | |
alias efeature='RAILS_ENV=feature' | |
alias edevelopment='RAILS_ENV=development' | |
alias rc='rails c' | |
alias rau='rake activate:users' | |
alias killsk='ps -ef | grep sidekiq | grep -v grep | awk '{print $2}' | xargs kill -9' | |
alias startskinprod='bundle exec sidekiq -C ./config/sidekiq.yml -e production -d' | |
alias startskinpreprod='bundle exec sidekiq -C ./config/sidekiq.yml -e pre_prod -d' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
alias nstart='sudo servince nginx start'
Spelling of service is wrong.