≡ Menu

rm command

UNIX: Recursive Delete Directory / Files

How do I delete (remove) a directory called $HOME/foo and its content including all files and sub-directories under Unix like operating systems? What is the best way to completely delete /tmp/foo/ with all it's content?
[click to continue…]

I'm running the Mediawiki software under Apache web server running on the Unix operating systems. I'm getting the following in my php error log:

PHP Fatal error: Cannot redeclare wfProfileIn() (previously declared in /var/www/html/wiki/includes/profiler/Profiler.php:14) in /var/www/html/wiki/includes/ProfilerStub.php on line 25.

How do I fix this problem under Mediawiki version 1.18.0?
[click to continue…]

Linux / UNIX: HowTo Empty Directory

How do I empty a directory (delete all files) under Linux / Unix without deleting directory itself?
[click to continue…]

How do I delete old yum repositories and configuration files under RHEL 5 or CentOS Linux server?
[click to continue…]

When I run 'yum install package' or 'yum update' commands the yum command works normally until Running Transaction Test and hangs until the yum process is killed manually using the kill command. How do I fix this problem under CentOS Linux 5.x AMD64 running on HP server?
[click to continue…]

Unix / Linux: Remove Nonempty Directory Command

I am trying to remove a directory called /opt/source/httpd with the rm command. I am greeted with the following message:

rmdir: failed to remove `/opt/source/httpd': Directory not empty

How do I delete directory called /opt/source/httpd under Linux or Unix operating systems?
[click to continue…]

Debian Linux Delete Directory Command

I am new to Debian Linux and bash shell command line. How do I delete or remove a directory using bash prompt?
[click to continue…]