CentOS implements the recycle bin Mechanism
As an O M personnel, rm * is often directly used to delete files on the server for convenience *. txt and other Wildcards are even added-rf parameters to save trouble. If it is OK, it would be nice. If it is left blank when it is deleted, it would be too big.
As the saying goes, there are always wet shoes on the Riverside station, and no one can guarantee that they will be able to make a mistake, but it is
How to set the recycle bin in linux and in linux
Modify user environment variables
Vi ~ /. Comment out the alias of row 5th in bashrc # alias rm = 'rm-I 'and add the following content in the last line: mkdir-p ~ /. Trash alias rm = trash alias r = trash alias rl = 'ls ~ /. Trash 'Alias ur = undelfile () {mv-I ~ /. Trash/$ @./} trash () {mv $ @~ /. Trash/} cleartrash () {read-p "clear sure? [N] "confirm [$ confirm = 'y'] | [$ confirm = 'y'] /
1. Use the "Recycle Bin" Edit menu skillfully
If you want to delete most of the files in the Recycle Bin without having to bother to select them by one by one, you can first select the files that are not deleted, and then click edit → reverse select, and the system will select the files you want to delete, and then click file → delete.
2. Expand the "Recycle Bin
Tags: des using io for file AR data Art spIn the Oracle 10g database, a database object with a Recycle Bin (Recycle bin) was introduced.The Recycle Bin, in principle, is a data dictionary table that places the user's dropped database object information. Objects that are dropped by the user are not deleted by the database and will still occupy space. Unless the us
Time Limit: 3.000 secondsTime Limit: 3.000 seconds
Background
Background
Bin packing, or the placement of objects of certain weights into different bins subject to certain constraints, is an historically interesting problem. some bin packing problems are NP-complete but are amenable to dynamic programming solutions or to approximately optimal heuristic solutions.The packing problem is that how to put
Turn off Bin-log Log
When the Bin-log log is turned on, many mysql-bin.0000*-like files are generated and may take up a lot of hard disk space. For their own test machine or hard disk more nervous VPS, and do not need to do master,slave configuration, can turn off the log function completely.
The shutdown operation is simple, find the configuration file my.cnf,
A Linux Installation File
Common Linux installation methods include tar, zip, GZ, rpm, Deb, and bin. We can simply divide it into three categories,
1. Package or compress the tar, zip, and GZ files. Generally, unzip the files, or decompress the files to run the sh files;
Second, corresponding to Deb and RPM with management tools. Generally, such installation files can be simply installed through a third-party command line or UI, such as apt in U
Today I saw my colleague accidentally deleted the user table in the MySQL database. Fortunately, there is a bin-log of MySQL on the log, so that the log can be used to restore previously backed up data. The specific operation is done by mysqlbinlog this instruction.
The code is as follows
Copy Code
/mysql/bin/mysqlbinlog--database=fox--start-date= "2013-01-22 5:00:00"--stop-date
) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Size of next chunk, in bytes |A|0|1| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
The above is the structure of the chunk obtained by malloc. The first two size_t are chunk_headers, respectively saving the size of the previous (physically adjacent) chunk.(If the previous Chunk is idle, save its size. If it is in use, the previous Chunk is used as the usr
We are all familiar with the recycle bin in windows. After a file is deleted and put into the recycle bin, it can be restored. The Oracle recycle bin works exactly the same, but there are some differences in implementation details.
We are all familiar with the recycle bin in windows. After a file is deleted and put int
Source: http://www.cnblogs.com/wogoyixikexie/archive/2009/01/19/1378341.html
Author: wogoyixikexie @ gliet
Borrow others' explanations:The bin mentioned here is a binary image format that organizes data in units of segments. Each segment contains a header with the start address, length, and check value specified in the header. The Platform Builder tool combines all the files in the wince kernel into one file in
I learned shell programming for the first time.ArticleShellProgramIt must start "#! /Bin/sh.
Although I know that all statements starting with "#" in shell are comments, I never think "#! /Bin/sh is also a comment, just as there is no doubt that a C program must have a main function.
But some time ago I heard that "#! /Bin/sh "is also a comment and dispensabl
★ Use the "Recycle Bin" Edit menu
If you want to delete most of the files in the Recycle Bin without having to bother to select them by one by one, you can first select the files that are not deleted, and then click edit → reverse select, and the system will select the files you want to delete, and then click file → delete.
★ Extend the right mouse button function of "Recycle
Careless operation of the computer's recycling station to delete, but also worried about the later accidentally deleted important files, so still want to keep the Recycle Bin more secure, then the Recycle Bin deleted how to restore it? The following edit for the novice friend to introduce several repair deleted Recycle Bin method.
Method One: The Recycle
Find out what binary log files are currently
The code is as follows
Copy Code
Mysql> show binary logs;+------------------+-----------+| Log_name | File_size |+------------------+-----------+| mysql-bin.000001 | 1357315 || mysql-bin.000002 | 117 || mysql-bin.000003 | 404002 || mysql-bin.0000
This article tells you how to download and delete the mysql binary log (log-bin) in MySQL command mode. If you need it, refer to it.
This article tells you how to download and delete the mysql binary log (log-bin) in MySQL command mode. If you need it, refer to it.
Find out which binary log files are currently available
The Code is as follows:
Mysql> show binary logs;+ ---------
As mentioned earlier, I found many external commands on my Mac that have the same name as the Bash internal commands, and in those 24 external commands I found a strange phenomenon: 15 of them were shell scripts, and, oddly enough, they were hard links to the same shell script:
$ find/usr/bin-inum 376183/usr/bin/alias/usr/bin/bg/usr/
Modify the user's environment variablesVI ~/. BASHRC Note the alias of line 5th #alias RM='rm-i'The last line adds the following content mkdir-P ~/. Trash alias RM=Trash alias R=Trash alias RL='ls ~/.trash'alias ur=undelfile Undelfile () {MV-I ~/.trash/[email protected].} trash () {MV [email protected]~/.trash/} cleartrash () {Read-P"Clear sure? [N]"Confirm [$confirm=='y'] || [$confirm = ='Y'] /BIN/RM-RF ~/.trash/* }Reload Environment variablesSOUR
The first line of the scripting language is to point out that you want the code in your file to run it with what executable program.For example, the first line of the PHP script can be written in the following formats#!/usr/bin/php#!/usr/bin/env PHP#!/usr/bin/env-s-p/usr/local/bin:/usr/
Deletion and recovery of filesLike the Recycle Bin design for a Linux system, HDFs creates a Recycle Bin directory for each user :/user/ username /. trash/, each file/directory that is deleted by the user through the shell, in the system Recycle Bin is a cycle, that is, when the system in the Recycle Bin files/director
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.