Ping ip,ping in Linux does not pass the domain name

The Linux host cannot resolve the domain name, the cause of DNS problems[Email protected] ~]# vim/etc/try/etc/sysconfig/network-scripts like so:## DNS1 =xxx.xxx.xxx.xxx# DNS2=xxx.xxx.xxx.xxx# DOMAIN=223.6.6.6If not resolved try the following

"Linux" Log analysis tool grep sed sort

Encountered a problem when querying the log found that there are many files printed on the server, each of which stores a portion of the log, the log needs to be sorted by time and all logs are displayed.Original command:grep-h searchcontent */*log

Linux programming gets all the NICs and IPs on this machine

#include #include#include#include#include#include#includeinch.h>#include#includestring.h>intMain () {structifaddrs* ifaddr =NULL; intret = Getifaddrs (&ifaddr); if(ret) {printf ("Getifaddrs failed, errno:%d\n", errno); return 1; } structifaddrs*

Linux under Yum command appears loaded plugins:fastestmirror determining fastest mirrors

Yum has a problem with the install today and found a way to find a workable solution.Fastestmirror is an accelerator plugin for Yum, here is the plugin tip message is that the plugin is not available.Can not use the first do not use Bai, disabled

The stat of Linux

Stat Command : Detailed information of file/file system is displayed;use format : Stat file nameThe stat command is primarily used to display detailed information about a file or file system, which has the following syntax:-F does not display

Linux commands (vii) View files cat tac more less tail

If you want to view the files, use any of the cat less TAC tail and more.1.catWhen you view a file using the Cat command, the contents of the entire file are displayed, and note that cat can only view the contents of a text file, such as viewing a

Linux timed Task-cron

/sbin/service Crond Start//Startup service/sbin/service Crond stop//Shut down service/sbin/service crond Restart//Restart service/sbin/service Crond Reload//Reload ConfigurationRoot to view your cron settings: Crontab-u root-lRoot wants to delete

Linux View System Hardware Information Summary (some examples Centoso for example)

1.cpu#lscpu命令, the statistics for the CPU are viewed. Architecture:x86_64CPU Op-mode (s): 32-bit, 64-bitByte Order:little EndianCPU (s): 4On-line CPU (s) list:0-3Thread (s) per core:1Core (s) per Socket:2Socket (s): 2NUMA node (s): 1Vendor

Linux Common commands

1, cd command This is a very basic, is also a common need to use the command, it is used to switch the current directory, its parameters are to switch to the path of the directory, can be an absolute path, can also be a relative path. Such

On getopt function of Unix/linux program design

getopt function usage in Linux:1. Function functions:The Getop function is used to parse command-line arguments with the '-' or '--' parameter option, removing '-' or '-' option elementsIf called repeatedly, it returns the selected character of each

Linux Auto mount and fstab partition-Auto Mount

01. Automatically Mount =>vi/etc/fstab files1th field: Partition device file name or UUID (hard disk universal unique identification code)2nd field: mount point3rd field: File system name4th field: Mount parameters5th field: Specifies whether the

Linux User Management

Account======================================View account:#id is looking at the ID information of the current login account, identifyUid=0 (Root) gid=0 (root) group =0 (Root)Subordinate group of the main groupThe UID system is used to identify the

Linux Viewer Port Usage

Today the discovery server on the Tomcat 8080 port does not come, the old prompt port has been occupied.Use the command:Ps-aux | grep TomcatA tomcat process with no 8080 ports found.Use command: NETSTAT–APNView all process and port usage. Discover

The first day of Linux system learning

The birth of Unix, 1970-1-1Kernel function: User input command--------> kernel-------> HardwareLinux composition = kernel + applicationLinux distributions (cont. 1)The name/version of the release is determined by the issuer–red Hat Enterprise Linux 5

Create a user under Linux, set a password for the user, give the user authorization

1, the users under Linux belong to the group, so need to create a group, divided to users. To create a command:Execute under RootGroupadd ver Create a group of ver2. Create userUseradd-m-G ver uiadm added user uiadm3. Set User passwordpasswd uiadm

Full name of the Linux command

Su:swith User switch users, switch to root userCat:concatenate SeriesUname:unix Name Name SystemDf:disk free HDDDu:disk Usage HDD UsageChown:change owner Change OwnersChgrp:change Group change user groupsPs:process Status Process stateTar:tape

Linux view all files corresponding to hard links

In Linux, the link file is divided into hard-link and soft-link file two, where hard links are established through ln source_file dist_file, and soft links are established through Ln-s source_file Dist_file.The difference between soft and hard links:

Linux no interactive generation SSH RSA secret certificate

[email protected] tmp]# man Ssh-keygenNAMESsh-keygen-authentication key generation, management and conversion Synopsis Ssh-keygen [-Q] [-B bits]-t type [-n new_passphrase] [-c comment] [-f Output_keyfile] Ssh-keygen-p [ -P old_passphrase] [-N

CentOS6.5 network configuration, centos6.5 Configuration

CentOS6.5 network configuration, centos6.5 Configuration1 Nic description 1) Two NICs:The first Nic is configured with the Internet: eth0The second Nic is configured with the Intranet: eth1 (the Intranet should also be configured on the second Nic

[Linux] install and configure JDK1.8 and install and configure jdk1.8.

[Linux] install and configure JDK1.8 and install and configure jdk1.8. Step 1:To download jdk in Linux, go to the (Official Website) to download the jdk Installation File;   View the number of Linux operating systems: [Root @ localhost ~] # Getconf

Total Pages: 5467 1 .... 1456 1457 1458 1459 1460 .... 5467 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.