≡ Menu

rm command

CentOS / RHEL: Delete Old Yum Repositories and Configuration Files

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

yum Command Hangs on Running Transaction Test Message Error and Solution

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…]

Linux/UNIX: Move File Starting With A Dash

In Unix or Linux operating systems, how do I move file(s) starting with a dash (e.g., /home/you/--filename.txt or /home/you/-filename.txt)?
[click to continue…]

Linux / UNIX: For Loop To Remove Files

How do I use a for loop in Unix to remove files?
[click to continue…]

Removing a Directory In Linux

How do I remove a directory in Linux using the shell prompt?
[click to continue…]

UNIX / Linux: Delete All Files Using rm Command

How do I delete all files in UNIX or Linux stored in /home/you/letters/ directory?
[click to continue…]

E: Archive directory /var/cache/apt/archives/partial is missing Error and Solution

I'm trying to install mysql-server package under Debian using the following command:

apt-get install mysql-server-5.0 mysql-common

But I'm getting an error which read as follows:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libdevel-symdump-perl liburi-perl libhtml-parser-perl libapr1 libhtml-tree-perl libpq5 libhtml-tagset-perl libwww-perl
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libdbd-mysql-perl libmysqlclient15off mysql-client-5.0
Suggested packages:
The following NEW packages will be installed:
libdbd-mysql-perl libmysqlclient15off mysql-client-5.0 mysql-common mysql-server-5.0
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
E: Archive directory /var/cache/apt/archives/partial is missing.

How do I fix the problem?
[click to continue…]

Linux Disable Wireless Networking ( Wi-Fi )

We have over 20+ Dell Precision M6400 laptops pre installed with Red Hat Enterprise Linux version 5.x. I was asked to disable Wi-Fi on all laptops as it poses a serious security risk to our sensitive (classified) systems and networks. How do I disable wireless networking (802.11) under Linux?
[click to continue…]