Episode 12 Find and locate

We use find and locate to dig up lists of files on our system that match certain criteria. We also look at xargs for executing commands on a selected set of files.

20 October 2015

Time Jump Topic or command
00:38  

read-only

00:58  

mount (attach filesystem)

01:11  

mount -o (options)

01:43  

find (search files)

02:52  

find -name

05:31  

find -maxdepth

06:22  

find -newer

08:56  

sort (put lines in order)

09:13  

find -type

10:12  

find -empty

11:10  

man (show manual page)

11:56  

find -print

12:14  

find -delete

13:22  

find -exec

14:04  

chmod (change permissions)

17:03  

pipeline

17:15  

command substitution

19:58  

xargs (build cmd from stdin)

20:49  

standard input

21:48  

spaces

23:34  

find -print0

24:22  

xargs -0 (split on null)

25:53  

octal

25:56  

od (octal dump)

27:48  

locate (find files by name)

30:00  

touch (change file timestamps)

30:41  

updatedb (update locate data)

31:46  

locate -i (ignore-case)

32:30  

find -iname

blog comments powered by Disqus