Linux Tips: Difference between revisions

From miki
Jump to navigation Jump to search
No edit summary
Line 16: Line 16:


== Fast Search ==
== Fast Search ==
Use '''<tt>locate</tt>''' to find files rapidly by their names. <tt>locate</tt> is very lightweight (hardly notice it's running) and very efficient. It works for any file in any local file system.
'''{{red|! Power Tip !}}''' Use '''<tt>locate</tt>''' to find files rapidly by their names. <tt>locate</tt> is very lightweight (hardly notice it's running) and very efficient. It works for any file in any local file system.


For more powerful search (searching in file content), try software like '''Recoll''', '''Beagle''', '''Google Desktop''', ... See [[Linux Software]].
For more powerful search (searching in file content), try software like '''Recoll''', '''Beagle''', '''Google Desktop''', ... See [[Linux Software]].

Revision as of 21:01, 22 September 2010

Disable Auto-Mount

You can temporarily disable automount by doing as root [1]:

$ rcdbus stop

Fast Copy

Using Netcat

When copying a directory that contains a lot of small files (like 1000+ files <1kB), it is faster to actually generate a tarball of the directory and have it unpacked on the fly on the destination server [2]:

# On DESTINATION box, launch first the listener
nc -l -p 2342 | tar -C /target/dir -xzf -
#On SOURCE box, launch the sender
tar -cz /source/dir | nc Target_Box 2342

Fast Search

! Power Tip ! Use locate to find files rapidly by their names. locate is very lightweight (hardly notice it's running) and very efficient. It works for any file in any local file system.

For more powerful search (searching in file content), try software like Recoll, Beagle, Google Desktop, ... See Linux Software.

Other

See here