mkdir -p |
creates a folder including parents |
chown user:group |
changes owner and group |
chgrp group |
changes the group only |
chmod 640, chmod u-w |
changes permissions |
nano, vim |
text editors |
diff a b |
differences between two files |
useradd -m -s /bin/bash |
user with a home directory and shell |
groupadd, usermod -aG |
create a group, add a member |
id, getent passwd |
UID, groups, home, shell |
sudo -iu user |
new session as another user |
sleep 600 &, jobs -l |
background process |
ps, top, kill PID |
inspect and stop a process |
systemctl daemon-reload |
re-read unit files |
systemctl start/stop/restart |
control the service now |
systemctl enable/disable |
control start at boot |
journalctl -u NAME |
service logs (-f live, --since, -n) |
ip -br -4 addr, ip route |
IP addresses and routes |
ping -c 4 |
four requests |
resolvectl query, getent ahosts |
DNS lookup |
ss -tlnp, ss -tn |
listening ports, connections |
tar -czf / -tzf / -xzf |
create, list, extract an archive |