Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Jun 072008
 

Copy file to remote server using scp

Answer:

To copy file from local machine to remote server, it is easy with scp

e.g.

# scp test.txt john@remoteserver:/home/john/

The above command copy the file test.txt to the remote folder /home/john, of the machine remoteserver.

May 132008
 

Install mlocate for quick file search in Linux

Answer:

mlocate is a useful tool for quickly find files on the filesystem based on their name.

To install

# sudo apt-get install mlocate

After install, you would need to build the database for the first time

# sudo updatedb&

Now the database building/indexing is running in the background, when it is finished, you can use the locate command to lookup file in your filesystem.

# locate SHA1.pm
/usr/lib/perl5/Digest/SHA1.pm