Txt

Byte sized tech know-how.

  • Home
  • About

Tag Archives: remove

26 Sep

Remove Deb Package

Remove a deb package from the system


dpkg -r package_name
admin Posted in Command Line, Linux command, deb, dpkg, filler, Linux, remove, uninstall Leave a comment
06 Sep

Remove www From URL using .htaccess in Apache

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]
admin Posted in Code apache, Code, htaccess, mod_rewrite, remove, www 5 Comments
24 Jul

Delete User

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


userdel -r user1 
admin Posted in Command Line, Linux command, delete, Linux, remove, user, userdel 1 Comment
11 Jul

Remove a Folder from Git

Remove a given folder from a Git repository…


git rm -r cache/
admin Posted in Code, Command Line command, folder, git, reculsive, remove, rm 3 Comments
07 Jul

Remove SVN Info from a Folder

This command removes the SVN data from a folder.


find -name .svn -exec rm -rf {} \;
admin Posted in Code, Command Line, Linux delete, find, remove, subversion, svn 2 Comments
10 Jun

Exclude Removable Partitions from a ‘find’ Search

Search files with ‘.rpm’ extension ignoring removable partitions as cdrom, pen-drive, etc.


find / -xdev -name \*.rpm
admin Posted in Command Line, Linux command, exclude, find, Linux, partition, remove Leave a comment
18 Apr

Remove Empty Characters at End of Lines

Remove empty characters at the end of each row


sed -e 's/ *$//' file.txt
admin Posted in Command Line, Linux end, line, remove, sed, whitespace Leave a comment
23 Mar

Uninstall Using Yum

Use this command to remove a rpm package.


yum remove package_name
admin Posted in Command Line, Linux delete, package, remove, uninstall, yum Leave a comment
07 Feb

Remove Empty Lines

Remove empty lines from a file using sed


sed '/^$/d' file.txt

Original Article

admin Posted in Command Line, Linux blank, command, empty, line, Linux, remove, sed, text Leave a comment
13 Sep

Remove empty directories

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]

admin Posted in Command Line, Linux, Perl command, delete, empty, folder, Linux, Perl, remove Leave a comment

Post navigation

← Older posts

Categories

  • Code
  • Command Line
  • Configuration
  • CSS
  • HTML
  • internet
  • JavaScript
  • Linux
  • Mobile
  • Perl
  • PHP
  • Python
  • Ruby
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Fruitful theme by fruitfulcode Powered by: WordPress
↑