{ 76 comments… read them below or add one }

1 Johan May 28, 2007 at 1:18 pm

Very informative. Helped me :) thumbs up


2 Wyatt Earp January 2, 2012 at 9:04 am

Very nice, thanks a lot


3 chandra July 11, 2007 at 6:19 am

dear talent,

Can u help me how to redirect the /var/log/messages to email.
DNS server if any clients query log will stores /var/log/messages files i need to send those lof files in ip wise daily or weekly.
how shell i do it.


4 santhosh August 28, 2014 at 6:57 am


it is possible using mutt coomand and mail -s command just write a script and put in crontab it is working


5 Gonzalo R. October 29, 2007 at 9:28 pm

Dear Vivek,

I had an automatic reboot system in my server linux and I don´t find any evidence about the cause that could produce that.

Can you explain me where I have to looking for logs of error that guide me to find automatic reboot cause?.

Gonzalo R.


6 D0rk June 9, 2011 at 8:52 pm

your permissions. you can set it so a remote user can shut down the server. change permissions on shutdown or search your distributions forum and post if you do not find an answer in there or in google.


7 D0rk June 9, 2011 at 8:53 pm

some distributions are setup that way by default, which is kind of annoying. Means if anyone logs in remotely in any way, they can turn you off or reboot you. NOT FUNNY. I hope you have a firewall and have it enabled.


8 kumud January 31, 2008 at 4:25 am

where can i find the AT command logs. how to find out when the last time AT command run.


9 vinod October 3, 2008 at 7:00 am

Thank you very much.


10 Drew Schlosser February 20, 2009 at 12:42 pm

Chandra You can do this by opening a terminal and typing #cd /var/log/ and may view the files in the directory by typing #ls . You may view the log by typing #vi /var/log/messages .


11 caman February 23, 2009 at 11:47 pm

I can see a lot of the following error in my system and I cannot understand what it means, can yu shed somelight on it

Feb 22 04:40:00 msuic3 msu6_6: ciMonitor 3 of 131 registered tasks Failed!


12 Madhana March 30, 2009 at 12:29 pm

It’s a fruitful information…

Thanks a lot vivek


13 Sparrow August 22, 2009 at 3:50 am


I want classify logs and store it in a database. Into what categories can/should I classify them.
Thank you,


14 Alan Hutchinson September 26, 2009 at 6:54 pm

Hi there Linux users, I have bean trying to in stall Debian Lenny beta 2-i386 in a raid 0 con fig, on my p/c
the hard ware is all set up for raid 0, I am having difficulty with the configuration of the partitons, boot sector, file type, the “type of file allocation table” to install. I have bean trying to track down the
var/log, but I cant find that, the location was “http://192.2.2/var/log/partman_choose_partitiion_o.png
I have bean using pure dyne live CD to help me ,but I still was not able to look at the “/var/logs,
invariable I think I need expert help. thank you in advance


15 ALan Hutchinson June 10, 2011 at 5:55 am

this is a reply to my last message , I have given up on trying to install Linux on a virtual raid 0 system, so I ended up installing win 98 se with a new web browser OPERA and it runs like a hot dam, by far this is my most complex P/C to date, in one respect by the things it can do, the open source community has truly bean a liberator for me , not to mention Debian lenny -57-i386 1.iso I know this is old hat by computer standards , I was having problems trying to install NDISWRAPPER on an i386 architecture , and it did not help when my PC was hacked and I was effectively locked out of my p/c, no thanks to VLUG in Victoria but thats a “Hole” different story, I ended up installing ndiswrapper with a new O/S on a network complete with a bunch of other computers , I am currently working on a new black project , but that is top secret .


16 Pallav November 10, 2009 at 7:02 am

I have a basic account in linux of my intitue. How can i know all the login sessions done in my account ,their timing etc… an i also know any ftp or ssh done in my account?????


17 Usama Hassanin January 22, 2010 at 3:51 pm

Just type


it will tell you when, what ip address, time in and out , and for how long


18 lijun February 17, 2010 at 5:15 am

Thanks. I have a question: does Linux record the software installation process? For example I use apt to install some software in Debian but I would like to know where it puts the files. Can it be found in log file?


19 sachin February 21, 2010 at 12:59 pm

hi friends,

i have smb server and i want to know the logs of each and every folder those who access please help its very urgent…..


20 Suresh Nayak January 12, 2012 at 12:22 pm

pls go to /var/log/messages file there you will find your all logs of smb server


21 Prasanna March 18, 2010 at 7:24 am

thanks, it helped me


22 nitin August 11, 2010 at 4:29 pm

how can we check online redo log file is full or empty?


23 Surjeet Singh Rajput August 16, 2010 at 8:24 am

Which command use to routed logs in linux


24 Sunil Garje August 25, 2010 at 9:13 am

thanks, it helped me a lot. To know about log files this is very helpful…


25 quan vu August 26, 2010 at 7:19 pm

Someone desintalled an application on my Linux server ( Control_M) – What log file should I search for that – and find out who is doing it?


26 Naresh September 10, 2010 at 7:00 am

I am new to Linux, Can u pls any one of u tell me how to copy files using “rcp” from the remote location and what r da min requirements to my system.


27 Devarishi September 21, 2010 at 3:04 am


[1] What log files in /var/logs can we safely delete to free up hard-disk space?

[2] System reports “Disk-Controller Failure” then which log files in /var/logs should we check?



or some other log files?


28 Arun October 27, 2010 at 4:09 am

hi, i am having webserver in linux and mail server in windows.

in our websites we have contuct us page from that we are not able to get any email.
Can anyone help me in this reg


29 Linux Expert December 8, 2010 at 8:26 am

Let me know which linux distribution is used , and the web server having public domain ?


30 amit sharma January 25, 2011 at 8:52 am

Dear naresh,
there is coomand –

#rsync -r Ipaddress :location of data

example :
#rsync -r192.168.0.18 :/root/slides



31 Bodo February 11, 2011 at 6:54 am

# cd /var/logs
# tail -f /var/log/messages

logs/log? Looks like a typo.


32 Ankit Sharma March 28, 2011 at 5:05 am

Trace of runtime activities in UNIX

I’ve taken a project to work upon tracing of runtime activities on unix system
into a log file. Like, to implement a program which will show the log of everything
happened in past, including many requirements, like applications i used (with the time of access),
kind of files/directories i opened, closed, created, deleted(with the time), etc.

Please suggest me something to do it in a better way.


33 Rajendran April 2, 2011 at 10:52 am

How can i archive all the log files in redhat enterprise linux5?
Your help would be really appreciated.


34 koda April 6, 2011 at 7:15 am

I’m confused what does the following command do :
sudo cat /var/log/messages | grep err | -d” -f5


35 Bob July 28, 2011 at 8:59 am

It re-routes the encryption code


36 anuj Pal September 7, 2011 at 8:06 am

Thanx man ..!!!


37 Ed October 10, 2011 at 9:14 pm

Is anyone able to tell me why I can no longer get Outlook to recognize email address spammaster@domain.com after deleting maillog files to make more room on our email server. This was set up as a forward of all spam so it could be reviewed.

We are running spammaster with sendmail on a FreeBSD server.


38 Helen Neely February 12, 2012 at 3:29 pm

Thanks for this command, I was able to view my server log when the server stopped responding to requests.

Nice work :)


39 Ameya February 29, 2012 at 9:22 am

Iam using Linux operating System’s Mint flavour on a Virtual Machine…can anyone tell me the exact process of scheduling linux jobs using the at command….and a question:There is a scenario where in i have given all kinds of permissions to a file and it’s directory using the command(read,write & execute) and i want to assign this file’s ownership to a “other” user…so how would i do that…Help me out Guyzz.


40 Ameya February 29, 2012 at 9:51 am

The command which i forgot to mention in my previous post was chmod 777 and file ownership change command is chown newowner filename


41 Yousuf Khan May 4, 2012 at 5:05 am

my linux server was turned off due to some power outages, kindly tell me which logs to access and how, so I can find out the duration and the time of the outages, I am a lower than a novice on linux


42 usama May 4, 2012 at 2:00 pm

/var/log/messages log file


43 Sunil August 27, 2012 at 4:08 am

refer /var/log/messages


44 kashyap August 27, 2012 at 7:17 am

If i try check the status of service , does linux log it to any file or is there any optioin to allow logging such.
eg: service smbd status
If I execute it shows the status of the samba. would like to know that such query is logged or not or is there any possible to enable and log it.

Thanks in advance.


45 Mak September 21, 2012 at 11:09 am

THANKS, Really Helpfull Command…


46 nida September 25, 2012 at 5:58 am

I am a fresh graduate engineer working in a networking company. i am on a study project on servers and a total fresher to linux. i just went for a 4days training on the basics. i have been asked to learn how to generate a cronjob to delete logs older than 24hours. after googling i tried with deleting the contents in /var/log/messages that are older than a day using the command find /var/log/messages -mtime +1 -exec rm {} \;
when i did this nothing happened. i tried the same with -1 to try deleteing present day’s logs. the whole file messages got deleted. please help me.


47 charles November 6, 2012 at 11:10 pm

Hello Nida,

mtime -1 means modification time less than 1 day and -mtime +1 means modification time greater than 1 day.

Therefore mtime -1 will delete all your files. It worked as designed.
Best Regards


48 hesamadmin October 4, 2012 at 5:27 am

Hi, I have an important enquiry, In the centos server that i administer , there are var/log/secure var/log/secure.1 and so on, but there are empty, other log files like messages audit and … are not empty, they show plenty of useful info, Yesterday I discovered a bruteforce attack on my server by checking messages LOG, but when i checked secure log it was EMPTY , so my question is HOW CAN I configure my centos to store secure log as well ??? !!!


49 charles November 6, 2012 at 10:55 pm

Can someone kindly assist me with scp or ftp or anything applicable between my laptop running win7 and my server running fedora-16. I can send email. i can telnet to my server but i have been unable to ftp to or from the server. Please help me.


50 Phron January 5, 2013 at 12:51 am

I’m definitely becoming your biggest fun! ;)))
Awesome information!!!Helped me a lot!!!

Greatest 2013 to you all!!


51 Phron January 5, 2013 at 12:53 am

That was supposed to be Fan.. Sorry.


52 masum November 26, 2014 at 5:23 am

I want to know how to get May 2013 logs from general messages ?


53 Sof Digital January 7, 2013 at 1:36 am

thanks. i forgot the prefixes in the terminal. mostly i just use win scp to check the logs through an explorer… nice post! :)


54 Anupama January 18, 2013 at 1:33 am


I want to know how to get May 2012 logs from general messages and secure messages?
system aromatically archive old logs?


55 mahi January 22, 2013 at 11:32 am

Linux Expert
plz. Let me know how to check running logs.


56 Srinath December 1, 2014 at 8:27 pm

tail -f access.log


57 Srinath December 1, 2014 at 8:29 pm

cd /var/logs


# tail -f access.log


58 Raghu February 19, 2013 at 5:01 am

Dear Experts,

Can any one tel me how to configure Ram utilization in nagios for AIX SERVERS

Pls help me on high pirotiy.

Raghu S


59 virendra March 18, 2013 at 11:03 am

I would like to know we had mail server (linux-redhat) and proxy server with same ip,
our mailserver is working but our proxy server it is pinging but we dont get internet connection.
this happened twice, one our engineer came he saw service status squid,
then he deleted some file temp or log file i didnt saw properly,
and he reboot the linux system it started again both everything was working properly.
Again after some day same problem occur, no one is there to help to resolve the problem ???? is anyone can help me asap


60 Krishan May 6, 2013 at 6:33 am

how to enable following logs in a Redhat/Centos



61 raystrach May 7, 2013 at 3:38 am

hi thanks for the tips.

i have used your site for heaps of references over the past 12 months or so and am always appreciative of you sharing your knowedge.

your tips are always relevant, accurate and useful




62 Mahi May 27, 2013 at 6:16 pm


Please some1 help to know that Linux RHEL 6 workstation can store the logs of usage of cd rom? Is it possible to that linux save cdrom usage logs..??

Kindly help,,


63 Srinivas Kumar May 31, 2013 at 5:19 am


I need to find the history of particular id in aix server someone pls help me in this….


64 Arin E. July 21, 2013 at 9:07 am

Very useful info. Thanks for sharing!


65 Magesh M July 26, 2013 at 12:07 pm


Mysql log is located two different path location and which one is correct location.



66 Dan Moran July 30, 2013 at 1:57 pm

A minor typo: it’s not


it’s /var/log


67 suhasini October 24, 2013 at 7:49 am

hi…. i installed mysql by
“yum install mysql mysql-server” over
then i want start mysql-server but getting
“[root@localhost ~]# service mysqld start
Redirecting to /bin/systemctl start mysqld.service
Job failed. See system journal and ‘systemctl status’ for details.”
then i checked this one
[root@localhost ~]# cat /var/log/messages|mysqld.log
bash: mysqld.log: command not found.
i got this error….. plz tell the solution …. (urgent)


68 Kiran November 7, 2013 at 5:54 am


I am not able to locate the SMTP files in my server can any one help me out?



69 Anupam Gupta March 12, 2014 at 8:45 am


When i’m using these (/var/log/messages) commands getting permission denied error. How to overcome this?



70 Nix Craft March 12, 2014 at 9:21 am

Run command as root user.

sudo tail -f /var/log/messages

su –

tail -f /var/log/messages

See Linux Run Command As Another User


71 Abraham April 25, 2014 at 3:59 pm

Does anyone knows why my rsyslog.conf has a line like this:

mail.* -/var/log/maillog

To be exact, what means the hyphen “-” before the path “/var/log/maillog”



72 niquie June 19, 2014 at 11:23 am



73 Kh Sharif November 14, 2014 at 5:28 am

Very usefull aricles

Thanks a lot.



74 dj December 11, 2014 at 10:02 am

Needs an update for systemd :-(


75 Alperian January 6, 2015 at 8:03 pm

I am stuck. I have the following response from my server:

Running in FIPS 140-2 Mode
Validating FIPS certified DLL…Passed

Connecting to
attempting… Success!
Username: neilsftp
Authentication SUCCESS
Remote Server Disconnected Unexpectedly

No matter how I try to get in it authorizes me and dumps me.


76 Tausif Ahamd January 17, 2015 at 11:07 am

Really it helpful thanks a lot :)


Leave a Comment

Tagged as: , , , , , , , , , , , , , ,

Previous Faq:

Next Faq: