Integrated UNP The first five chapters, wrote a server-client program.Main function: The client reads the string from the standard input to the server and the server is displayed. After the server accepts the connection, the fork () child process
First, create a userSyntax: Useradd user nameExample: such as Useradd WenxuehuiSecond, switch usersSyntax: SU user name and enter user name passwordThird, Linux adds the command to the path1, first check where the commandFor example, add a useradd
Tar-C: Create compressed archives-X: Unzip-T: View content-r: Append files to the end of a compressed archive file-U: Update files in original compressed packageThese five are stand-alone commands, which use one of the compression decompression, and
1, view current system perIPNumber of connectionsNetstat-an | grep ' established ' | awk ' {print $4} ' | Awk-f ":" ' {print $} ' | Sort-n | Uniq-c2 , list the ports used by the service
http
80
Https
443
Basic directives#打印字符串echo hello linux#将file1 和 file2粘合在一起,打印到标准输出流cat file1 file2Standard input and output
Standard input, stdin, i.e. keyboard, mouse input
Standard output, stdout, i.e. output to terminal
Standard error stream,
For privacy needs, do not want to expose the real MAC address, the following script to add the contents of the/ETC/INIT.D, you can at each boot time for the network card randomly set a MAC address.#!/bin/bash#Chorder#2016/12/08 mhash=' Date+%s|md5
The Three Musketeers of Linux, respectively, are Awk/sed/grep, which is an essential common command for operation and maintenance personnel.One: awk takes column awk ' {print $1 ' "old.txt} 'Awk/aaa/old.txt II: SED takes the first and second
Prepare the tool installation directory to download the corresponding system version of ARM-LINUX-GCC on the official website. Store the compressed package arm-linux-gcc-4.4.3.tar.gz in a directory.. tar.gz and. tgz decompression: Tar zxvf
An installation# # First download the source file with wget wget http://download.redis.io/releases/redis-3.2.9.tar.gz## I build a folder myself Mkdir/usr/redis mv redis-3.2.9.tar.gz/usr/redis# #解压 tar-zxvf redis-3.2.9.tar.gz#make
Redhat supports a variety of installation methods: CD-ROM installation, hard disk installation and network installation, etc., can be selected according to the actual situation of individuals. I am here to choose a CD-ROM installation of the way to
Ls-l |grep "^-" |wc-lCount the number of directories under a folderLs-l |grep "^d" |wc-lThe number of files under the statistics folder, including subfoldersLs-lr|grep "^-" |wc-lAll txt files in the statistics/imagedata/data/20161108 directory
First, you need to install the basic environment-------LAMPYum-y install httpd mariadb-server mariadb php php-mysql GD PHP-GDOnce installed, execute the command again to make sure all packages are installed.Start httpd and MARIADB, and set to boot
1. Exit:①logout②exit③ctrl+d2. Turn off the machine:①halt②shutdown-h ③poweroff3. Restart:①reboot②shutdown-r ③ctrl+alt+delFolders and features under the root directory:/bin: Command file for ordinary users/sbin: The command file used by the root
Filesystem Hierarchy Standard (FHS): The focus is on standardizing what data should be placed in each particular directory. The advantage of this is that the Linux operating system is able to develop the unique style that developers want under the
1. BackgroundTypically there are scenarios where developers write code in Windows and then compile in the Linux environment, and we can use the Mount command to hook code directly into a Linux environment so that shared folders on Windows are like a
1. Install JDK1.1. See if OPENJDK was previously installed:RPM Package Manager (RPM bundle manager)Command: RPM-QA | grep javaTranslation: rpm--search Specifies if RPM package is installed-qa--query all query all|--The result of the previous command
Projects that have been tested on the most recent test environment cannot be completely closed through shutdown.sh.There are two methods of temporary workaround:First: by Ps-ef|grep Tomcat to see the Tomcat process using kill directly to kill the
FS Service (Windows Client +linux server) Windows client1. Add an NFS service2. Enter the CMD interface to see if NFS is added successfully.3. Mount remote file directory to local4. Unmount Mounted FilesLinux Service side 1. See if the Linux system
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