The default grep searches all files, including files under Hidden folders. The --exclude-dir= parameter of grep is to exclude a directory, which does not contain the directory after the equals sign, so we can use this parameter to remove the
These days in the process of making a login, you need to screen the input password, Baidu, found two methods, first put the first method,1#include 2#include 3 intMain ()4 {5 Char*password;6Password=getpass ("input passwd");7printf"Password
To view the Linux version: $cat/proc/version Linux version 3.11.0-15-generic ([email protected]) (GCC version 4.6.3 (Ubuntu/linaro 4.6.3-1ubuntu5)) #25 ~precise1-ubun Tu SMP Thu Jan 17:39:31 UTC 2014 $uname-ALinux mtkswgap17 3.11.0-15-generic #25
Method 1:Synchronizing with a known time serverCopy the code code as follows:Ntpdate time.nist.govWhere time.nist.gov is a time server.Delete local time and set time zone to ShanghaiCopy the code code as
An example of a simple client to get server time:Server code:#include #include "unp.h" #include "my_err.h" #define Default_port 8000int Main (int argc, const char * argv []) {int LISTENFD, CONNFD; struct sockaddr_in servaddr; Char
There are three major features of cat:1. Display the entire file at once. $ cat FileName2. Create a file from the keyboard. $ cat > FileNameOnly new files can be created and existing files cannot be edited.3. Merge several files into one file: $cat
Thread Mutex mechanismA mutex variable is like a "lock", which is the primary way for thread synchronization and protection of shared dataMutexes can be used to prevent competitionThe basic concept of mutex in pthreadsAt any time, only one thread
Replacing File Content in batches in linux1. Readily available materials on the Internet
Format: sed-I "s/search field/replace field/g" 'grep search field-rl Path'
Linux sed replaces strings in multiple files in batches
Sed-I
Linux Command ln, linuxln
Hard links and soft links are an important concept in Linux file systems. They involve index nodes (also called inode) in the file system, and the index node objects are Linux Virtual File Systems (VFS).However, before
Hardware Switch Offload and hwoffload supported by Linux 4.0 + KernelThe Linux kernel has recently jumped to the 4. x era, and it seems to have no major actions at first, but for me, the most exciting thing is its support for hard switching modules.
Linux wget command and linuxwget command
I. Introduction
Wget is a tool for downloading files in a Linux system. It is used in the command line. Linux users are an essential tool. We often need to download software or restore the backup from a
View common system configuration commands in centos
System
# Uname-a # view kernel/operating system/CPU Information# Head-n 1/etc/issue # view the operating system version# Cat/proc/cpuinfo # view CPU Information# Hostname # view the computer name#
CentOS hard link and soft link
In a Linux File System, disk blocks are divided into three parts. A part is called a data zone and used to store the file content. Another part is called inode table, which is used to store file attributes. The third
Common configurations after Centos Installation
1.ModifyYumThe source updates the system to the latest version.
Fast yum sources in China:
Http://mirrors.163.com
Http://mirrors.sohu.com
First, modify the yum configuration file.
# Vi/etc/yum. repos.
Linux Command ifstat
Ifstat command is used to view network traffic
The ifstat system is not installed by default. You must use the apt-get command or download the source code for installation.
Ifstat source code
Installation instructions
1.
Configure Internet Mail alarm for Zabbix
1. Basic Conditions
Zabbix server has been created and runThe zabbix client has been created and runs2. software packages to be installedCompile and install the msmtp package, and install the mutt package in
Install MariaDB on CentOS 6.51. software environment: CentOS 6.5x64MariaDB 5.5.362. Installation Process 1) Create the MariaDB. repo file in the/etc/yum. repos. d/directory. The content is as follows:[Plain] view plaincopy
#
CentOS7.1 install Vsftpd FTP Server
VSFTPD indicates Very Secure File Transfer Protocol Daemon, which is an FTP server used for UNIX-like systems. It is one of the most efficient and secure FTP servers today.# Yum install vsftpd
Install Vsftpd
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