Use the mkdir command to create directories and subdirectories under Linuxnow that we've listed the entries in the directory with the LS command, we're going to learn how to create a directory under a Linux system. Under Linux, we can use the mkdir
1, determine whether the file exists, does not exist to create a file[Java]View Plaincopyprint?
File file=new file ("c:\\users\\qping\\desktop\\javascript\\2.htm");
if (!file.exists ())
{
try {
File.createnewfile ();
} catch
What is mkdir?Mkdir is a command to create a directory under a Linux system. This command is part of the built-in command.Run the mkdir commandYou can use it by typing mkdir directly in your console.
$ mkdir
By default, running the
1 command function (brief description):Used to create a directory that requires the user who needs to create the directory to have write permissions in the current directory, and that the new directory cannot be a directory that already exists for
Common Linux commands: mkdir and linuxmkdir
Link: http://www.cnblogs.com/MartinChentf/p/6076075.html (reprinted please indicate the source)
In Linux, The mkdir command is used to create a directory or a cascading directory.
1. Command Format
Mkdir
In some PHP built-in functions (such as mkdir), adding @ at the front can mask the error thrown by the function, so how does the custom function do this? I tried the throw. New exception and Trigger_error cannot be added by the @ Mask: So, for
The mkdir command is used to create the directory. This command creates a directory named by DirName. If no pathname is added before the directory name, the directory specified by DirName is created under the current directory, and if an
This article link: http://www.cnblogs.com/MartinChentf/p/6076075.html (reproduced please specify the source)In a Linux system, the mkdir command is used to create a directory or a cascading directory.1. Command formatmkdir [Options] Directory name2.
Implement code One,
#!/bin/sh # to
determine if a file exists
# link:www.jb51.net
# date:2013/2/28
mypath= '/var/log/httpd/
' myfile= ' Var/log/httpd/access.log "
# Here's the-x parameter to determine if $mypath exists and has executable
2015-06-25 created1. Summary:The Linux mkdir command creates the specified directory if these directories do not exist.2. Command format:mkdir [OPTION] ... DIRECTORY ... English: mkdir [options] ... Directory...3. Common examples:mkdir AAA
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.