Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

safe-rm(8) [suse man page]

safe-rm(dir)(8) 					      System Manager's Manual						   safe-rm(dir)(8)

NAME
safe-rm - delete files a bit more safely safe-rmdir - delete empty directories a bit more safely SYNOPSIS
safe-rm /path/to/file safe-rmdir /path/to/directory DESCRIPTION
safe-rm deletes files specified with an absolute path name. Files specified with symbolic links in the path name will not be erased. safe-rmdir deletes directories specified with an absolute path name. Directories specified with symbolic links in the path name will not be erased. RETURNS
safe-rm and safe-rmdir returns a non zero return code when it can not erase the file safely. NOTE
These commands are used by the system cleanup cron jobs. SEE ALSO
rm(1), rmdir(1). AUTHOR
SuSE Linux AG safe-rm(dir)(8)

Check Out this Related Man Page

RMDIR(3)								 1								  RMDIR(3)

rmdir - Removes directory

SYNOPSIS
bool rmdir (string $dirname, [resource $context]) DESCRIPTION
Attempts to remove the directory named by $dirname. The directory must be empty, and the relevant permissions must permit this. A E_WARN- ING level error will be generated on failure. PARAMETERS
o $dirname - Path to the directory. o $context - Note Context support was added with PHP 5.0.0. For a description of contexts, refer to "Streams". RETURN VALUES
Returns TRUE on success or FALSE on failure. CHANGELOG
+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 5.0.0 | | | | | | | As of PHP 5.0.0 rmdir(3) can also be used with | | | some URL wrappers. Refer to "Supported Protocols | | | and Wrappers" for a listing of which wrappers | | | support rmdir(3). | | | | +--------+---------------------------------------------------+ EXAMPLES
Example #1 rmdir(3) example <?php if (!is_dir('examples')) { mkdir('examples'); } rmdir('examples'); ?> NOTES
Note When safe mode is enabled, PHP checks whether the directory in which the script is operating has the same UID (owner) as the script that is being executed. SEE ALSO
is_dir(3), mkdir(3), unlink(3). PHP Documentation Group RMDIR(3)
Man Page