User and Group Management Commands Configura On Files: o o o o
User and Group Management Commands Configura On Files: o o o o
Configura on Files:
1. User Commands:
o Op ons:
2. Modify User:
o Op ons:
3. Delete User:
o userdel -r ahmed: Delete user and their home directory.
4. Group Management:
o Op ons:
Scheduling Jobs
Configura on Files:
o Op ons:
o Crontab Syntax:
3. Systemd Timers:
o Timer Op ons:
2. Locale Se ngs:
3. Character Encoding:
Configura on Files:
o sudo ifconfig eth0 192.168.1.1 netmask 255.255.255.224 broadcast 192.168.1.31: Set IP, netmask, and
broadcast on eth0.
o ifconfig eth0 down && ifconfig eth0 up: Disable and re-enable eth0.
o ifconfig 10.17.32.28/22 up: Ac vate interface with IP 10.17.32.28 and subnet mask /22.
2. NetworkManager Commands:
o nmcli device disconnect "Hotel Internet": Disconnect device from "Hotel Internet".
o nmcli device wifi connect "Hotel Internet": Connect to Wi-Fi "Hotel Internet".
o nmcli connec on delete "Hotel Internet": Delete saved network profile for "Hotel Internet".
3. Hostname Management:
o hostnamectl status: View the current hostname and related system informa on.
2. Se ng IP Addresses:
o sudo ip addr add 192.168.1.100/24 dev enp3s0: Add IP address 192.168.1.100/24 to enp3s0.
o sudo ip addr del 192.168.1.100/24 dev enp3s0: Remove IP address from enp3s0.
3. IP Routes:
o ip route add 10.10.20.0/24 via 192.168.50.100 dev eth0: Add a sta c route.
4. IPv6 Commands:
o ip route add 2001:db8:1::/64 via 2001:db8::3: Add IPv6 route using ip.
o ip route del 2001:db8:1::/64 via 2001:db8::3: Remove IPv6 route using ip.
2. DNS Lookup:
20 FTP (Data)
21 FTP (Control)
22 SSH
23 Telnet
25 SMTP
53 DNS
80 HTTP
443 HTTPS