#!/bin/bashDbbackdir= "/home/oracle/fm/fm_backup" #数据库数据本机存放位置, according to the circumstances of their own modificationLogdir= "/home/oracle/fm/fm_backup/log.txt" #简单日志输出#检查备份目录是否存在和是否有读写权限If [-F "$LOGDIR"]; Then #检查日志输出文件chmod a+w $LOGDIR
ExamplesCP File1.txt NewdirCopies the file1.txt in the current directory to the newdir subdirectory.Cp/home/public_html/mylog.txt/home/public_html/backup/mylog.bakCopies the file mylog.txt in the public_html directory into the
Linux system installed, after the establishment of ordinary users, ordinary users may not be able to connect to the server via SSHYou can add allowusers:username to the/etc/ssh/sshd_config(Can be multiple, separated by a space) to increase SSH
Command one:-R parameter in RMThe first is the creation of the temp file, which belongs to the Xulinux user, and the Xulinux group, the permission through the following 3 sentences so that no one should write, read, not access to the
1. Folder operationsMy Computer user name is studentRight-click New terminal to enter the following contentThe CD will jump directly into the Student directory layerCd.. Jumps into the previous layerCd.. /.. Lian-HopCd/home no matter where you are
Blktrace Introduction:Blktrace is a tracking tool for the I/O layer of the Linux kernel, used to collect the details of the disk IO information when the IO is carried over to the block layer (block level, so called Blk Trace), which is the
The mac80211 kernel module implements the process of processing the 802.11 protocol. The content in the Mlme.c file implements the processing of the Deauth management frame. Considering the Deauth attack there is still no good defense method
Install QQ under LinuxToday tried for a long time finally hit the countless south wall ah, so write this blog let everyone is want to Linux system installed QQ comrades a reminder. Comrades, Linux installed under the QQ are rotten goods AH. Either
Binutils-2.24-pass 1UnzipTAR–JXVF binutils-2.24.tar.bz2Go to code DirectoryCD tinutils-2.24Building the compilation DirectoryMkdir–v. /binutils-buildSwitch to the compiled directoryCd.. /binutils-buildGrant Configure executable permissionschmod a+x.
LS-L ABC (ABC is file name)Then there will be similar messages, mostly these:Drwxr-xr-xA total of 10 digitsWhere: The first d represents the type catalog fileThe middle three rw-represents the owner (user)Then those three r-x represent groups (group)
Refer to the source code of ss
And netlink related information: http://blog.csdn.net/scdxmoe/article/details/27711205
Implementation result:
Gcc netlink_dig_530_7.c-o netlink_dig_530_7./Netlink_dig_530_7
State family l. addr l. port r.
In the operating system, access to shared resources requires a synchronous mutex mechanism to ensure the correctness of its logic. First, let's talk about atomic operations:
| 1. Atomic Operations (Atomic Operations ):
In terms of definition, atomic
The rpm package creation does not include the compilation part:
First, write a script. This script is what you want to do. useradd. sh is the script I wrote and 20 users are added in batches. Create a directory and put the script in:
Compress this
It takes me 10 minutes to understand "! = The difference between "-n" and "-n". Take a note and complete it.
Method 1: Test whether apache is enabled? String Testing
#! /Bin/bash
Web = '/usr/bin/pgrep httpd'
If [-n "$ web"]; // whether the
The following error occurs when installing vncserver:
Vncext: VNC extension running!
Vncext: Listening for VNC connections on all interface (s), port 5901
Vncext: created VNC server for screen 0
Cocould not init font path
When installing CentOS for Linux, you need to create CentOS partitions on the hard disk. In most cases, at least three partitions must be created for CentOS.
(1)/boot partition (not required):/boot partition is used to boot the system. It contains
If you want to close the log records of favicon.icow.robots.txt in nginx, you are not allowed to access some hidden files.
In fact, there is a favicon. ico that is quite good. When a webpage is placed on the taskbar, You can differentiate your own
Preface
When installing Ubuntu, if you select the Chinese language as the system language, after the installation is complete, several file directories under the main folder of the Ubuntu system are in Chinese, so that they are only in the terminal,
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