Category

Operating Systems

Users, Groups and Permissions in Linux

Users Add a user : sudo adduser <userName> Delete a user : sudo userdel <userName> All the user detail about users are saved in /etc/passwd file Change the password : sudo passwd <userName> Groups Add a group : sudo groupadd <groupName> Delete a group : sudo groupdel <groupName> Adding a user to a group : sudo adduser <userName> <groupName>…

Read More

Linux Commands

Find the operating system Kernal version: uname -a Find the exact Linux distribution: lsb_release -a Display the current user: echo $USER Change the user : su – username Change to root user : sudo su Find all ports currently listening : netstat –listen How to uninstall a program List out the packages dpkg –list To uninstall and remove all the config files sudo…

Read More