Linux uses the "/etc/resolv. conf" file to configure the DNS server address. You can use the nameserver configuration item to set the IP address of the DNS server. A maximum of three DNS servers can be used.
$ Sudo VI/etc/resolv. conf
Search
Which: Find whether the corresponding executable exists in the path specified by the PATH variable.Program, Such as which ls, you can find all paths in the PATH variable that contain the specified program by adding the-A option;
Whereis: not only
Today, a friend went to a good foreign company to interview for a Linux development position. The interviewer gave the following question:
The following C program is provided and compiled using GCC in Linux:
01
#include "stdio.h"
What are the similarities and differences between Linux and Windows?
Windows is a graphical interface, Linux similar to the previous dos, is a text interface, if you run the graphical interface program X-WINDOWS, Linux can also display the
Create a local file. For example, if the file name is ftp.txt, the content of the file is as follows:Open *. */* use open to connect to the remote server 192.168.1.100 */User myname mypassword/* myname is the user name and mypassword is the password
Use the netca command to call the graphical interface for configuration
[Oracle @ localhost bin] $ netca
Oracle Net Services Configuration:Xlib: connection to ": 0.0" refused by ServerXlib: no protocol specified
Error: NULLFor more information, see
Reference URL: http://blog.csdn.net/hfw_1987/article/details/4370122
1. Check if FTP is installed
The following message indicates that the FTP service is not installed.
[Root @ localhost root] # service vsftpd status
Vsftpd: unrecognized service --
Linux has increased its support for SMP systems since 2.0. In the kernel before 2.2, SMP is implemented at the user level. the Linux kernel itself cannot be accelerated because of multiple processors. After the 2.4 kernel, SMP is implemented at the
When using C/C ++ programming, sometimes the memory leakage problem may cause a disaster to the program. This problem often needs to be carefully checked. There is a tool for testing program memory management in Linux: valgrind
Valgrind contains
In QT, Chinese characters are often used, whether it is a string or a path name. Fortunately, QT provides the qtextcodec class, which has a powerful encoding format conversion function and provides most common character encoding formats in the world.
The following shows the usage of the current memory.-M indicates that the content is displayed in MB bytes. Let's take a look.
$ Free-mTotal used free shared buffers cachedMem: 1002 769 232 0 62 421-/+ Buffers/cache: 286 715Swap: 1153 0 1153
Part 1
In the recent project, I started experimenting with jxgd on the root user in Linux and now it is transferred to the jxgd user. So I want to create a new jxgd user and directly enter the topic: linux is a multi-user multi-task time-sharing operating
【Abstract】i2c bus is a common bus with simple and efficient features. It is widely used in various consumer electronic products and audio and video devices, it is also frequently used in the development of embedded systems. This article analyzes the
Hot swapping
There are two different perspectives on hot swapping:
From the kernel perspective, hot swapping is the interaction between hardware, kernel, and kernel driver.
From the user's perspective, hot swapping is the interaction between the
Common Linux file search commands
Whereis Find the software installation path-B: Only query binary files.-M: Only search for help files-S: only find the source code-U: exclude files of the specified type.-F only displays file names-B Search for
These are typical installation steps for programs generated using GNU Autoconf and automake.Make installation apt-Get install make./Configure is used to detect the target features of your installation platform. For example, it will check whether you
At command: Execute the specified command sequence at the specified time
Format:
At [-V] [-q x] [-F file] [-M] Time
ATQ [-V] [-q x]
Atrm [-V] [-q x] job...
Batch [-V] [-F file] [-m]
BG command: execute a suspended process in the background
The Linux ext2/ext3 file system uses an index node to record file information, acting as a file allocation table in windows. An index node is a structure that contains information such as the length of a file, creation and modification time,
Inode
Before discussing the Linux system connection, I have to talk about inode first. Each object in the Linux file system has a unique inode index. Each inode number corresponds to one object in the file system, to view the inode number of a file
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