Linux Today: Linux News On Internet Time.

More on LinuxToday

Mommy, I found it! -- 15 Practical Linux Find Command Examples

Mar 04, 2009, 21:03 (0 Talkback[s])
(Other stories by Sathiya Moorthy)


Desktop-as-a-Service Designed for Any Cloud ? Nutanix Frame

[ Thanks to An Anonymous Reader for this link. ]

"5. Inverting the match.
Shows the files or directories whose name are not MyCProgram.c .Since the maxdepth is 1, this will look only under current directory.

"# find -maxdepth 1 -not -iname "MyCProgram.c"

"6. Finding Files by its inode Number.
Every file has an unique inode number, using that we can identify that file. Create two files with similar name. i.e one file with a space at the end.

"# touch "test-file-name"

# touch "test-file-name "
[Note: There is a space at the end]

"# ls -1 test*

Complete Story

Related Stories: