Posts Tagged With: delete

Delete User

Tagged with: , , , , ,

Delete a user ( ‘-r’ eliminates home directory)


userdel -r user1
No Comments »

Remove SVN Info from a Folder

Tagged with: , , , ,

This command removes the SVN data from a folder.


find -name .svn -exec rm -rf {} \;
1 Comment »

Remove all EXE files

Tagged with: , , , , , ,

Removes all exe files in the current directory tree. Useful to clear virus from flash drives.


find . -name "*.exe" -delete
2 Comments »

Uninstall Using Yum

Tagged with: , , , ,

Use this command to remove a rpm package.


yum remove package_name
No Comments »

Force delete a file

Tagged with: , , ,

Force delete a file


rm -f file
No Comments »

Remove Empty Lines and Comments

Tagged with: , , , ,

Remove comments and blank lines from example.pl


sed '/ *#/d; /^$/d' example.pl
No Comments »

Remove empty directories

Tagged with: , , , , , ,

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]

No Comments »