userdel

>Usage

The userdel command removes a user account from the sistem.

>Synopsis

userdel [option] username

>Options

-r

This option deletes the user's home directory and all the files owned by the user in its home directory.

Example:

Dots

-zsh

> userdel -r test_user


#this command doesn't return an output.

-f

This option forces the deletion of the user account, even if the user is currently logged in or if there are files in the user’s home directory.

The files that are contained in the home of the removed user are not removed.

Example:

Dots

-zsh

> userdel -f test_user


#this command doesn't return an output.

>Quiz

Progress: Question ? out of ?

Question Title

Page written by Gabriele Siliprandi