1. Introduction to the Environment[Email protected] ~]# cat/etc/redhat-6.8~]# uname-R4.10. 4-1~]# uname-mi6862. Installing DNSMASQ Domain Name Resolution systemDNSMASQ is much easier to use than bind, can do forward, reverse DNS resolution, support
Linux Fundamentals:1, composed of small programs with a single purpose, the combination of small procedures to complete complex tasks;2, all documents;3, try to avoid capturing the user interface;4. Save the configuration file in plain text
The LS command is one of the most commonly used commands under Linux to query the contents of a directory (list directory contents). This article will describe its basic usage and some typical use cases. I use the test environment for Ubuntu
The load on the Linux system measures the current CPU workloadLoad Average is the average load over a period of time (1 minutes, 5 minutes, 15 minutes).[Email protected] ~]# w20:01:55 up days, 8:20, 6 users, load average:1.30, 1.48, 1.69The meaning
Sometimes need to use the string interface, but let me feel the pain is every time the input, accidentally pressed the time a little longer, it is late, the blink of an instant is laaaaate,It's a really crazy moment. So began to find the answer to
Show Current time:Command: [Email protected]:~$ date Thu 03:01:17 PDT [email protected]:~$ date ' +%x ' 08/31/201 7 Display date and set time:Command: Date--date 08:42:00The date-d parameter uses:date-d "Nov 22" This year's November 22 is
Directory:Basic operation of 1.sed, mode space, advanced operationWhat is one.1 sed?Streaming editor, the text content line-wise, you can copy, delete, modify the fileONE.2 sed formatSed-n '/^for/p '/etc/passwd lists the lines in the/etc/passwd file
A) Linux file systemIn order to standardize what kind of data should be placed in each particular directory, there is the so-called FileSystem Hierachy Standard (FHS). FHS has been continuously revised, can go to HTTP://WWW.PATHNAME.COM/FHS
1. Linux Important directory
Important catalogue
Description
/etc
directory where system configuration files and service startup commands are stored
/root
Super Administrator's home directory
1. Command format:Locate [Select parameters] [style]2. Command function:The locate command can quickly find the file when searching the database, the database is updated by the UpdateDB program,UpdateDB is created periodically by cron Daemon , and
1, the establishment of samba sharing, shared directory for/data, requirements: (describe the complete process)1) share named GKFX, workgroup for magedu;2) Add group develop, add user Gentoo,centos and Ubuntu, where Gentoo and CentOS develop as
1. Command format:Head [parameters] ... [File] ...2. Command function:The head is used to display the beginning of the file to the standard output, and the default head command prints the first 10 lines of its corresponding file.3. Command
To find convenience, move forward from all the way.is used to copy the contents of one destination file into another file, which can be used for format conversion between different source filesExample:Arm-linux-objcopy–o binary–s file.elf
1. RoleView files and directories.2. Usagels "parameter" "Directory Name"Parameters:-A: Lists all files, including hidden files (files starting with.);-A: Lists all files, including hidden files, but not included. With the. These two directories;-D:
Method One: Using grepGrep-v ' ^\s*$ ' test.txtNote:-V indicates that the matching result is reversed, and the regular expression matches the blank line. (blank lines can include whitespace characters such as character tabs)Method two: Using SEDSed '
Directory Management:LS cd pwd mkdir rmdir treeFile Management:Touch Stat file RM cp mv NanoDate Time:Date Clock Hwclock calTo view text:Cat tac more less head tailCat: Connect and display (can connect to display multiple files)Split screen
Hard Disk Partition mounting and unmount, hard disk partition mounting canceledI. Mount
1) fdisk-l | grep sd view partition information
Or fdisk-l
2) mkdir-p/data/disk1 create a data storage directory
Mkdir-p/data/disk2
Mkdir-p/data/disk3
......
3)
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