Last active
April 27, 2020 11:08
-
-
Save mshRoR/eda70cc211294ff76baee4bbe2c565ba to your computer and use it in GitHub Desktop.
Important ubuntu comamnds
This file contains 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
# 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