How do I delete / remove user account from my server? How do I delete a user account under Linux operating systems include home directory and running cron jobs?
Usually the particular user (person) can be left from the company or block the access from the Linux servers based on company policy are common in every company. In this article, I will guide to delete a user account and related files from the user account under the Linux operating system by using the userdel command. The userdel command must be run as a root user on Linux. What is Linux?What is Linux? Linux is an operating system just like Window... More
Linux Delete / Remove User account command syntax
userdel [options] username
// Delete a user account
userdel username
// Delete a user account with home directory and mail spool
userdel -r username
userdel linux command examples
Let us assume to remove the user account gowri from the local Linux system / server / workstation, enter:
// Delete a user account
userdel gowri
// Delete a user account with home directory and mail spool
userdel -r gowri

Related Posts
-
How to create new user account with home directory in Open SUSE LinuxTo create a new user account in Open suse, please use the below command. # useradd -g usergroup -p testpwd -d /home/testuser -m testuser Where, usergroup - With primary group /home/testuser - Home directory testuser - Login name testpwd - Password More information: useradd [options] LOGIN useradd -D useradd -D [options] Options for create…
-
How to enable / disable / deactivate user account in Samba server - smbpasswdSamba server is a free software of Server Message Block networking protocol. Mainly used for sharing files and print services among the network systems. Samba server contains own user management to access the files, adding a new user, deleting the existing user, enabling user account or deactivate / disable the…
cal - How to get monthly and yearly calendar in LinuxThe "cal" command displays a simple calendar with Linux / UNIX date and time. If no argument passed, then the current month is displayed. Month can specified as a number from 1 to 12. "cal" command without argument to get monthly calendar: Monthly calendar "cal" command with argument to get…
-
cd command in Linux / Unix'cd' is a Linux command to change the current working directory or folder of the terminal (Shell). Syntax: # cd [directory / folder name] cd: cd [-L|[-P [-e]]] [dir] Change the shell working directory. Change the current directory to DIR. The default DIR is the value of the…
-
Find out what Perl modules already installed on Linux SystemUse 'instmodsh' command to get a complete list of installed Perl modules on your Linux system and it provides an interactive shell type interface to query details of locally installed Perl modules. Open your terminal and type the following command: instmodsh Now, you will get the list of available commands…
-
Linux command to list out all installed fonts: fc-listfc-list lists fonts and styles available on the system using fontconfig. You can use fc-list to find out whether particular language font is installed or not. In this tutorial, I will show you how to list all installed fonts and also how to list installed fonts for a particular language…
-
How to get / list out installed PHP extension in Linux OSLinux widely uses operating system in the server side and client side. Operating system provides flexible options to install our custom packages and extensions based on our project requirement. Additionally, we can write our own shell scripts to automate our projects. PHP is used mainly in server-side application software along with various…
Linux finding largest files in directory recursively - find,sort,headLinux Find command is used to search and locate the list of files and directories based on conditions you specify that match the arguments. The procedure to find the largest files in a directory recursively using find command is as follows: Open the terminal applicationLogin as the root user using…
-
-