LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

logrorate - centos 5

Posted 11-05-2011 at 07:40 AM by Sharad Garg

Hi

I have a logfile of my application. I want this file to rotate if its size exeeds 1 MB.

For this I am using `logrorate'. I am running the logrorate manually. S whenever I run logrorate, log file gets rorates. It does not take care whether the file size is less than 1 M or not.

I have defined size 1M in the config file. For reference the content of config file is here -

=======================================================================================...
LQ Newbie
Posted in Uncategorized
Views 296 Comments 0 Sharad Garg is offline
Old

allowing commands to continue after parent shell exit

Posted 11-05-2011 at 05:52 AM by neonsignal

Because commands that are started from a shell are child processes, they will normally be terminated when the shell exits.

A command can be run with nohup so that it can continue beyond the life of the parent shell, and output will be directed to the file nohup.out:
Code:
nohup command
Alternatively, if the command is already running (ie in the background), it can be allowed to continue by using disown before closing the shell:
Code:
disown
...
Senior Member
Posted in Uncategorized
Views 7792 Comments 2 neonsignal is offline
Old

resetting the root password

Posted 11-05-2011 at 05:36 AM by neonsignal
Updated 11-05-2011 at 05:38 AM by neonsignal

When the root password has been lost, it can be reset as follows.

At the grub menu, select 'e' to edit, and add the parameter 'init=/bin/bash' to the linux line. Then 'ctrl-x' to continue booting. This will start the system into a command shell.

Then remount the filesystem root as writable, so that the password can be changed:
Code:
mount -n -o rw,remount /
Change the password in the usual way, then sync to disk:
Code:
passwd
...
Senior Member
Posted in Uncategorized
Views 257 Comments 0 neonsignal is offline
Old

ubuntu 11.10

Posted 11-04-2011 at 08:09 PM by alucard74

Help I've just upgraded to the latest version of ubuntu 11.10 and have lost dual screen. I am running a dell inspiron 1520 with nvidia graphics card. When I go into display all it tells me is I have an unknown screen and won't search for other monitors or tvs. It was working fine before upgrade, can anyone help?????
LQ Newbie
Posted in Uncategorized
Views 21912 Comments 6 alucard74 is offline
Old

Command line mystery

Posted 11-04-2011 at 07:38 PM by Mountaineer

In Ubuntu 11.04, I copied an mp3 file to mu home folder and then tried to use the terminal to move it to /Music. Didn't work. Trial and error may help. I used to know DOS pretty well, but this is elusive.
Member
Posted in Uncategorized
Views 4034 Comments 1 Mountaineer is offline

  



All times are GMT -5. The time now is 09:05 PM.

Main Menu
Advertisement
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