To delete a user in Linux, you can use userdel command. Refer below syntax:
$ userdel [options]
Example:
$ userdel anil
To remove the user’s home directory pass the -r option to userdel:
$ userdel -r anil
Default values of userdel command are taken from configuration file /etc/login.defs for RHEL (Red Hat) based distributions. Debian and Ubuntu Linux based system use /etc/deluser.conf file:
The sort command is used to sort the contents of a file. You can sort the data in a text Read more
sed, short for "stream editor", allows you to filter and transform text. A stream editor is used to perform basic Read more
Cron is the system process that will automatically perform tasks for you according to a set schedule. The schedule is Read more
To extract archive file in Linux, you can use the tar command, used for extracting content from the archive files. "tar" Read more