Linux operation and Maintenance Phase II (13) log ManagementOne,1, in the centos6.x log service replaced by Rsyslogd Syslogd, new features: Based on TCP transport log information , a more secure network transmission mode, a timely analysis framework for log messages, a background database, a simple logical judgment in the configuration file, and a compatible syslogd. 2, the system common log files:/var/log/
An error occurred while writing files in MySQL in Linux (Errcode: 13) solution: select * into outfile '/home/mysql/data in the database. SQL 'Shell prompts ERROR when exporting data: ERROR 1 (HY000): Can't create/write to file'/home/mysql/data. SQL '(Errcode: 13) after confirming that it is not a permission issue, use the following method to solve setsebool-P mys
Linux Mint 13 root login recently reinstalled the computer, at first fashion the latest version of Ubuntu12.04, found that the unity interface Really bad (not used to), back to gnome interface is too ugly, so I thought of the Linux Mint release version and installed the latest Mint13. After a while, I felt good. It gave me a fresh feeling. The desktop is similar
, andFTP servers are built on the server host, and the server host two network cards eth0 , eth1 used separately Vmnet1 , Vmnet2 . Create two PXE boot menus and two different ks files for different network segments. Client test:New Virtual Machine Centos-pxe-test, first tune to vmnet1DHCP distributes 192.168.1.0/24 network segment IP,TFTP provides Pxelinux.cfg/default Filetransfer Client to Vmnet2 for testingat this DHCP distributes 192.168.20.0/24 network segment IP,TFTP provides pxelinux.cf
Tags: Linux, register your Redhat account to give the system product installation software updates 2. RPM package is used to manage software in Red Hat Enterprise Linux systemRedhat, Suse, Oracle Linux package rpmUbuntu Package DBDAll support compiling software Installation RPM Package installation will have a lot of dependencies, need to install a lot of sof
Installing dropbox in linux mint 13 maya 1. Installing nautilus-dropbox Java code through a terminalSudo apt-get install nautilus-dropbox through the software center, but the installation is only an empty shell. After the installation, dropbox automatically downloads the installation file,However, due to firewall reasons, the installation process will be frozen! Www.2cto.com 2, according to your
Rpm-qa |grep vsftpdYum Search vsftpdYum Install vsftpdTo see if it has been started:Service VSFTPD StatusStart:Service VSFTPD StartEnter address access in the browser: Remember to turn off the firewall beforeClick on My Computer, enter the FTP address in the address bar, directly to the resource manager to access the way.Overwrite the master configuration fileAnonymous_enable=no does not allow anonymous users to log onService VSFTPD start restart can affect user connectionsYou must now enter a u
1, Touch command used to create blank files and modify file time, Format: touch[options [file];There are three types of file time under Linux@1, change Time (mtime): Content modification time;@2, change permissions (ctime): Change attribute and permission time@3, read time (atime) Read file content time
Touch command
Parameters
Role
-A
Modify access Time (Atime)
-M
Change Time (M
Tag: blank linux target password nullHomework
1, request to add a user newuser, if it already exists then display "The user USERNAME is exists", if present, add it and set its password to "[email protected]"
#!/bin/bash#Username=newuser1if! ID $username >/dev/null;Then AddUser $usernameecho $username | passwd--stdin "[email protected]" >/dev/nullecho "ADD user $username sucessfully."Else "The user is exists."FiExit
2, wri
of VIM:Normal Mode (Normal-mode)Insert mode (Insert-mode)Command mode (Command-mode)Visual Mode (Visual-mode)Normal modeThe default is in normal mode when Vim is started. No matter what mode you are in, pressing the Insert modePressing I, I, a, a etc in normal mode will enter insert mode.Now just remember to press the I key to insert mode. In insert mode, the corresponding character is written when the key is clicked.Command modeIn normal mode, press the: (English colon) key to enter command mo
daizhihong123drwxr-sr-x 2 Root user 6 2 Month 3 15:44 YngndzhDrwxr-xr-x 2 root root 6 2 month 3 15:54 yngndzh123The new file is now /daizhihong123/ the permissions of the user group become Root , create /yngndzh23/ the permissions for the directory user group also become Root . This shows a directory setting Set_gid permission, the group that created the sub-file or subdirectory under this directory will be consistent with the parent directory. Set_gid permissions: Not only can work on the file
for each operation-exec command {} \; #注意, followed by \; cannot be omitted, represents the end of an order. and \; There is a space between {}.############################################################################Here are a few examples:1. Find all files in the/var directory under the master root and belong to the group mail;Find/var-user Root-group Mail2. Find files that do not belong to Root,bin or student in the/USR directory;Find/usr-not-user root-a-not-user bin-a-not-user StudentFin
Right now1. Files downloaded from the Internet are compressed files.2, reduce the space to use the compressed file.So it is necessary for us to learn how to compress and decompress files.Compression and packaging commands for Linux documentsThere are many compression methods supported in Linux, but the most commonly used compression methods are:Tar There are two ways to compress the command (GZ bz2)Now we
Common Linux commands (13)-head
The head and tail are just as easy to understand as their names. They are used to display a certain number of text blocks at the beginning or end, and the head is used to display the beginning of the file to the standard output, and tail takes it for granted that it is the end of the file.
1.Command Format:
Head [parameters]... [file]...
2.Command function:
The head command
Source Change
The default source speed of Linux Mint 13 is not fast. We recommend that you replace it.
Backup:
/etc/apt/sources.list /etc/apt/sources.list_backup
Open sources. list:
/etc/apt/sources.list
Select an appropriate source list, replace all the content in the file, and save the edited file.
Update source list:
Recommended source list:
Network yiyuan:
deb http://mirrors.163.com/ubuntu/ raring ma
option is not needed, just write the variable in the URL.Like what:Curl http://www.yahoo.com/login.cgi?user=nickpassword=12345The option for Post mode is-DFor example, curl-d "user=nickpassword=12345" http://www.yahoo.com/login.cgiis equivalent to issuing a login request to this site ~~~~~In the end to use the Get mode or post mode, the opposite server to see the program settings.It is important to note that file uploads on files in post mode, such asSuch an HTTP form, which we want to emulate
The less tool is also a tool for paging through files or other output, which is a very powerful tool for Linux to view the contents of a file. The usage of less is more resilient than more. In more, we have no way to turn front, can only look back, but if use less, you can use [PageUp] [PageDown] and other key functions to go to look at the file, more easily used to view the contents of a file! In addition, in less you can have more search function, n
1 I want to turn off the machine immediately!$shutdown-H now2 I want to restart now$shutdown-R Now3 I want to shut down on time 23:30 minutes.$shutdown-H 23:304 I want to shut down in 15 minutes.$shutdown-H +155 Summary, you can see, if you want to let shutdown work, you have to tell shutdown command a time, whether it is now, or 23:30, or +15.6 I want a prank!Mischief is to scare the user. This feature is actually very practical, if you are an administrator, you can fully use the "prank" to rem
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.