Skip to content

Instantly share code, notes, and snippets.

@mshRoR
Last active April 27, 2020 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mshRoR/eda70cc211294ff76baee4bbe2c565ba to your computer and use it in GitHub Desktop.
Save mshRoR/eda70cc211294ff76baee4bbe2c565ba to your computer and use it in GitHub Desktop.
Important ubuntu comamnds
# Refresh ubuntu keys server
$ sudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com
# Group permission change
$ sudo chgrp -R root esdata
# Add current login User ID to .bashrc or .zshrc file
$ echo "export UID=$UID" >> ~/.bashrc
or
$ echo "export UID=$UID" >> ~/.zshrc
# PostgreSQL status start restart and stop command
$ sudo systemctl status postgresql
$ sudo systemctl stop postgresql
$ sudo systemctl start postgresql
$ sudo systemctl restart postgresql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment