linux find command study
by default , find command use 512 byte as one size unit, and file size will round up to times of 512 bytes.
See below and think .
If you encounter trouble at default size unit, please use suffix "c" or "k" for exactly file size match.
[oracle@tomy_4 test]$ find ./ -size 13c -ls
133975 0 lrwxrwxrwx 1 oracle oinstall 13 Sep 5 2009 ./me3 -> /boot/message
[oracle@tomy_4 test]$ find ./ -size 6c -ls
133963 4 -rw-rw-rw- 1 oracle oinstall 6 Sep 5 2009 ./a
[oracle@tomy_4 test]$ find ./ -size 2 -ls
133971 4 -rw-r--r-- 1 oracle oinstall 891 Sep 5 2009 ./c.abc
133960 4 -rw-r--r-- 1 oracle oinstall 891 Sep 5 2009 ./king.ini
133948 4 -rw-r--r-- 1 oracle oinstall 891 Sep 5 2009 ./c
[oracle@tomy_4 test]$ find ./ -size +2 -ls
133958 4 drwxr-xr-x 2 oracle oinstall 4096 Sep 5 2009 ./
133961 8 -rw-r--r-- 1 oracle oinstall 8192 Sep 5 2009 ./users.1
133967 24 -rw-r--r-- 1 oracle oinstall 23108 Sep 5 2009 ./me2
[oracle@tomy_4 test]$ find ./ -size -2 -ls
133975 0 lrwxrwxrwx 1 oracle oinstall 13 Sep 5 2009 ./me3 -> /boot/message
133963 4 -rw-rw-rw- 1 oracle oinstall 6 Sep 5 2009 ./a
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/350519/viewspace-1045348/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Linux find commandLinux
- Mommy, I found it! — 15 Practical Linux Find Command ExamplesLinux
- Supervisor 解決 can't find command *
- Oracle Linux JRE StudyOracleLinux
- Linux findLinux
- linux commandLinux
- linux find命令Linux
- linux find 命令Linux
- linux find 命令!Linux
- Study
- Oracle Linux xargs CommandOracleLinux
- Linux - find與grepLinux
- linux之shell findLinux
- linux/unix find命令Linux
- Linux:-bash: tree: command not foundLinux
- Linux:-bash: unzip: command not foundLinux
- Linux Command常用匯總Linux
- Linux find 命令詳解Linux
- Linux find命令詳解Linux
- Linux精講——find命令Linux
- linux find詳解(轉)Linux
- Linux / Unix Command: loggerLinux
- 【Linux】git note -v command not foundLinuxGit
- MongoDB 檢視DDL檢視not authorized on xxx to execute command { find: system.viewsMongoDBZedView
- linux下的find 和 grepLinux
- 【Linux】find指令和grep指令!!!Linux
- Linux find常見用法示例Linux
- 如何在 Linux 中使用 findLinux
- linux find depth引數理解Linux
- Linux 常用基本命令 findLinux
- Unable to Find Sources for Current Linux KernelLinux
- (轉)Linux find命令詳解Linux
- Linux下find命令詳解Linux
- Linux Find 命令精通指南Linux
- CSS Variable StudyCSS
- How to Study OracleOracle
- RCE_STUDY
- 【linux報錯】-bash: xhost: command not foundLinux