1. Query inode :
Code is as follows
[oracle@test]$ ll -i total 14694452 17956913 -rw-r–r– 1 oracle oinstall 0 Jan 18 20:24 1?.txt
2. Modify the test file name:
The code is as follows find . -inum 17956913 -exec mv {} file.txt ;
3. Delete the garbled file
The code is as follows [oracle@test]$ ll -i total 14694452 …. -rw-r–r– 1 oracle oinstall 0 Jan 18 20:24 file.txt
Record: delete garbled files can use find. -inum 17956913 -exec rm {} ;
Folder
For folders, especially non-empty folders, the above method is not applicable. You need to use another parameter to implement it. The first thing is to view the nodes of the garbled folder. No.
Code is as follows
ls -i 18612483 . block.?.. - Thank you, Love(128kbps) 2011.06.22
Next use the find command to delete the
code as follows
find -inum 18612483 -exec rm -rf {} ; find: ./瑗 block.?.. - Thank you, Love(128kbps) 2011.06.22: No such file or directory
We couldn't find this file or folder, but it has actually been deleted. The -exec function is to execute the command after the search, where {} represents the result of the previous query, the space +; is the terminator, and the others do not say. -exec can be followed by any common commands, so this method is not only applicable to folders, but also to files.
Tips
How to delete in batches? In fact, it's very simple, just use for
Code as follows
File
for n in 22413315 22413314;do find -inum $n -delete;done
Folder
for n in 22413315 22413314;do find -inum $n -exec rm -rf {} ;;done
$n is the name of the variable, which is consistent with the definition of for later, nothing else to say For other operations.
Linux support for NICs is better than other hardware. XteamLinux 4.0
Matthew Garrett, Core Developer from Red Hat, publishes a detailed article on Fedora 18. It will int
Linux Mint is an Ubuntu-based distribution whose goal is to provide a more complete and immediate ex
LDM/STM instructions are mainly used for field protection, data copying, parameter transfer, etc. ST
How to solve USB unrecognized under Linux?
Common operating commands for Linux systems
Clean up memory and Cache method under Linux /proc/sys/vm/drop
Linux Find Command Mastery Guide
Detailed dns settings under Linux
Linux 12 is not known 12 insider
Linux modification file creation time
How to install bt5 - bt5 combat installation tutorial under windows8 system
Win7 system setting window border and taskbar color method graphic tutorial
Network Security for Configuring SNMP Services in Win 2003
Win7 system related problem troubleshooting
Introduction to mainstream video formats and corresponding extensions overview
Win10 is free for only three weeks! Missed to spend 888 yuan
The speed of transmission is determined by me. Limit FlashFXP speed
Win7 system Windows Update update graphic
Windows Server 2008 improves AD management efficiency