LinuxQuestions.org
Help answer threads with 0 replies.
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 04-08-2009, 03:54 AM   #1
slimsz
LQ Newbie
 
Registered: Apr 2009
Posts: 10

Rep: Reputation: 0
Question how to's ? Help plz


Hello

can u help me with these questions

how to find file larger than 0000 size
how to empty specific file , for example "error_logs"

finally
can i change the directory of where apache store logs , i mean is it possible to make apache write these logs to another disk , "home" for example instead of /usr ?


thanks
 
Old 04-08-2009, 04:05 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
how to find file larger than 0000 size
man find
Quote:
how to empty specific file , for example "error_logs"
Code:
> logfile
However, logs are rotated, so why would you want to do that?
Quote:
can i change the directory of where apache store logs , i mean is it possible to make apache write these logs to another disk , "home" for example instead of /usr ?
Look in the configuration file from apache
Again why would you want to do that?
Logs are written in /var/log/
 
Old 04-08-2009, 06:04 AM   #3
slimsz
LQ Newbie
 
Registered: Apr 2009
Posts: 10

Original Poster
Rep: Reputation: 0
repo

i didnt understand anything

Quote:
man find
huh ? what s this

Quote:
> logfile
is this quiz ?


man im beginner dont know anything
 
Old 04-08-2009, 06:17 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If you run the command
:> logfile

You will be using redirection to overwrite the contents of the file. The : is a null command that does nothing.

The find command can locate empty files using the -empty argument.
E.G. to find empty files in ~/Documents/, you could run:
find ~/Documents/ -type f -empty

Read the man page for find by entering "man find" in the terminal, or "man:find" in konqueror to read an html version.
Find is a very useful command. It would be worthwile to read the man & info pages for it.
 
  


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
WineX how to's lchisholm Linux - Software 5 04-29-2007 08:57 PM
how to's?? xylebhaby Linux - Newbie 3 10-02-2006 02:18 AM
How to's? Jayce21 Linux - Newbie 2 12-15-2005 11:20 PM
How to's zWaR Linux - Newbie 2 02-22-2004 09:51 AM
How to read how to's... sramelyk Slackware 20 08-24-2003 03:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:43 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