LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-12-2004, 08:21 PM   #1
fatrandy13
Member
 
Registered: Jun 2004
Location: new jersey
Distribution: anything debian based, long live apt-get
Posts: 230

Rep: Reputation: 30
/var/log/wtmp ???


today i was looking around in /var to see if i could free up some space by removing any log files that might be too big.... i noticed a file in /var/log called wtmp that was over 10 megabytes. does anyone know if this is a nessacary file for the system, or even what program uses? if its not used for anything important, its gettin deleted. (when you have an 8 gig hard drive, 10 megs is nice to free up...hah) thanx
 
Old 12-12-2004, 09:46 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
wtmp seems to be written in binary, or some such format which can't be read by text editors. To see what's in that file, use the strings command.

It works like this: strings /var/log/wtmp.

The return seems to be related to who logged in, and the kernel version which is up an running.

My recommendation: don't delete the file; just zero it out like this:
su to root
cd to /var/log
/dev/null > wtmp

The last command overwrites /var/log/wtmp with nothing (you get an empty file, but leave the file in place).
 
Old 12-12-2004, 10:07 PM   #3
fatrandy13
Member
 
Registered: Jun 2004
Location: new jersey
Distribution: anything debian based, long live apt-get
Posts: 230

Original Poster
Rep: Reputation: 30
thanx
 
Old 12-13-2004, 10:07 AM   #4
addy86
Member
 
Registered: Nov 2004
Location: Germany
Distribution: Debian Testing
Posts: 332

Rep: Reputation: 31
$ man wtmp
will give you more information.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/var/log/wtmp mrant Linux - Security 4 07-14-2013 09:41 PM
/var/log/wtmp praveenv Linux - Newbie 5 08-23-2004 03:48 PM
cleaning up /var/adm/wtmp Risc91 AIX 5 08-23-2004 10:52 AM
Strange results in /var/log/apache/access.log subt13 Linux - Security 2 08-03-2004 02:21 PM
wierd characters in /var/log/wtmp mindfestival Linux - Newbie 2 04-22-2004 02:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration