Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [remove]

The tag has no usage guidance.

0
votes
2answers
28 views

SED to search for and delete ip with a partial match

I have various bash scripts that run, they scan log files for folks who try and make mischief, spam us and so on. I have been struggling with this for some days trying to figure this out. I have a ...
0
votes
1answer
38 views

Centos: How to revert to a revert back to an earlier version of a package?

I have installed version 6.4 of filebeat and then I decided to revert back to 1.3. So I used the command 'yum remove filebeat-6.4.0-x86_64.rpm', to remove it, when I try to install filebeat 1.3 I get ...
1
vote
2answers
58 views

Remove 2nd DC role from Exchange 2016

I have an Exchange 2016 server with the DC role installed (server 2016). This DC is the 2d DC. Now a want to remove de DC role from the Exchange 2016 server. I have already installed an 3th DC. Are ...
1
vote
3answers
101 views

remove originally installed linux kernel, when custom one has been deployed

How do I remove last, the originally installed kernel? Goal: I am trying to configure smallest possible linux server install (Debian 9) machine which will be running application server (PHP7) in a ...
0
votes
0answers
52 views

Protect users from accidental delete

I am currently designing an incremental, rotative backup system for a remote filesystem to be accessed over SSHFS. There is this one aspect I still haven't figured out: Protecting the users from ...
1
vote
1answer
2k views

How to remove pacemaker, corosync and pcs thoroughly on CentOS 7?

Using two nodes: node1: 192.168.0.1 node2: 192.168.0.2 Installed HA tools on both servers: yum install pacemaker pcs (It will include install corosync) On both servers: passwd hacluster Set ...
0
votes
2answers
52 views

files with strange chars appeared in /var/wwwroot/html: why and how to delete them

In my /var/www/html many files with strange chars appeared suddenly. Below is a sample. Any idea why they appeared (attack ?, app dump ? file system error ?) and how to remove them (there are other ...
-1
votes
4answers
104 views

Script to delete certain folders based on the time

I need to create a bash script that will remove folders containing backups for specific days. I need to KEEP following: a) files\folders created on FRIDAY @ 23:30 b) files\folders created on the ...
0
votes
1answer
732 views

Does anyone know how to scan through a Java Keystore and remove all the expired certificates?

I have in the past made a list of all the alias's that were expired and then made a forloop in CMD to then go through and remove all of them but I was wondering if anyone knew of a perl script or ...
1
vote
1answer
507 views

Removing a recursive folder that's not recursive in windows fails with “Source Path Too Long”

I seem to have managed to get an Application Data folder recurse into itself somehow, doesn't look recursive but somehow still is and now I find myself unable to remove that folder. The folder itself ...
0
votes
1answer
83 views

How to remove/clear 1000+ files with less CPU intensive cron

I have the following cron setup to clear the tmp folder: 0 0 * * * rm -rf /home/user/tmp/* >> /dev/null 2>&1 However I'm looking for a more efficient way which would be less CPU ...
0
votes
1answer
1k views

How to remove the sound driver from CentOS 7?

I have a centOS minimal installed and it the sound drivers loaded. I would like to remove all the sound drivers from my server. How can I do that? following are the command outputs from my server. ...
1
vote
1answer
921 views

apt-get remove package that didn't install properly

I accidentally installed zabbix-frontend-php that pulled apache2 as a dependency. I don't want to use either, and I want to completely delete both packages. Unfortunately, it seems that apt-get won'...
0
votes
1answer
380 views

Are the packages from apt-get remove --auto-remove sendmail safe to remove?

Im trying to clean up the mess left by sendmail, My unix knowledge is extremely limited so I would appreciate some help with whether these packages are safe to remove, I have already run apt-get purge ...
0
votes
1answer
740 views

Can't remove mongod.lock

all. I want to remove mongod.lock. When I try sudo rm -rf mongod.lock I got this rm: cannot remove ‘mongod.lock’: Read-only file system Can anyone tell me how to force remove it? Thanks, Ami
0
votes
0answers
75 views

Unable to Update-FileDistributionService due to old exchange server entry

I am getting following error when I a trying to update File Distributionservices as shown below. The error pops up with name of my old CAS server which means mailbox server still have entry. Please ...
1
vote
1answer
155 views

Is a HDD removed from RAID 1 bootable?

I'm having a problem with my RAID. It has gone wrong during a power outage of the server. I have a server with 2x 500 GB WD HDDs on Hardware RAID1(SuperMicro Server) with a Linux OS installed on it. ...
-3
votes
2answers
1k views

Remove all files in directory except last 20

I have question why is my cmd for "removing all files in directory except last 20" not working within cron but in command prompt yes. * * * * * ls -1tr /home/testusr/test | head -n -20 | xargs -d '\...
1
vote
2answers
327 views

Best way remove old log without blocking cpu

I have 3 AWS EC2 machines, using each 500G of EBS storage. On them I have SolrCloud search engine running on Jetty, and serving lots of queries. In time the jetty logs have grwn hugely, up to ~200G in ...
0
votes
1answer
121 views

No such file or directory after rpm -e --nodeps packagename instead of command not found

I installed ethtool using yum install ethtool and then removed it using rpm -e --nodeps ethtool because when I tried to remove ethtool with yum it was going to remove a bunch of important dependencies ...
1
vote
1answer
882 views

nginx + regex, remove all parts of URI except the last one

With an URI like /a-part/some-part/another-part/last-part/?some_param=some_value how do I go about removing everything up to the last part with params and ultimately rewrite it to look like /index....
1
vote
2answers
1k views

Remove X-Powered-By: PHP on IIS7

We have a Win2008 server running IIS7 and php 5.3.17 installed. For pentesting & other security purposes we would like to remove the header response: "X-Powered-By: PHP/5.3.17", so we've tried ...
1
vote
2answers
13k views

Uninstall Ruby on Rails on CentOS 6

How can I remove Ruby on Rails and all associated gems? I tried yum remove ruby but get this response: yum remove ruby Loaded plugins: fastestmirror, security Setting up Remove Process No Match for ...
5
votes
3answers
2k views

Unable to list contents/remove directory (linux ext3)

System is CentOS5 x86_64, completely up to date. I've got a folder that can't be listed (ls just hangs, eating memory until it is killed). The directory size is nearly 500k: root@server [/home/user/...
1
vote
1answer
1k views

Can I safely remove _vti folders added by my host or cpanel? [closed]

I notice user accounts on my cpanel server came with some _vti folders installed by default. _vti_bin _vti_cnf _vti_log vti_pvt _vti_txt _private As I understand these are some kind of Front Page ...
1
vote
1answer
1k views

Remove Log off button

I am using a server with Windows Server 2008. I don't want anyone to log off, because it would stop very important programs. But I can't change the Log Off button to anything (the drop down menu is ...
2
votes
1answer
4k views

Exchange 2010: Remove Administrator Mailbox

How can I remove the Administrator Mailbox from Exchange 2010? I don't want to delete the whole user account because I need Administrator to access the Server, but Administrator shouldn't have any ...
0
votes
1answer
101 views

How to remove a line in a file found in multiple directories

There is file that exists in each user profile directory and I need to remove the line from the file in each user profile directory. I'm using a batch script to go through each user profile directory, ...
18
votes
4answers
59k views

Unable to remove user: “user is currently logged in”

When trying to remove the user, it returns "user is currently logged in". I already killed the user using pkill -KILL -u usernameHere and several other commands, but it does not help. How can I ...
1
vote
5answers
2k views

apt-get does not remove initscript?

This day I tried to remove apache2. It's bundled with Ubuntu Lucid, which I don't need. I used apt-get remove apache2 to remove it. But somehow, the initscript was still there, in "/etc/init.d/". I ...
1
vote
1answer
1k views

Automatically delete orphaned SIDs

Does someone know a tool that allows to delete orphaned SIDs on a fileserver without the need for any scripting?
1
vote
2answers
205 views

How to quickly remove a set of outdated packages?

I have a newly installed CentOS 5.7 machine and mistakenly installed PHP 5.1 when I needed 5.2+. Now I cannot seem to install PHP 5.3 (using "yum install php53") until I remove PHP 5.1. I found this ...
2
votes
3answers
25k views

remove squid clearly

I'm hardly trying to remove squid completly, to reinstall it clearly. (Debian 6). So i used as root: apt-get remove --purge squid apt-get remove --purge squid3 but find / -name squid* returns /...
1
vote
2answers
897 views

I cannot remove apache2. /var/www dir is still there. I can still start apache service

I have failed to remove apache2 from my ubuntu server. I did $ sudo apt-get --purge remove apache2 and $ sudo apt-get remove apache2 and $ sudo apt-get autoremove and when I tried to do $ sudo apt-...
0
votes
1answer
132 views

One SQL, lots of SharePoint 2010 Servers, and lots of Databases to clean

I have a dedicated server running SQL server and many web servers running SharePoint 2010 installations. All the SharePoint web servers are using the same SQL server for storing/creating databases. ...
3
votes
2answers
179 views

Can I remove these DNS zones?

I manage a server without a cpanel, I installed Webmin on it. And under Bind settings I have these zones: "Root zone" "0" "0000::1" "127.0.0.1" "mydomain.com" "localhost" "localhost....
1
vote
1answer
217 views

What is the fastest delete method for many directory on Linux

I have to remove many directory. but rm -r /data is so slow ( about some days) /data has /data/a/b/c/d/e/f/g/h .... many dirs Does anyone know?
1
vote
0answers
827 views

linux /dev/sd? read failed

I couldn't find the answer to this anywhere, so I'm posting this in the hope it helps someone else... My scenario was linux system with an external drive that was connected (and mounted) was suddenly ...
17
votes
5answers
5k views

How to remove many (200 000) files?

I must remove 200 000 files (all of them) from a folder, and I don't want to delete the folder itself. using rm, I get an "Argument list too long" error. I've tried to do something with xargs, but I'...
0
votes
1answer
255 views

Re-installing mysql and old database and users appear

I had installed mysql, mysql-server, and mysql-devel via yum: yum install mysql mysql-server mysql-devel I had created some databases and users and ended up breaking some tables, so I attempted to ...
4
votes
3answers
3k views

What is the fastest way to remove thousands of files on a btrfs filesystem?

Currently I have a btrfs mount point with a structure like this:# /mountpoint/month/day/hourAs24/ and each leaf directory contains between 5,000 to 20,000 small files. There I keep the files for ...
2
votes
1answer
252 views

Removing user mailboxes in Exchange Server

I am trying to remove several user's mailboxes in the Exchange Server. Exchange Server is on a member server (OS: Window Server 2003). When I try to remove the Administrator mailbox, it says this: ...
1
vote
3answers
415 views

Remove all files not working with “*”

I want to remove all files and folders in folder /home/user I'm using command rm -rf /home/user/* without success, next I tried: cd /home/user;rm -rf * Which gives the following output rm: cannot ...
2
votes
1answer
109 views

Delete extra . in filename on a OpenVMS system

I've downloaded, with ftp, a file which contains too many .s for a OpenVMS system. swing-layout-1^.0.jar How can I remove the extra dot?
1
vote
1answer
764 views

yum remove doesn't remove things completely?

I am trying to remove apache completely from my server,which is a ec2 instance, running Amazonian linux v2.6xx. Lets assume I have a file in /etc/httpd/conf/xyz.txt I am using the following code : ...
0
votes
2answers
4k views

Removal of old mail logs in ubuntu - rm or not?

I have a ubuntu server which handles mail via postfix. The server has recently been caned by spam emails and the mail logs are really large as a consequence. The logs are stored with timestamps and I ...
-1
votes
3answers
191 views

What options do I have if my linux box is compromised? [duplicate]

Possible Duplicate: My server's been hacked EMERGENCY I have put all security meaures and log monitoring tools. Now but i don't know what to do if find out the there is some rootkit on my ...
0
votes
2answers
4k views

Remove a Linux user with only his UID

I would like to remove (or rename) an Ubuntu user I created but the usual solutions don't work as there is a question mark in the username. $ sudo usermod -l myuser my?user usermod: user 'my?user' ...
5
votes
9answers
12k views

Remove files that are listed in a text file

I have a file that exported a bunch of file names that need to be removed. I need to know how to go about removing each file without having to issue it one at a time at the command line. I've ...
11
votes
1answer
15k views

How can I remove HTTP headers with .htaccess in Apache?

I have a website that is sending out "cache-control" and "pragma" HTTP headers for PHP requests. I'm not doing that in the code, so I'm assuming it's some kind of Apache configuration, as suggested by ...