指令

cli - find

最後更新: 2019-09-18

 

"find" searches the directory tree rooted at each given starting-point

evaluating the given expression from left to right

If no starting-point is specified, `.' is assumed

Note that the pattern match test applies to the whole file name, starting from one of the start points named

目錄

  • 常用 Opts
  • Size
  • Type
  • Permission
  • Depth
  • regex
  • path
  • Symbolic
  • Action - prune
  • Action - exec
  • find 與 xargs
  • A pipe "|" in linux 's find -exec command
  • 應用

 

unionfs 與 aufs

更新日期: 2020-07-28

介紹

unionfs 與 aufs  為的都是要把多個目錄"虛擬"成一個目錄(overlays)

這有兩個好處

  1. 方便管理檔案(相關的檔案分佈於不同的地方, 如 sda1, sdb1)
  2. 想修改 readonly 的地方(如 squashfs)

而且我們可以指定某些目錄(Branch) 是 Readonly 的, 而把修改過的檔案放到另一個目錄

 

losetup

最後更新: 2016-04-21

介紹

 

losetup 是用來把 file mount 成 block device 的工具來,

我可應用在 mount dd 的 raw image

 

sed

最後更新: 2019-12-10

介紹

Sed (stream editor)

很詳細的 Documment: http://www.grymoire.com/Unix/Sed.html

目錄

  1. 常用 options
  2. Command
  3. 刪除()
  4. 取代(substitution)
    Use variable in replacement
  5. "|" ":" "@"
  6. print (簡寫 p)
  7. Comments
  8. Print line number with =
  9. Transform with y (1對1的)
  10. Grouping with { and }
  11. Adding(a), Inserting(i), Changing lines
  12. How sed Works
  13. Writing a file with the 'w' command
  14. Change configuration files setting value (ini file)

 

RSS feed