Managing Users and Groups

passwd - Create Passwordgroupadd - Add a Groupgroupmod - Modify a Groupchgrp - Change Groupgroupdel - Delete GroupCommands for Deleting Filesrm: Deletes files and the deleted files can be recovered.shred: Deletes files forever and deleted files can never be recovered.Command for Deleting Foldersrmdir: Deletes folder.The terminal command for deleting file(s) is rm and the format of rm command is:rm [options] [file]If you give wrong file path for rm command it displays an error message and moveon to the next file. Sometimes it also asks for confirmation to delete a file.rm Command OptionsThere are six rm command options.-f

deletes read-only files without any confirmation.

-i Asks for confirmation before deleting every file.

If you use both -f and -i options for rm command, then the one which appears last in the command format (in terminal) is used by rm.-q

Deactivates all the warning messages.

-R or -r Delete directory and files in recursive direction, the specified directory along with its sub-directory and files.-v

Displays the file names on the terminal which is being deleted.

-I

Displays message when you are deleting more than 3 files at a time.

You should never use rm command together with sudo in the following format: sudorm -R /, rm -f /* or sudo rm -r / It deletes all the files and data in the rootdirectory and on all the mounted volumes.shred Commandshred command is also used to delete files form terminal but it overwrite a fileto hide its contents, and deletes the files permanently. By default shred overwrites the files 25 times if an exact number of overwriting if not allowed.The terminal command for deleting file(s) is shred and the format of shred command is: shred [options] [file]