# Vi/etc/inittab
Start level becomes text mode after modifying Gaoliang
---------------------------------------------------------------------------------------------
## Inittab This file describes how the INIT process should set up# The system in a
Linux System init (by Hanlray (at) gmail.com)
UNIX-class systems typically have multiple runlevel, and a runlevel is the configuration of the running state of a set of services: which services should be running under that runlevel, and which
Different Linux distribution a network adapter to configure multiple IP method is basically the same, but the edited file is different.
1. Ubuntu Configuration Multiple IP
Edit/etc/network/interfaces:sudo Vi/etc/network/interfaces, and then follow
The recent work often have to reload the system, so you have to configure the network. This should be said to be very simple in Windows, a few seconds to finish.
But under Linux, sometimes a bit of trouble, there is a good window interface, the
Netstat
The Netstat command is used to display various network-related information, such as network connections, routing tables, Interface states (Interface Statistics), masquerade connections, multicast members (multicast memberships), and so on.
#include
#include
#include
The file where the #include //stat function is located
#include
int main (void)
{
DIR *DP;
struct Dirent *ep;
struct STAT st;
Char dirp[50];
printf ("Please input a dir name:/n");
scanf ("%s", &DIRP); Read
There was a strange problem yesterday, and the third party engine came up with a new search-and-seek library, the original implementation is a static link library (. A), but the new version changed to Dynamic Link (. So), I did not think so much,
Linux usage tips: Do you want to use it? FigureRecently, a project has come to an end to enter the commissioning test phase. This is a small program project built using the Springboot framework for the daemon, Mpvue. Server I finally chose the
Common commands-shutdown, restart
Command
meaning
Reboot
Restart operation system
Shutdown–r now
Restart the operating system, shutdown will give other users prompt
一、把/data目录移动到/root目录里[root @oldboyedu50 ~] # mv /tmp/data /rootmv==moveFrequently-occurring problems:Ls:cannot access/data:no such file or directorySecond, enter the/root directory/data directory Delete oldboy.txtTo delete a file, first back up[Root
First, directory PermissionsBefore learning the file permissions rwx, for the file can read the contents of the file (r), modify the file contents (w), the file as a script or application execution (x). What about the catalog?A directory in Linux is
first, the use of SYSTEMCTL management Services in Centos7, you can use Systemctl to display, start, stop, and restart specified services for easier operation.1.1 Basic usageThe following is an example of FIREWALLD service, explaining the use of
1 The philosophy of Linux all documents, file types are also divided into a variety of, please see the following detailed instructions.-: Normal fileD: Directory files, commonly used #cd commands to enter.B: A block device, an interface device that
The routing settings assume that the client set is on a different network behind a single physical interface. For the purposes of this example, we will assume that:Client located on 172.28.56.0/24 networkRouters connect networks 172.28.56.0/24 and 19
We know that Linux has a mind "everything is a file (including hardware)", this is a basic document management experienceFile system structure elementsFile system and directory structureFeatures of Linux files:
File names are case sensitive
1. Create a Python virtual environmentA. Installing the AnacondaB.conda create-n python2 python=2. 7C.conda Activate Python2 (enter virtual environment)2. Enter the directory of your own code to execute PIP install-r requirements.txt3. Download the
Grep(global search regular expression(RE) and print out the line,全面搜索正则表达式并把行打印出来)是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹配的行打印出来。 参数-a 不要忽略二进制数据。-a displays the contents of the row, in addition to the row that matches the template style.-B appears outside
On Linux systems, when we use a terminal, different colors are displayed for files or directories. and securecrt the colors that are displayed by default are single, how do we make them display personalized colors like Linux?Use SECURECRT to log on
Abstract: Understand the computer-related components, server model, configuration, procurement, classification and its hardware components. Know the philosophy of Linux: Everything is a document. Learn to install virtual machines.1 servers1.1 To
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