# Create User
sudo adduser new_user
## Get default pass
sudo grep test /etc/shadow
test:!!:123456:0:99999:7:::
## Remove Pass
$ sudo adduser test
$ sudo passwd -d test
Removing password for user test.
passwd: Success
$ su test
$ whoami
test
## set sudo
usermod -aG wheel username
# Get IP of Mac
ifconfig |grep inet
## IP Wireless
ipconfig getifaddr en1
## IP Ethernet
ipconfig getifaddr en0
#copy sha local machine into server
ssh-copy-id -i ~/.ssh/id_rsa.pub git@192.168.100.130
ssh-keygen -t rsa
#location rule
# /etc/firewalld/zones/public.xml
# reload
firewall-cmd --reload
# check port running
ss -plnt
# check all port
firewall-cmd --zone=public --list-ports
# check specific port
firewall-cmd --zone=<zone> --query-port=80/tcp
# add port open
firewall-cmd --zone=public --add-port=27017/tcp --permanent
# check all services
firewall-cmd --zone=public --list-services
# add http & https services
firewall-cmd --zone=public --add-service=http
firewall-cmd --zone=public --add-service=https
tree
#Level of Depth
tree -L 3
#Excluding Directory
tree -I "node_modules|www"