the file to the dumpster, it completely disappears, so be rm -rf destination careful when executing this command, with a few days of painstaking effort, and the system you are using is all erased.I draw on the experience of the network predecessors, attached to delete to Recycle Bin code (added in the. zshrc file)alias rmtrash=trash alias lltrash=‘ll /.Trash’ trash
|tree|search|stat|rates|opt|exec] [path ...] [Expression]Find-type b Search by type of file[Email protected] ~]$ Find-type D../C./c/pei./.pulse./videos./.gnote./.gnote/addins./.gnome2./.gnome2/keyrings./.gnome2/gedit./.gnome2/panel2.d./.gnome2/panel2.d/default./.gnome2/panel2.d/default/launchers./.gnome2/nautilus-scripts./.dbus./.dbus/session-bus./templates./music./.config./.config/gtk-2.0./.config/gnome-session./.config/gnome-session/saved-session./.config/gnome-disk-utility./.config/gnome-disk
With this configuration, mom doesn't have to worry about my mistakes anymore.In the ~ next. BASHRC or. Bash_profile JoinMkdir-p ~/.trashalias rm=trashalias r=trashalias rl= ' ls ~/.trash ' Alias Ur=undoundo () {mv-i ~/.trash/[email protected]. }trash () {MV [email protected] ~/.trash/}This is the executionRM is the equ
deleted by a file1. Use a shell command to prevent files under files from being deleted
sudo chattr +a Downloads
cd Downloads
rm ngix.pdf
mv:cannot move ' ngix.pdf ' to '/home/gpx/.trash/ngix.pdf ': Operation not permitted
sudo rm ngix.pdf
rm:cannot Remove ' ngix.pdf ': Operation not permitted
2. Use the alias command to remove RM
Alias rm= ' rm-i '
or
alias Rm=trash
RM command, or use the MV command to move the file to the Recycle Bin when you need to delete the file.1) Create a new directory under/home/username/directory, named:. Trash2) in the/home/username/tools/Directory, create a new shell file named: remove.shTrash_dir= "/home/username/.trash" for I in $*, do stamp= ' date +%s ' filename= ' basename $i ' mv $i $TRASH _dir/$fileName. $STAMP done
In the process of using the computer, the MAC also generates junk files, which not only consumes a lot of disk space, but also slows down the operation. Perhaps many people do not realize that, in addition to ordinary drive garbage, there are more junk files on Mac, each partition and external drive has his own hidden trash folder, previously deleted items still exist. Let's take a look at the Mac garbage cleanup method. How does mac clean up
The content is Google's, the test is valid, because the thing that is packaged with Revel is deleted later has this cyclic bugmac about-you can't copy an item "" because its name is too long or includes characters that are not valid on the destination volume. File deletion Some of the information I found on this issue can be removed by the following methods1, open the terminal application. 2, type: sudo rm-RF Note: in the-RF, type a space after. The command will not execute without a space.in st
To prevent deft on hand rm from being deleted in Ubuntu, you can prevent accidental deletion by using alias RM to MV.
In. BASHRC, add the following statement, and then source. BASHRCAlias rm= "Sh/home/[username]/.remove.sh"
Create a new. Trash directory in the user directory
Create a new. remove.sh file in the user directory with the following contents:para_cnt=$#Trash_dir = "/home/[username]/.trash
Foreword: This article is in blogger: http://blog.sina.com.cn/s/blog_7673d4a50102v7s1.html; a summary of the problems encountered on the basis of blogs
Configure the hive's metadata to MySQL, and after creating Hivedb in the MySQL database, modify the Hive-site.xml in the Conf directory of hive and Mysql-connector-java-5.1.22-bin.jar to the Lib directory of hive.Here's the thing. hive0.14 version Results run hive, CREATE TABLE:hive> CREATE TABLE T1> (tid int, tname string, age int);Moved: ' Hdf
When creating an application, you need to implement the drag function on the city list interface like iphone weather. In fact, android has implemented this control. However, this control is not a public control, but a custom control under the built-in music player. The specific directory is packages/apps/Music/src/com/android/music/TouchInterceptor. java.
The sending method is very simple, because TouchInterceptor. java inherits ListView. Unlike Listview, You need to register a listener for this
attacks is less ~, Who said CL is not prone to errors ?! The key is hard to recover ...... I decided to write a script to replace rm.
I used to think that shell programming is quite weak and difficult to read. I forgot everything when I learned high skills. As a result, I stayed up late last night and was late in the morning. I scanned the shell programming I had previously learned. I would like to share with you. Dos seems to have del commands, so my script is named del and placed in ~ /Sbin,
If the hive version is not a support drop table TableName Purge.Your drop TABLE command would move data to. Trash in HDFs.Dfs. Trash;drop TABLE TableName;Dfs. Trash/current;#batch drop tables you want in hive.Hive--database databasename-e "Show tables ' *_evan '" >>tables.txt;---read line from TXT filesWhile Read lineDo#echo "drop table $line;"Hive--database data
tables, copy files1.10Hbase Migration1.10.1copytable modeBin/hbase Org.apache.hadoop.hbase.mapreduce.copytable–peer.adr=zookeeper1,zookeeper2,zookeeper3:/hbase ' TestTable 'This operation needs to add Conf/mapred-site.xml in the HBase directory, which can replicate Hadoop.1.10.2export/importBin/hbase org.apache.hadoop.hbase.mapreduce.Export testtable/user/testtable [versions] [starttime] [StopTime]Bin/hbase Org.apache.hadoop.hbase.mapreduce.Import testtable/user/testtable1.10.3 Direct copy of H
the Mail body claim time.What is the problem? Some people do not have the auto forward function, so they will go to other mailboxes to manually transfer emails to Gmail in a few days, and the date will be changed.6. GMail's 'conversation' usually works together. It is very troublesome to delete some of the emails, but there is a way to remove them and click More options, if you select Trash this messenger, it will be OK and the entire con
To the users of the illustrator software for detailed analysis to share the production of a desktop trash icon tutorial.
Tutorial Sharing:
1. In AI software, create a new 800*800 document, select a rectangular tool, press and hold Shhift to draw a square figure, and add a gradient color, as shown
2, then select the square to effect-stylized-rounded corners, as shown in the figure
3, then select the rounded corner of the g
kb.
Metal trash: 2 trash icons for the dock or the desk (metal trash empty and full ).
Shopping chart icons
Iconshock's Icon Sets offers 7 Icon Sets including les Vista icons, Red Hot Chili icons, elm nightmare street icons, NBA web icons, disk jockey icons, filming Vista icons and more.
Yoritsuki icons by hybridworks:
' # obtain the path where the current USER 4 TOOLS = "/usr/local/tools" # stores the Trash_mkdir.sh scheduled task script, you can modify 5 HOME_DIR = '/bin/grep "$ USER"/etc/passwd | awk-F "by yourself ": "'{print $6}'' # obtain the current user's home directory 6 CONF = $ HOME_DIR "/. bashrc "# splice the current user's configuration file path 7 Trash = '/bin/grep" del "$ conf' # determine whether the recycle bin mechanism is configured 8 9 if [" $
In the actual production environment, O M of A hadoop cluster requires attention.
1. High Reliability of namenode
2. node configuration and management
3. mapreduce memory configuration
4. Enable trash
The first is to ensure data security and reliability, and the second is to consider the optimization and improvement of storage efficiency, computing efficiency, and O M efficiency. When you think the hadoop cluster has poor performance, i
the server.
Todo. findall ({}, function (Todos) {// print the todo name $. each (Todos, function (I, Todo) {console. log (todo. name );});});
Use findone (Params, callback (item) to obtain a single todo object from the server.
Todo. findone ({ID: 5}, function (Todo) {// print the todo name console. Log (todo. Name );});
1.3 update
Once todo is created on the server, you can modify its attributes and use the Save method to update the todo.
// Update todos name todo. ATTR ('name', 'Take out the
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.