Install upower tool Check the power details Check the battery percentage Read More... "How to check battery percentage of a remote Linux server via terminal"
How to disable laptop sleep and configure lid power settings in ubuntu
Open /etc/systemd/logind.conf file for editing Find the line #HandleLidSwitch=suspend. Remove the # character at the beginning of the line. Update this line to any of the desired settings below: Save… Read More... "How to disable laptop sleep and configure lid power settings in ubuntu"
Hard Link and Soft Link in Linux
Hard Link is a mirror copy of the original file. Hard links share the same inode.Any changes made to the original or Hard linked file will reflect the other.Even if… Read More... "Hard Link and Soft Link in Linux"
Add or Remove IP From an Interface Using the ip Command
Show all IP address associated with the interface Add an IP to an interface Delete an IP from an interface Clear the interface Read More... "Add or Remove IP From an Interface Using the ip Command"
phpipam cron job
Exec into the phpipam docker container Add the cron jon Run the cron job in the background Check the running process Read More... "phpipam cron job"
Formatting and Mounting Storage
# List Block storage lsblk # List Block storage (more details) sudo fdisk -l # List all mounted volumes mount # To create / delete partition (disk utility) sudo fdisk… Read More... "Formatting and Mounting Storage"
dig: parse of /etc/resolv.conf failed
In ubuntu /etc/resolv.conf is automatically generated by systemd. Do not edit this file. To add a new nameserver update the file: /etc/netplan/00-installer-config.yaml dig yahoo.comdig: parse of /etc/resolv.conf failed Run the… Read More... "dig: parse of /etc/resolv.conf failed"
How to Join a Linux (ubuntu machine) to Windows Active Directory
# Install the updates sudo apt update -y # Install the needed packages sudo apt -y install realmd libnss-sss libpam-sss sssd sssd-tools adcli samba-common-bin oddjob oddjob-mkhomedir packagekit # Set the… Read More... "How to Join a Linux (ubuntu machine) to Windows Active Directory"
Users and Groups in Linux
Show all user account in a Linux system cat /etc/passwd tail /etc/passwd Example: telson:x:1000:1000:telson:/home/telson:/bin/bashtelson:x:1000:1000:telson:/home/telson:/bin/bash userName:password:UID:GID:user-info:homeDir:defaultShell The user login password is stored in /etc/shadow file. tail /etc/shadow Show user group accounts… Read More... "Users and Groups in Linux"