LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-07-2012, 09:04 PM   #1
edwardkhong2012
LQ Newbie
 
Registered: May 2012
Posts: 4

Rep: Reputation: Disabled
Accident deleted log file in server


HI All

I accidentally delete log files which located in

/var/log/cups/error_log
/var/log/cups/access_log

The system seems like not generate again for the file and after i deleted the log file, the disk space doesn't increase.

Please help...
 
Old 05-07-2012, 09:13 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,245

Rep: Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326
Disk space doesn't increase because the file is still open, its not really deleted ( 'unlinked' ) until the prog releases it.
Try
Code:
service cups restart
or whatever the equiv is on your distro.
(Please add distro name/version to your profile for future ref)
 
Old 05-07-2012, 10:38 PM   #3
edwardkhong2012
LQ Newbie
 
Registered: May 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thx for your suggestion~~
 
  


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
Deleted /usr/lib by accident molossus Fedora 1 12-28-2010 07:23 PM
deleted file by accident in fedora hillaryma Linux - Newbie 6 04-01-2010 06:47 AM
Deleted ~/.mozilla by accident SentralOrigin Linux - Software 2 08-04-2007 04:47 PM
Deleted ls by accident cake81 Linux - Newbie 4 01-19-2006 05:01 AM
deleted cdrom by accident chronos Linux - General 1 12-16-2000 07:36 PM


All times are GMT -5. The time now is 10:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration