Learn about Linux commands today: the RmDir command. RmDir is a commonly used command, the function of which is to delete an empty directory before a directory is deleted must be empty. (Note that the Rm-r dir command can be used instead of rmdir,
To Create a directory: mkdir can be created as an absolute path, that is, starting from the root.You can also write a path relative to the current directory.of course directories can be viewed using PWDwe want to create a 111 directory under
Define and use the unlink () function to delete a file. If successful, returns True, which returns false if it fails. The syntax unlink (filename,context) parameter describes the filename required. Specifies the files to be deleted. The context is
PHP comes with rmdir, can only delete empty directory, this rrmdir can be recursively delete directories and all files under the directory, but use to be careful oh, do not delete all the filesfunctionRrmdir ($dir) {if(Is_dir($dir))
A LS command1. [[email protected] ~]# Ls-l listing the details of the fileTotal Dosage 4-RW-------. 1 root root 1695 May 03:22 anaconda-ks.cfgThe first column is permissions, and the second column has several files that use the Inode. The third
One, Iife explain the full spelling imdiately invoked function expression, immediately execute the functional expressions. As shown in the following code, it is an anonymous immediate execution function: (function (window, undefined) {//code ...})
Use pear to install php extensions on windows use pear to install php extensions on windows related websites: http://www.php.nethttp: // pear. php. nethttp: // pear2.php. nethttp: // pecl. php. netpear2 needs to use sqlite3 to execute the command: 1
Linux File Creation commandWe often have to create some documents to add content or to create a file directory to organize the file collation, so we need to get familiar with the command created, the Linux file Creation command basically has the
Use pear to install php extensions on windows use pear to install php extensions on windows related websites: www. php. netpear. php. netpear2.php. netpecl. php. netpear2 needs to use sqlite3 to execute the command: 1. phpD: phpphp5.3.5pyrus.
Here are a few functions for you to reference.
Example one:
Copy Code code as follows:
function Deletedir ($dir) {
if (!handle= @opendir ($dir)) {//detect if the directory you want to open is present
Die ("No such catalogue");
}
Absolute and relative Linux paths
The absolute path in Linux is from the root directory. For example,/dev/somedir /..
The relative path starts from the current directory ./
There are four relative paths:
Current
Here are a few function references for you.
Example one:
Copy the Code code as follows:
function Deletedir ($dir) {if (!handle= @opendir ($dir)) {//detects if the directory to open existsDie ("No such directory");}while (False!== ($file =readdir
Common linux commands and common linux commands
1. Change the group to which the chgrp belongs:
For example, change the group of install. log to users.
chgrp users install.log
ls –l
View results: root users 68495 25 install. log
Owner
Connect to the above: http://blog.csdn.net/shallen320/article/details/44915649The above describes how to find the QT program patience, how to use NSIs and. zip files to make a simple compression package. The method used above makes the installation
We know that the directory structure of Linux is tree-like structure, the top-level directory is the root directory/.Other catalogs can be mounted to add them to the tree, and they can be removed by lifting the mount.Before starting this tutorial we
One, 360 advanced file Grinding device
Second, the file is too big, delete very slow, no relationship, use the command below to try!1. Click start → run, type cmd in the Open box, click OK, and open the Command Prompt window.
2. At the command
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.