Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


Top White Papers

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)

[ 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"
.
./MybashProgram.sh
./create_sample_files.sh
./backup
./Program.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*
test-file-name
test-file-name"

Complete Story

Related Stories: