Welcome to UltratechHost Forum, Guest. Please take the time to register if you haven't, or click

Tags
Author: UltratechHost - Replies: 0 - Views: 14347
How to find a file or folder in linux with locate
First of all it is better you update your locate db . to do this run this command :

updatedb

It may take several minutes.

Now to find your file just run :

locate [file or folder name]


To install locate in linux you can use yum command if you have it installed.

to install locate with yum run this command as root :

Code:
yum install slocate -y

you also can install it with apt-get (ubutnu) and …

Code:
sudo apt-get install slocate
Author: UltratechHost - Replies: 0 - Views: 4544
Find version of OS installed on the server
Find version of OS installed on the server

Hi friends , in this content you will learn how to find version of OS installed on the server ! just run this commands in SSH :

Code:
cat /etc/*release

or

Code:
cat /etc/*issue


On CentOS 5 you will see :

Code:
[root@server62 ~]# cat /etc/*release
    CentOS release 5 (Final)
    [root@server62 ~]#



Have a nice day !