Skip to content

Instantly share code, notes, and snippets.

@AjeetK
Last active December 9, 2015 19:40
Show Gist options
  • Save AjeetK/e7e06987acc376f950fc to your computer and use it in GitHub Desktop.
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.
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'
@007sumit
Copy link

007sumit commented Dec 9, 2015

alias nstart='sudo servince nginx start'

Spelling of service is wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment