Backup Database Scripts under Linux

#!/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

Linux command CP.

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 adds SSH permissions to ordinary users

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

The great God in Linux commands

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

Linux Learning Note 1

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

The Blktrace of Linux system analysis tools

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

mac80211 kernel module modification for Linux

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 Linux (boundless rebuild)

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

LFS, compiling your own Linux system-compiling a temporary system

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.

Linux View file permissions

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)

Linux netlink socket Implements similar ss commands to count socket and TCP information

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.

Linux netlink socket learning materials

Theory: Http://blog.csdn.net/unbutun/article/details/3394061 Further dive: Http://edsionte.com/techblog/archives/4134 Http://edsionte.com/techblog/archives/4140 Http://edsionte.com/techblog/archives/4134 Practice: Http://bbs.chinaunix.net/thread-3766

Research on synchronization mutex mechanism in Linux

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

RPM source code package production RHEL6

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

Shell condition test statement, string test whether apache is enabled

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

Install jdk-7u45-linux-x64.tar.gz in Linux

Download jdk-7u45-linux-x64.tar.gz : Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 2. tar decompression: tar-xzvf jdk-7u45-linux-x64.tar.gz Usually installed in the/usr/local/directory 3. Configure environment

Solve the Problem of starting couldnotopendefaultfont & amp; #39; fixed & amp; #39; on LINUXvncserver.

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

How to partition CentOS

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

Nginx disable favicon.icow.robots.txt Logging

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

Linux-converting Ubuntu Chinese folder to English

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,

Total Pages: 5467 1 .... 5283 5284 5285 5286 5287 .... 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.