Help on Linux
lsb_release -a
Command to add a new user with home directory and bash shell
sudo useradd -m <user_name> -s /bin/bash
Command to set (or) reset password for a user
Command to modify the default shell of a user (for example bash)
sudo usermod -s /bin/bash <user_name>
Alternative command to change the default shell of a user (for example bash)
Command to check the current shell
Command to check the PATH variable
Command to update the PATH variable
Command to add a user to sudo group
sudo usermod -a -G sudo <user_name>
Command to check the groups to which a user belongs
Command to add firewall rule to iptables
Command to display firewall rules from iptables
Check list to verify after linux upgrade
- Verify the firewall rules in iptables
sudo dpkg-reconfigure tzdata
Command to check the running status of DHCP server
sudo service isc-dhcp-server status
Command to restart the DHCP server
sudo service isc-dhcp-server restart