First, create a file touchTouch file1 Create an empty fileThe touch command can also be used to change the access time and modification time of an existing file without changing the contents of the fileTouch File1File1 file modification time has
Linux File touch command and file Timestamp1. Check the time attribute of the file before naming touch. Run the stat command to view the File: [root @ localhost test] # stat f1 File: 'f1' Size: 34 Blocks: 8 IO Block: 4096 regular fileDevice: fd00h/64
The Linux file has three time attributes:
1) Mtime: file content Last modified time
2) CTime: File state changed time, such as permissions, properties were changed
3) Atime: File content is accessed time, such as cat,less, etc.
By default, LS
Linux touch command is generally used to change the date and time of a document or directory, including the access time and change time, or to create a new file that does not exist. 1. command format: touch [option]... file... 2. command parameters:-
Linux files have three time attributes: 1) mtime: The last modification time of the file content; 2) ctime: the time when the file status changes, such as permission and attribute changes. 3) atime: the time when the file content is accessed, such
Linux touch command is generally used to change the date and time of a document or directory, including the access time and change time, or to create a new file that does not exist. 1. command Format: touch [Option]... file... 2. command Parameters:-
Linuxtouch & amp; & gt; The touch Command has two functions: 1. refresh the last modification time and access time of the file or directory to the current time (the existing file or directory) www.2cto. com2. create a file touch [-option] file touch/
Build the Rsync server architecture under centos6.x;1. Install rsyncYum Install-y rsync2.rsync configuration fileRsync server involves three configuration files: rsync.conf rsync.secrets RSYNC.MOTD#创建配置文件目录; Mkdir/etc/rsyncd#rsync service general
RHCE Study Notes 2 -- command line operation File1. Create and delete a file (touch, rm) touch xxxx create a new empty file touch-t 201412250101 xxxx create a file and specify the time attribute (year, month, day, And hour. seconds) [root @ cai home]
Common Centos commands 1. Directory commands ls & mdash; function description: displays the list of files and directories. & Mdash; command format: ls [parameter] [& lt; file or directory & gt; & hellip;] & mdash; common parameters:-: do not hide
Shell IntroductionShell: Shell (different from: core)a shell in the ordinary sense is a program that can accept user input commands. It is called the shell because it hides the details of the lower operating system. Bourne-again Shell (bash): One of
Set mysql automatic backup in CentOSCreate backup Folder: mkdirmysql_data_bak script file: touch autobackupmysql. sh www.2cto.com open the file vi autobackupmysql. sh adds the following content to the script: filename = 'date + % Y % m %
Whether or not a system is secure or not, or if there is a problem but the cause cannot be found, the first thing that comes to mind is log management and how to view logs.
Log Management;
System log configuration file/etc/syslog. conf
Start Log
I. verification of username and password created based on htpasswd 1. create the user name and password file touch-f/tmp/shou /. passwdhtpasswd-B/tmp/shou /. passwdshoutest1234 ※htpasswd command usage reference: http://www.linuxidc.com/linux/2012-11/
Create a backup folder for mysql automatic backup in linux: mkdir mysql_data_bak script file: touch autobackupmysql. sh www.bitsCN.com open the file vi autobackupmysql. sh adds the following content to the script: filename = 'date + % Y % m % d'/usr/
1. Find files for a time periodIn a directory, there are many files, just want to find the December 1 to December 31 documents, how to find?First manually found in this time period of the earliest files, such as 1.txt is December 1 0:1 created, and
Linux touch &> the touch command has two functions: 1. refresh the last modification time and access time of the file or directory to the current time (the existing file or directory) www.2cto.com 2. create File touch [-option] File touch/tmp/test-a
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.