Remove Deb Package
Remove a deb package from the system
dpkg -r package_name
Remove a deb package from the system
dpkg -r package_name
This htaccess code will remove the ‘www’ part from the url. It uses the mod_rewrite module of apache to re-write the url – so make sure that’s installed.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.domain.com[NC]
RewriteRule ^(.*) http://domain.com/$1 [R=301,L]
Delete a user ( ‘-r’ eliminates home directory)
userdel -r user1
Remove a given folder from a Git repository…
git rm -r cache/
This command removes the SVN data from a folder.
find -name .svn -exec rm -rf {} \;
Search files with ‘.rpm’ extension ignoring removable partitions as cdrom, pen-drive, etc.
find / -xdev -name \*.rpm
Remove empty characters at the end of each row
sed -e 's/ *$//' file.txt
Use this command to remove a rpm package.
yum remove package_name
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]