Delete User
Tagged with: command, delete, Linux, remove, user, userdel
Thursday, July 24th, 2008 11:10 PM
Delete a user ( ‘-r’ eliminates home directory)
userdel -r user1
Delete a user ( ‘-r’ eliminates home directory)
userdel -r user1
This command removes the SVN data from a folder.
find -name .svn -exec rm -rf {} \;
Removes all exe files in the current directory tree. Useful to clear virus from flash drives.
find . -name "*.exe" -delete
Use this command to remove a rpm package.
yum remove package_name
Force delete a file
rm -f file
Remove comments and blank lines from example.pl
sed '/ *#/d; /^$/d' example.pl
Remove all empty directories within the current directory
find . -type d -empty -exec rmdir {} \;
perl -MFile::Find -e"finddepth(sub{rmdir},'.')"
Delete Empty Directories
http://www.jonasjohn.de/lab/red.htm
[tags]empty,folder,delete,remove,perl,command,linux[/tags]