The Linux Find command searches the directory structure for files and performs the specified actions. Linux Find command provides quite a lot of search conditions, powerfulFind common Command parameterscommand options:-name Find files by file name.
File: View files TypeFile Common Command parametersUsage:file [OPTION ...] [FILE ...] Determine type of FILEs. --help Display this Help and exit-v,--version output version information and exit-m,--m Agic-file list Use list as a colon-separated
The find command passes the matched file to the Xargs command, while the Xargs command fetches only a subset of the files instead of allXargs to process the file if not at the end, you need to add-I this parameterXargs Common Command ParametersThe
Linux under the use of VIM to open the configuration file garbled, in the terminal input: "lang=" can be.To see if the port is occupied:NETSTAT-ANP | grep PortNetstat-ltnLsof-i:portShell script Command list:$# is the number of arguments passed to
Script learning has not been the discipline, before all swallowed-style learning, now decided to comb the next idea, to see exactly where is the weakness. Before asking an architecture Normal University God, ask the shell script how to learn, others
SYSTEMD is an init software under Linux, developed by Lennart Poettering, whose development goal is to provide a better framework to represent the dependencies between system services, and to implement parallel start-up of services when the system
Linux directory structure:==============================[[email protected]/]# lsBin Data etc Lib Media newdir proc run split_dir sys usrBoot Dev home lib64 mnt opt root sbin srv tmp varFor the CentOS directory structureBin: Commands used by ordinary
Workaround:sudo chattr-i fileIn the Perform chmod operation:sudo chmod a+x filechattr command to change file propertiesGrammar:Chattr (option)8 modes:A: Let the file or directory for additional purposes only; B: Do not update the last access time of
OK, we all know that Linux crontab can be set to perform tasks on a timed basis.* * * * *But the minimum is to perform a task every minute, before the interview Mo Mo also was asked once every second how to write, vaguely remember the answer is */1,
Online Enquiry and Help commands (2) Mans View command Help, Dictionary of commands, more complex and info, but not commonly used. Help See Help for Linux built-in commands, such as CD commands.File and Directory operations commands (18)LsFull
Cd
Ls
Pwd
Clear
chmod
Chown
Chattr
Useradd
Userdel
Groupadd
Vi/vim
Cat
More
Less
Mv
Cp
Rm
RmDir
Touch
Ifconfig
IP addr
Ping
Route
Echo
Wc
Expr
Bc
ln
Head
Tail
W.H.O.
Hostname
Top
Df
Three parsing methods for DNS parsing of Llinux:1, the local DNS domain name resolution: vim/etc/hostsAdd rule: (for example) 10.10.10.131 www.fangwenchen.com2. Network card Configuration file DNS service
dd 转换或复制文件Syntax format: DD "option" dd [option]Note: There must be at least one space between each element in the DD command and in the following optionsOption Description:
parameter Options
Explanatory notes
w 显示已登录用户信息Syntax format: w "option" "User" w [options] [user]Attention:
The W command and the following options and users must have at least one space between each element
The user parameter is the information that displays the
The following instructions have been tested under CentOS 7 64bit, please post a message if you have any questionsThis post will supplement and update the content on a regular basis.First, user operation1. View User cat/etc/passwd
4.5 disk formatting (top)Linux default partition system, CENTOS6 previously used ext file system, CENTOS7 is XFS file system, use mount to view/dev/file system typeFile system format, file system format can be ext3, ext4 or XFS type, an empty file
Click Back to learn the path of the Linux command line and shell script3.6-Files View command file cat more less tail headlsThe command is used to display a list of file directories, Windows similar to the commands under the system DOS dir . When
Click Back to learn the path of the Linux command line and shell script3.5-Directory Processing command mkdir rmdirlsThe command is used to display a list of file directories, Windows similar to the commands under the system DOS dir . When you
LSBLK Viewing block devicesFDISK supports MSDOS, and GPT (not recommended) is recommended for use in CENTOS7. InteractiveFDISK-L View partition information for all hard drivesFdisk-l/DEV/SDA View partition information for a specified hard
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service