explain_rmdir_or_die(3) Library Functions Manual explain_rmdir_or_die(3)NAME
explain_rmdir_or_die - delete a directory and report errors
SYNOPSIS
#include <libexplain/rmdir.h>
void explain_rmdir_or_die(const char *pathname);
DESCRIPTION
The explain_rmdir_or_die function is used to call the rmdir(2) system call. On failure an explanation will be printed to stderr, obtained
from explain_rmdir(3), and then the process terminates by calling exit(EXIT_FAILURE).
This function is intended to be used in a fashion similar to the following example:
explain_rmdir_or_die(pathname);
pathname
The pathname, exactly as to be passed to the rmdir(2) system call.
Returns:
This function only returns on success. On failure, prints an explanation and exits.
SEE ALSO rmdir(2)
delete a directory
explain_rmdir(3)
explain rmdir(2) errors
exit(2) terminate the calling process
COPYRIGHT
libexplain version 0.52
Copyright (C) 2008 Peter Miller
explain_rmdir_or_die(3)
Check Out this Related Man Page
explain_remove_or_die(3) Library Functions Manual explain_remove_or_die(3)NAME
explain_remove_or_die - delete a file and report errors
SYNOPSIS
#include <libexplain/remove.h>
void explain_remove_or_die(const char *pathname);
DESCRIPTION
The explain_remove_or_die function is used to call the remove(2) system call. On failure an explanation will be printed to stderr,
obtained from explain_remove(3), and then the process terminates by calling exit(EXIT_FAILURE).
This function is intended to be used in a fashion similar to the following example:
explain_remove_or_die(pathname);
pathname
The pathname, exactly as to be passed to the remove(2) system call.
Returns:
This function only returns on success. On failure, prints an explanation and exits.
SEE ALSO remove(2)
delete a name and possibly the file it refers to
explain_remove(3)
explain remove(2) errors
exit(2) terminate the calling process
COPYRIGHT
libexplain version 0.52
Copyright (C) 2008 Peter Miller
explain_remove_or_die(3)
Hi, I don't see my new post, so I am post it again:
I am having hard time to delete a directory:
$ rmdir testdxdwdw
$ rm -r testdoxdwdw
rm: testoxdwdw non-existent
$ rm vtestoxdwdw
No such file or directory
$ rm -rf vtestoxdwdw ### still don't work
Thanks! (0 Replies)
Hi,
I am having hard time to delete a directory:
$ rm -r testoxdwdw
rm: testoxdwdw non-existent
$ rmdir testoxdwdw
rmdir: testoxdwdw: No such file or directory
$ rm -rf testoxdwdw
Thanks! (2 Replies)
Hi, Any command or means to delete a director which is not empty
rmdir or similar
iam using Sun Solaries 2.6 :confused:
I have many full directories with subdirectories and I can not go on emptying them all (5 Replies)
I have some files that appear to have no inode numbers. To complicate the matter, the filenames have UTF8 (I think) characters.
I am trying to delete them. In fact, and this might make things easier, I'm trying to delete their parent directory.
I don't know what to try next, please help.
... (5 Replies)
Bonjour,
J'ai un répertoire /travail qui est vide.
je lance dans une console
cd /travail
puis
rmdir aa 2>&1 > /dev/null
et s'affiche alors " rmdir : aa :Aucun fichier ou répertoire de ce type."
J'essaie de comprendre :
rmdir aa 2>&1 redirige 2 vers 1 donc le message d'erreur vers... (4 Replies)
Hello,
I'm looking for a way to use PSFTP or PSCP, executed from a batch file in Windows, to delete an entire folder and its contents. I can run a script using PSFTP which can use rm or rmdir, but the -rf command doesn't work. Any suggestions on another client to use in the same context, or a... (2 Replies)
Friends,
I have accidently, as root, created a directory gabsf under /home. Now I cannot delete this thing, I have tried rm and rmdir, as well as explicit path name, but it is really undeleteable. Here is what ls -l says.
# ls -l /home
total 6
drwxr-xr-x 2 dawood dawood 2 Sep 5... (3 Replies)
Hi
How to completely delete directory with all it contents
I try to use rmdir -r but it give error
Thanks
---------- Post updated at 03:10 AM ---------- Previous update was at 02:52 AM ----------
Hi all
I got the solution for my thread
i use mkdir with the option -p
Thanks (1 Reply)