Sponsored Content
Full Discussion: Directory can't remove!
Operating Systems HP-UX Directory can't remove! Post 302878852 by wisecracker on Monday 9th of December 2013 08:56:36 AM
Old 12-09-2013
It looks like you have a DELETE/BACKSPACE character stuck on the end of your directory name.
That is...
Code:
\177

...octal.
It might be worth a long shot to put your directory inside double quotes...
Code:
rmdir -rf "log_old1\177"

Just a thought...

EDIT:

IMPORTANT!!! Take heed of vbe's advice too...

Last edited by wisecracker; 12-09-2013 at 10:06 AM.. Reason: See above...
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

smitty, remove user, remove directory as well..

hi, i am on aix. i used smitty to remove a user.. but then found that its directory still exists.... so i have to remove the directory manually... am i doing it the right way? (2 Replies)
Discussion started by: yls177
2 Replies

2. Solaris

Can't remove a directory

Hello, somehow a directory called -r was created on one of my servers and I can't remove is using either rm or rmdir. Is there a way to remove this directory? Thank you. -David (2 Replies)
Discussion started by: dkranes
2 Replies

3. Programming

Recursive remove directory.

What is the best way to completely remove dir with it's content ??? rmdir deletes only EMPTY dirs as i know. The man page of remove function says "remove() deletes a name from the file system." Can it remove any dir recursively ??? :rolleyes: (7 Replies)
Discussion started by: Trump
7 Replies

4. Shell Programming and Scripting

remove empty directory

Hi, I need to delete an empty directory in a temp directory except "dir5" (keep everything that is not empty). Plese advise. Here is an example of my directory. /dir/temp/ dir1 - delete if this is empty dir2 - delete if this is empty dir3 - delete if this is empty dir4 - delete if this... (7 Replies)
Discussion started by: sirrtuan
7 Replies

5. Shell Programming and Scripting

Remove contents of directory, but not directory

What's the best way to delete everything in a directory, but not the directory itself, without using shell wildcards? (9 Replies)
Discussion started by: pdc
9 Replies

6. Shell Programming and Scripting

how to remove recursilvely from a directory

I can remove blank lines at end of file using following code for files in `ls * 2>/dev/null` do sed -e :a -e '/^\n*$/N;/\n$/ba' $files > newfile mv newfile $files done How can I change above code, so that it recursively executes that code for all files under a directory? (6 Replies)
Discussion started by: ruchimca
6 Replies

7. UNIX for Advanced & Expert Users

Remove directory with exceptions

Hi, I want to remove a directory recursively except the inside directories calles .SYNC (designsync dirs) I am looking for something like: \rm -rf < find . * | grep -v .SYNC The find works ok but I do not know how to redirect it. Please help. Regards, Ziv:rolleyes: (1 Reply)
Discussion started by: zivsegal
1 Replies

8. Shell Programming and Scripting

Remove directory with exceptions

Hi, I want to remove a directory recursively except the inside directories calles .SYNC (designsync dirs) I am looking for something like: \rm -rf < find . * | grep -v .SYNC The find works ok but I do not know how to redirect it. Please help. Regards, Ziv (3 Replies)
Discussion started by: zivsegal
3 Replies

9. Shell Programming and Scripting

Remove Directory

By Mistake i created a directory named "-lrt" in one of my working directories and now i am not able to delete it , please suggest hw to delete this directory now ? Thanks in advance. (1 Reply)
Discussion started by: neeraj617
1 Replies

10. UNIX for Dummies Questions & Answers

How to remove directory of a particular user?

How to remove directory of a particular user (1 Reply)
Discussion started by: pspriyanka
1 Replies
DEV_MKDB(8)						    BSD System Manager's Manual 					       DEV_MKDB(8)

NAME
dev_mkdb -- create /dev database SYNOPSIS
dev_mkdb [-c] [-o database] [directory] DESCRIPTION
The dev_mkdb command creates a cdbr(3) database in ``/var/run/dev.cdb'' which contains the names of all of the character and block special files in the specified directory, using the file type and the st_rdev field as the key. If no directory is specified, the ``/dev'' directory is used. Keys are a structure containing a mode_t followed by a dev_t, with any padding zero'd out. The former is the type of the file (st_mode & S_IFMT), the latter is the st_rdev field. The options are as follows: -c Create a db(3) database for compatibility with libc versions and statically linked programs from before NetBSD 6.0. The default name is ``/var/run/dev.db''. -o database Put the output databases in the named file. FILES
/dev Device directory. /var/run/dev.db Database file. SEE ALSO
ps(1), stat(2), db(3), devname(3), kvm_nlist(3), ttyname(3), kvm_mkdb(8) HISTORY
The dev_mkdb command appeared in 4.4BSD. BSD
June 1, 2012 BSD
All times are GMT -4. The time now is 02:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy