Linux system commands and Usage Details name: cp permission: All Users usage: cp [options] source dest cp [options] source... directory Description: copy one file to another, or copy several files to another directory. -A tries its best to copy the
Doscommand parameter getting started Tutorial: Explanation of common doscommand parameters in Chinese
Doscommand parameter getting started Tutorial: describes common doscommand parameters in Chinese.
I. DIR command format:
Dir [D:] [PATH] [NAME]
After the first four articles in the "Ten Linux commands rarely known" series are highly appreciated, we will present the last article in this series to readers, although it is the last one, but its importance is no less than the previous
The database files in the/var/lib/RPM directory are queried by rpm. In addition, rpm can also query information in the file. How can I query with RPM? [Root @ Linux ~] # Rpm-Qa [root @ Linux ~] # Rpm-Q [licdr] use the installed package name [root @
Unix Command Line Tricks–part Ihttp://www.cyberciti.biz/open-source/command-line-hacks/20-unix-command-line-tricks-part-i/Deleting a HUGE fileI had a huge log file 200GB I need to delete on a production Web server. My rm and LS command was crashed
/* Purpose: Read a file under a directory * * The directory to read$folder = "H:/temp"; Open Directory$FP =opendir ($folder); Reading Table of Contentswhile (false!= $file =readdir ($fp)){List all files and remove '. ' and '.. 'if ($file!= '. ' &&
FTP Server to save backup files, but also do not need to keep the data every day, so in order to consider saving hard disk space, you must delete some old files, as long as the last week or one months to save theWindows has a batch deletion program,
PHP code Encryption class, we can according to their own needs to modify the original category, such as the next, hope to share to everyone. This is no problem with Ubuntu testing.Class encryption{Private $c = ';//Store ciphertextPrivate $s = ', $q 1
The PHP opendir () function is used to open the directory, usually with the Readdir () and Closedir () functions, to read all the files in the directory (that is, to traverse the directory), and this article tells you that PHP uses the Opendir ()
I like to put other people write good articles on their blog, for fear that others delete ... But the draft does not forget to dig well people, I reproduced the article will definitely write the source, I hope you will be reproduced in the time to
The following command is passed under Ubuntu 12.04 64.
In Linux everything is a file, including folders is a special file, and even devices are files.
View the current system version
Cat/proc/version
#Linux version 3.2.0-29-generic
/*PHP version:28 April 2005Author:move2rentPurpose: Read a file in a directory*/
The directory to read$folder = "H:/temp";
Open Directory$FP =opendir ($folder);
Reading Table of Contentswhile (false!= $file =readdir ($fp)){List all files and remove '
File typellYou can see the file details later:-: General file (internal type is what, with file command)d: Directory, catalog fileb: BLOBK device, block devices file, support random access in "block" units
Major number: The main device ID,
First, OSImportOs#some operations on the operating systemPrint(OS.GETCWD ())#fetch Current Working directoryOs.chmod ('/usr/local', 7)#add permissions to Linux files/directories, bad for Windows, 1 perform 2 write 4 readOs.chdir ('.. /')#Change
Serial number
Command
Description
1
sudo su
Switch from normal user to root user
2
SU user
switch from root user to normal user
3
Ls
Lists the files and directories of
Directory --a directory is a collection of related files -- a directory under which you can store files in addition to other directories, which can contain subdirectories --dos and Linux are used when determining files and directory locations.
ls: View file name and directory, usage: $ ls [option]1. $ lsEnter the LS command directly, listing all files and directories in the current directory, without displaying details such as type, size, date permissions, and so on.2. $ ls-lThe-l option
One, ls command usage:ls List all files under current directory /home list all files in/home directorySecond, ls command parameters -a View all files (including hidden files) -d lists the directory itself instead of files within the
Forfiles
Select the file you want to batch from the folder or tree. Grammar
forfiles [/P Path] [/M searchmask] [/s] [/C Command] [/d[{+ |-}] [{mm/dd/yyyy | DD}]] Argument
/P Path
Specify Path, indicating where to start the search. The default folder
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.