/boot: System boot related files, such as kernel, INITRD, and Grub (bootloader)/dev: Device filesBlock devices: Random access, data blocksCharacter Devices: Linear access, by character/etc: Configuration file/home: The user's house directory, default is/home/username/root: Administrator's home directory/lib: library fileStatic Library. ADynamic library. dll,. So (Shared object)/lib/modules: Kernel module fi
There are some files and directories under the current directory, each of which has several. txt files in each directory.It is now required to create a new directory in the current directory all, and all of those directories will have a. txt fileare copied to the directory all. The shell script in ubuntu12.04 is implem
Status: At the time of the system partition, home and root directory is about 25GB, suddenly found that the home directory is not enough, so decided to go to the root directory of some space to move to the homeMain method: Use GParted's Live USB method.Method: (1) According to the method described earlier, build a USB(2) Boot, boot, enter the USB boot (my is to h
Today bored to practice the PHP traversal file directory program, wrote the following two programs, but the quality is not very good, Pat ~ ~ ~ ~
1, clear PHP cache files
Copy Code code as follows:
function Read_dir ($dir, $file)
{
$a =strpos ($file, ". php");
if ($a >0)
{
Unlink ($dir. $file);
echo "Delete $dir $file return true;
}
if (Strpos ($file, ".") = = 0 | | Strpos ($file, ".")! = = false) return true;
if (Strpos (
Directory Listing DeniedThis Virtual Directory does isn't allow contents to be listed.is an issue where directory permissions cannot be accessedSolution:Right---rights---add--Advanced--click on the search results inside everyone-> OK--click Full Control (to the big point permission)-OKDelete Default document, properties--------------------add document to index.ht
On-premises adds deployment integrates with cloud services:There are two ways to extend adds to the cloud. One is through Windows Azure AD, the other is a server that installs Windows 2012R2 on a Windows Azure virtual machine, and then promotes the server to a DC.What is Windows Azure AD?Windows Azure AD is a Windows Azure-based service that is used to provide ID management and access control to applications on the cloud. Windows Azure AD is typically used when you subscribe to some of the servi
(1) Take the current working directory:Related functions: Get_current_dir_name, GETWD, chdirHeader file: #includeDefine function: char * GETCWD (char * buf, size_t size);Function Description: GETCWD () copies the current working directory absolute path to the memory space referred to in parameter buf, and the parameter size is the space size of BUF.Note:1, when calling this function, buf refers to the memory space is large enough. If the string length
Looping through the creation of directory methods
This will generate the Image.gif directory
Copy CodeThe code is as follows:
$filepath = "Test/upload/2010/image.gif";
Mk_dir ($filepath);
Looping through the creation of catalogs
function Mk_dir ($dir, $mode = 0755)
{
if (Is_dir ($dir) | | @mkdir ($DIR, $mode)) return true;
if (!mk_dir (DirName ($dir), $mode)) return false;
Return @mkdir ($dir, $mode);
}
1 Configuring the Site Directory, take Ubuntu as an example1) Open the default configuration folder for Apache: cd/etc/apache2/sites-available2) Open config file, this machine is sudo vi 000-default.conf3) Modify the path> ServerAdmin [email protected] /data/test errorlog ${apache_log_dir}/error.log customlog ${apache_log_dir}/Access.log combined 2 Configure the virtual directory
Turn from: [Original]asp.net MVC Multi-level controller routing rewrite and multi-level views directory to find the rules of view
In order to better control views of the page storage, and controller readability, need to separate multi-level directory to store.
1. Then we'll look at the way we need access, such asIf we want to access the admin under the TestController Index page, then we enter
Requirement: Read the file name and directory name under the specified directoryThe implementation is as follows: PackageCom.test.common.util;ImportJava.io.File; Public classReadFile {/** Read the file name and directory name under the specified path*/ Public voidgetfilelist () {File file=NewFile ("d:\\"); File[] FileList=File.listfiles (); for(inti = 0; i ) { if(Filelist[i].isfile ()) {Stri
#!/bin/bashif[-e$1]then echo "Directory exists" else{ echo "Directory does not exist, whether create 1 is 2 No" read-p " Please enter 1 or 2: "mulu if[ $mulu -eq1] then mkdir$1 elif[ $mulu -eq2] then exit0 fi }fiCommand Directory AddressThis article is from the "Tommy Lin" blog, so be sure to keep this source http://linyingyong.blog.51cto.com/6609544/1794
/** * Write a program to copy all the. java files in the D:\java directory to the D:\jad directory and change the extension of the original file from. java to. jad.
* *: The Listfiles method accepts a FileFilter object, the FileFilter object is the policy object of the filter, and different people provide different filefilter implementations, that is, different filtering strategies are provided.
* * */pa
Steps1Get the path to the SD cardFile root =environment.getexternalstoragedirectory ();2Determine the path to the file to be writtenString path =root.getabsolutepath () + "/test2" + "/TEST3";3and turn the path into file.File file =new file (path);4 Creating a DirectoryFile.mkdir ();5 write the specified file in the specified directory aboveFile File1 = new file (file, "Test.png");Be sure to pay attention to the difference between path and file, and mu
Project is based on the development of thinkphp, there is a requirement is to be the project's Lib directory into the Phar package, and then directly replace the package to facilitate the program upgrade, Phar Package I find online tutorials can be called out, but the Phar package into the directory, there is a problem, I also know that routing is not access to the file problem, but I do not know how to pro
A website about mobile phone, with WordPress base board.
The original htacess is placed in the main directory/var/www/html
Rewriteengine onrewritebase/rewriterule ^items/products/(\d+)/(. *)? $ items/products.php?number=$1name=$2 [QSA , L]rewritecond%{request_filename}!-frewritecond%{request_filename}!-drewriterule. /index.php [L]
Create a new. Htacess in sub-directory '/var/www/html/2014
PHP Gets the current directory relative to the domain name, PHP gets the current directory
This article reproduced from:??? Http:[email protected]/blog/static/166335404201122322635868/
?
?
http://127.0.0.1/dev/classd/index.php/downloadFor example, this address, I want to get the address of the red zone for the link within the generated station, named BaseURL.With $_server[' Script_name '), $_server[' Scri
1, first look at the scriptCat recursive.sh#!/bin/shRead-p "Input path:" FilePathfunction Getallfiles () {For file inls $FilePathDoIf [-f $file]ThenEcho $fileMV $file/bak_file/Elif test-d $fileThenecho "-------------------------------->"CD $fileFilepath=pwdGetallfilesCd..Echo-e "\033[32m[############ $file is a directory .... #######]\033[0m"echo "Elseecho "$FilePath is a invalid path"FiDone}CD $FilePathGetallfiles $FilePath2, test, now say all files
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.