Shell scripts for safely deleting and restoring files in CentOS

Currently, most of the Linux file systems are in Ext3 format. Once a file is deleted, it may not be restored, even if it can be recovered. Therefore, executing the rm command becomes abnormal. Therefore, we can write two Shell scripts to safely

USB disk partitioning

USB disk partitioning-General Linux technology-Linux technology and application information. for details, refer to the following section. In linux, I divided the USB flash drive into two areas: FAT32 (LBA), which can be mounted normally, However,

File system problems

For more information about file systems-General Linux technology-Linux programming and kernel, see the following. I used the df-h command on the VM to query the following results: @ Linux:/dev $ df-h File system capacity used available % mount

CentOS7LVM logical volume partition automatic resizing Shell script

Application scenarios and known problems: for CentOS6 or CentOS7 (may be applicable to earlier versions such as CentOS4 or 5), the root file system (extended file system) is managed using LVM, for example, mount command output & ldquo;/dev/mapper/vg

Mysql database backup script

#! /Bin/bashDBName = myqlDBUser = rootdbpassswd = 123456 BackupPath =/root/LogFile =/root/db. logDBPath =/var/lib/mysql/NewFile = & quot; $ BackupPath & quot; db $ (date + % Y % m % d ). tgzDump #! /Bin/bash DBName = myqlDBUser = rootDBPasswd = 12345

Urgent: comparison of two linuxFTP server files

Urgent: two Linux FTP server files are compared-General Linux technology-Linux programming and kernel information. The following is a detailed description. Dear colleagues, I have encountered this problem. in essence, it is equivalent to creating a

Share a video titled Learning C ++ with me

"Learn C ++ with Me" video sharing-Linux general technology-Linux technology and application information, the following is a detailed description. C ++ is profound and profound. this course takes you through several classic exercises to master C ++

A question about makefile

For more information about makefile-General Linux technology-Linux programming and kernel, see the following. Today, I learned how to write makefile, so I checked out other people's makefile, but I can't understand a few words. I hope Daxia can help

CentOS anti-CC attack shell script

#! /Bin/shcd/var/log/httpd/cataccess_log | awk & #39; {print $1} & #39; | sort | uniq-c | sort-n-r | head-n20 & gt; acp/dev/nullaccess_logcp/dev/nullerror_logcp/dev/nulllimit. shcp/dev/nu #!/bin/shcd /var/log/httpd/cat access_log|awk '{print

Shell keyless script

##### Batch deploy ssh private key authentication #### 1. first, install verify Ct, directly use yum. 2. deploy the ssh private key script batch_sshkey.sh ====================== ========================================== #! /Bin/bashcd/root #####

Centos boot custom script

Sometimes we need to set a script on the server so that it can be started as soon as it is turned on. The method is as follows: cd/etc/init. dviyoushell. sh # modify youshell. sh to your own script name, write your own script, and save and exit.

Gcc character output and memory problems

For Gcc character output and memory problems-General Linux technology-Linux technology and application information, see the following for details. Today, I tested a problem on GCC, and it was a problem. First, let me state: in c ++, 32-bit machines,

WdCP website server management system virtual host management system

WdCP is short for WDlinuxControlPanel. it is a set of Linux server management systems and virtual host management systems that control and manage servers through WEB. it is designed to make it easy to use Linux system as our website server system,

What is the virus on the server?

What is the virus on the server? -- Linux general technology-Linux technology and application information. for details, refer to the following section. [I = s] This post was last edited by Growth MB I am a newbie. I recently encountered a problem

Database programming problems

Database programming problems-General Linux technology-Linux programming and kernel information. The following is a detailed description. Shortly after I first came into contact with Linux, I recently asked the leaders to do a simple VC operation on

Failed to install VMware9 under centos6.3

Failed to install VMware9 under centos6.3-General Linux technology-Linux technology and application information. For more information, see the following. [I = s] This post was last edited by ivwsihnui at, January 7 ,. Download the

Cross-platform programming of delphi

For details about delphi's cross-platform programming-General Linux technology-Linux programming and kernel, refer to the following. Since I learned linux programming, my research on delphi has been gradually reduced for many reasons, but I still

Install and configure NFS servers deployed in Centos5.6

I. Introduction to the NFS service NFS is short for NetworkFileSystem, that is, the Network File System. An agreement for the use of distributed file systems, developed by Sun, was published on April 9, 1984. The function is to allow different

Python2.7a1 released

Python2.7a1-General Linux technology-Linux programming and kernel information. For more information, see the following section. The founder of Python is Guido van Rosum. In Amsterdam during the Christmas Day of 1989, Guido was determined to develop

Detailed analysis of dtree

For a detailed analysis of dtree-Linux general technology-Linux programming and kernel information, see the following for details. : 0) 1 To view the original article, please visit my blog: http://blog.sina.com.cn/baoxiaopan These days, after

Total Pages: 2732 1 .... 2550 2551 2552 2553 2554 .... 2732 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.