Last active
January 21, 2016 01:21
-
-
Save alkalinecoffee/5fdf34ad2f427c9d69c5 to your computer and use it in GitHub Desktop.
Common linux commands
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
############ | |
# SYSTEM | |
############ | |
# show running daemons (CentOS) | |
systemctl | |
# show daemon status (CentOS) | |
systemctl status sshd.service | |
############ | |
# NETWORKING | |
############ | |
ip addr show | |
############ | |
# POSTGRESQL | |
############ | |
# login with default user (after fresh install) | |
sql -U postgres | |
# to quit session | |
\q | |
CREATE USER joe WITH PASSWORD 'password'; | |
CREATE DATABASE joedb WITH OWNER joe; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment