touch command
Time to create a blank file or set of files: use
Format: touch [options] [file]
parameter |
effect |
-a |
Modify only "access time" (atime) |
-m |
Modify only "modification time" (mtime) |
-d |
Meanwhile modified atime and mtime |
mkdir command
Uses: used to create a blank directory
Format: mkdir [options] folder name (directory)
cp command
Purpose: to copy a file or directory
Format: cp [options] source file destination
parameter |
effect |
-p |
Preserve the original file |
-d |
If the object is a "link file", the "link file" is reserved "of the property |
-r |
Recursive directory continuous replication (for directory) |
-i |
If the target file exists asking to overwrite |
-a |
Corresponds -pdr (p, d, r is the above parameters) |
mv command
Uses: for cutting file or rename the file
Format: mv [options] source [destination path | destination file name]
rm command
Uses: used to delete files or directories
Format: rm [options] files
dd command
Purpose: conversion means for copying a file or file according to the data block size and the specified number of
Format: dd command
Example usage:
Remove the block from a 560M / dev / zero device file, then save the file named 560_file
Command: dd if = / dev / zero of = 560_file count = 1 bs = 560M as shown in FIG.
Dd mirror file using the command production
命令 : dd if=/dev/cdrom of=REHL-server-7.0-x86_64-LinuxProbe.com.iso
file command
Purpose: Check file types
Format: file filename