Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Some questions about linux administration...

 
Goto page 1, 2
   Soft32 Home -> Linux -> Setup RSS
Next:  Accepted libgeography-nationalgrid-perl 1.6-9 (so..  
Author Message
Lukasz Matuszewski

External


Since: Sep 04, 2009
Posts: 1



(Msg. 1) Posted: Fri Sep 04, 2009 5:26 am
Post subject: Some questions about linux administration...
Archived from groups: comp>os>linux>setup (more info?)

Write commands, which are able to do following from shell level:
A. send a signal to desired process
B. find files which names are matched to desired pattern
C. find files whos contents are matched to desired pattern
D. cut a range of characters from every line
E. view last N lines from desired file
F. execute desired program step by step (debug him)

File access.log from server www has reached allowed size for file
system.
1. How to set file size to 0 using shell command.
2. Write a script in whatever language ( perl, bash itp. ) checking
once a day size of the access.log file and in a circumstance that he
reached its maximum capacity ( eg 2 GB) he will set size of the file
to 0 in the simples case command - it is allowed to use cron but with
telling the how to registry it/how to run it.

III. What command with changing settings in policies GPO on domain
controller, we can force to refresh rules ?

Waiting for quick and wholetelling reply...thanks in advance.
Back to top
Login to vote
Florian Diesch

External


Since: Feb 11, 2007
Posts: 29



(Msg. 2) Posted: Fri Sep 04, 2009 11:20 am
Post subject: Re: Some questions about linux administration... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Lukasz Matuszewski <matuszewski.lukasz RemoveThis @gmail.com> writes:

> Write commands, which are able to do following from shell level:
> A. send a signal to desired process

kill

> B. find files which names are matched to desired pattern

find

> C. find files whos contents are matched to desired pattern

grep

> D. cut a range of characters from every line

cut

> E. view last N lines from desired file

tail

> F. execute desired program step by step (debug him)

gdb

> File access.log from server www has reached allowed size for file
> system.
> 1. How to set file size to 0 using shell command.

cat /dev/null > access.log

> 2. Write a script in whatever language ( perl, bash itp. ) checking
> once a day size of the access.log file and in a circumstance that he
> reached its maximum capacity ( eg 2 GB) he will set size of the file
> to 0 in the simples case command - it is allowed to use cron but with
> telling the how to registry it/how to run it.

logrotate



Florian
--
<http://www.florian-diesch.de/>
Back to top
Login to vote
Bill Marcum

External


Since: Dec 17, 2006
Posts: 154



(Msg. 3) Posted: Fri Sep 04, 2009 11:20 am
Post subject: Re: Some questions about linux administration... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2009-09-04, Lukasz Matuszewski <matuszewski.lukasz DeleteThis @gmail.com> wrote:

> Write commands, which are able to do following from shell level:
> A. send a signal to desired process
> B. find files which names are matched to desired pattern
> C. find files whos contents are matched to desired pattern

Don't ask the net to do your homework. Try to find the answers on your own
and come back if you need help.
Back to top
Login to vote
Nico Kadel-Garcia

External


Since: Nov 04, 2008
Posts: 41



(Msg. 4) Posted: Fri Sep 04, 2009 1:15 pm
Post subject: Re: Some questions about linux administration... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sep 4, 8:26 am, Lukasz Matuszewski <matuszewski.luk....RemoveThis@gmail.com>
wrote:

> Waiting for quick and wholetelling reply...thanks in advance.

That's nice. What text are you using for your notes? And have you
learned about the "man" command, and "info", for looking up
documentation?
Back to top
Login to vote
Moe Trin

External


Since: Dec 26, 2004
Posts: 371



(Msg. 5) Posted: Fri Sep 04, 2009 2:45 pm
Post subject: Re: Some questions about linux administration... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Fri, 4 Sep 2009, in the Usenet newsgroup comp.os.linux.setup, in article
<a5919921-fe30-4b94-9ed4-c583cb6002f8 DeleteThis @g19g2000yqo.googlegroups.com>,
Lukasz Matuszewski wrote:

NOTE: Posting from groups.google.com (or some web-forums) dramatically
reduces the chance of your post being seen. Find a real news server.

>Write commands, which are able to do following from shell level:

When is the homework due? Why are you posting here instead of doing
the homework yourself?

>A. send a signal to desired process

[compton ~]$ whatis apropos whatis
apropos (1) - search the whatis database for strings
whatis (1) - search the whatis database for complete words
[compton ~]$ apropos signal | wc -l
43
[compton ~]$

>B. find files which names are matched to desired pattern
^^^^

>C. find files whos contents are matched to desired pattern

[compton ~]$ apropos pattern | wc -l
35
[compton ~]$

>D. cut a range of characters from every line
^^^

and so on. If you have to ask for help with questions like this, you
should not be taking the class - you are not paying attention to the
teacher, or the teacher is not presenting the material in a manor
suitable to your lack of skills. It's also sad that you are mis-using
a search engine to _post_ rather that using it to find the answers on
your own... like at http://tldp.org/guides.html

Old guy
Back to top
Login to vote
Ing. Adolf Hochhaltinger

External


Since: Sep 06, 2009
Posts: 1



(Msg. 6) Posted: Sun Sep 06, 2009 5:20 pm
Post subject: Re: Some questions about linux administration... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Bill Marcum schrieb:
> On 2009-09-04, Lukasz Matuszewski <matuszewski.lukasz RemoveThis @gmail.com> wrote:

> Don't ask the net to do your homework. Try to find the answers on your own
> and come back if you need help.
>

Hi Bill,

Though I got the point of your message and have to consider it being
quite understandable: I see it different (to give you an example): When
I drive to your hometown an stop next to you to ask you for a street you
know quite well - would your answer in that case also be only I should
go to the next gas station and purchase a roadmap?

You know the 'quality' of many linux manuals - often many information
and not so much structure; sometimes it takes a great amount of time for
beginners until one finally finds that few lines that contains that
essential bit of information one needed. So why let any poor guy read
some hundreds of manual pages just to find finally out these few commands?

Florian Diesch has given him in his answer the most valuable info (say,
the 'basics'), just enough to go along to read now the manuals and
how-tos _only_ about _these_ commands (and no more) to find his
solution, instead reading the manpages of many (all?) commands to find
out after the most of them 'this again was not the command I need!'?
With a few lines of help Florian saved Lukas (as I think) maybe not just
hours, but perhaps several days of his time.

I consider that sort of help Florian gave really helpful especially for
all newbies who don't know the linux shell commands at all.
Remember, many of them came over from the Windows world and knew only
the DOS way until then. especially for them I find it very important not
to scare them away when they put their first questions into a forum.

For many (new) Linux users this help is extremely useful - despite (yes,
I know!) these questions has surely been asked many times before.

Hope you take this not hostile!

with regards

A.H.
Back to top
Login to vote
The Natural Philosopher

External


Since: Apr 15, 2009
Posts: 97



(Msg. 7) Posted: Mon Sep 07, 2009 5:20 am
Post subject: Re: Some questions about linux administration... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ing. Adolf Hochhaltinger wrote:
> Bill Marcum schrieb:
>> On 2009-09-04, Lukasz Matuszewski <matuszewski.lukasz.RemoveThis@gmail.com> wrote:
>
>> Don't ask the net to do your homework. Try to find the answers on
>> your own
>> and come back if you need help.
>>
>
> Hi Bill,
>
> Though I got the point of your message and have to consider it being
> quite understandable: I see it different (to give you an example): When
> I drive to your hometown an stop next to you to ask you for a street you
> know quite well - would your answer in that case also be only I should
> go to the next gas station and purchase a roadmap?
>
> You know the 'quality' of many linux manuals - often many information
> and not so much structure; sometimes it takes a great amount of time for
> beginners until one finally finds that few lines that contains that
> essential bit of information one needed. So why let any poor guy read
> some hundreds of manual pages just to find finally out these few commands?
>
> Florian Diesch has given him in his answer the most valuable info (say,
> the 'basics'), just enough to go along to read now the manuals and
> how-tos _only_ about _these_ commands (and no more) to find his
> solution, instead reading the manpages of many (all?) commands to find
> out after the most of them 'this again was not the command I need!'?
> With a few lines of help Florian saved Lukas (as I think) maybe not just
> hours, but perhaps several days of his time.
>
> I consider that sort of help Florian gave really helpful especially for
> all newbies who don't know the linux shell commands at all.
> Remember, many of them came over from the Windows world and knew only
> the DOS way until then. especially for them I find it very important not
> to scare them away when they put their first questions into a forum.
>
> For many (new) Linux users this help is extremely useful - despite (yes,
> I know!) these questions has surely been asked many times before.
>
> Hope you take this not hostile!
>
> with regards
>
> A.H.
Its not just Linux. Nearly all technical manuals are written from the
designers perspective.

I.e. 'here are the features, and this is what they do'

VERY few are written from the perspective of

'I have this problem: what possible manual pages do I need to fix it'

Google is your friend here.
Back to top
Login to vote
Moe Trin

External


Since: Dec 26, 2004
Posts: 371



(Msg. 8) Posted: Mon Sep 07, 2009 3:00 pm
Post subject: Re: Some questions about linux administration... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sun, 06 Sep 2009, in the Usenet newsgroup comp.os.linux.setup, in article
<17e30$4aa42d1c$54731089$28446@news.chello.at>, Ing. Adolf Hochhaltinger wrote:

>Bill Marcum schrieb:

>> Lukasz Matuszewski <matuszewski.lukasz.RemoveThis@gmail.com> wrote:

>> Don't ask the net to do your homework. Try to find the answers on
>> your own and come back if you need help.

>Though I got the point of your message and have to consider it being
>quite understandable: I see it different (to give you an example):
>When I drive to your hometown an stop next to you to ask you for a
>street you know quite well - would your answer in that case also be
>only I should go to the next gas station and purchase a roadmap?

Your example doesn't match this situation. Yes, many (if not most)
of us would give the directions you seek. Would they give the same
answer to multiple unrelated questions - such as those a treasure
seeker would ask?

Results 1 - 10 of about 6,770,000 for geo-caching. (0.14 seconds)

Geocaching is similar to the 150-year-old game letterboxing, which
uses clues and references to landmarks embedded in stories.

The questions the O/P posted are _clearly_ a homework assignment, and
are part of a training scheme to teach how to use those commands. If
the O/P decided that he needed help beyond the training he had
received, he should either quit the class, or ask the instructor for
more assistance. The O/P isn't going to learn anything by asking
others to do his homework for him.

>Florian Diesch has given him in his answer the most valuable info (say,
>the 'basics'), just enough to go along to read now the manuals and
>how-tos _only_ about _these_ commands (and no more) to find his
>solution, instead reading the manpages of many (all?) commands to find
>out after the most of them 'this again was not the command I need!'?

[fermi ~]$ find /usr/share/man/man[1-8n] -type f | wc -l
9375
[fermi ~]$ find /usr/share/info -type f | wc -l
160
[fermi ~]$ ls `echo $PATH | tr ':' ' '` | grep -Ev '(Neutral^$)' | wc -l
3005
[fermi ~]$ find `echo $PATH | tr ':' ' '` -type f -atime -90 | wc -l
333
[fermi ~]$ ^90^30
find `echo $PATH | tr ':' ' '` -type f -atime -30 | wc -l
176
[fermi ~]$ history | cut -c7- | sed 's/ | / # /g' | tr '#' '\n' | sed
's/^ *//' | cut -d' ' -f1 | sort -u | wc -l
79
[fermi ~]$

There are 9375 man pages and 160 info pages on this system, and there
are 3005 "commands" in my $PATH. Even though I use the command line
rather extensively (there are 21 xterms on my desktop, and not a
single icon), I (and _all_ of the other users on this system) have only
used 333 of those 3005 commands in the last 90 days - 176 in the last
30 days. Looking at my history data, I've only used 79 different
commands (about average for me). But in the case of the O/P, I
_really_ doubt that the instructor discussed more than twenty
commands.

>I consider that sort of help Florian gave really helpful especially for
>all newbies who don't know the linux shell commands at all.
>Remember, many of them came over from the Windows world and knew only
>the DOS way until then.

* DOS-Win-to-Linux-HOWTO, From DOS/Windows to Linux HOWTO

Updated: Aug 1999. Written for all the DOS and Windows users who
have decided to switch to Linux.

Actually, the index is wrong here - this document was last updated on
31 August, 2000. There _was_ an earlier document titled
DOS-to-Linux-HOWTO last updated in October 1997, but it has been
withdrawn from official archives.

>For many (new) Linux users this help is extremely useful - despite
>(yes, I know!) these questions has surely been asked many times before.

The O/P posted from a search-engine.

>Hope you take this not hostile!

I'm not Bill, but I don't see your post as hostile. But Bill's post
was not hostile either.

Old guy
Back to top
Login to vote
s. keeling

External


Since: Jul 16, 2007
Posts: 41



(Msg. 9) Posted: Mon Sep 07, 2009 9:20 pm
Post subject: Re: Some questions about linux administration... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Moe Trin <ibuprofin.RemoveThis@painkiller.example.tld>:
> On Sun, 06 Sep 2009, in the Usenet newsgroup comp.os.linux.setup, in article
> <17e30$4aa42d1c$54731089$28446@news.chello.at>, Ing. Adolf Hochhaltinger wrote:
> >Bill Marcum schrieb:
> >> Lukasz Matuszewski <matuszewski.lukasz.RemoveThis@gmail.com> wrote:
> >> Don't ask the net to do your homework. Try to find the answers on
> >> your own and come back if you need help.
>
> >Though I got the point of your message and have to consider it being
>
>
> rather extensively (there are 21 xterms on my desktop, and not a

Moe, mrxvt! Tabs! 21st Century!

Yeah, it doesn't do all that Xterm does, but it's damn close (do you
really use the obscure bloat that Xterm includes that often?).

[No offence intended, TD. I do use Xterm for specific cases.]


--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://blinkynet.net/comp/uip5.html Linux Counter #80292
- - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me.
Back to top
Login to vote
Andrew Halliwell

External


Since: Nov 14, 2008
Posts: 50



(Msg. 10) Posted: Thu Sep 10, 2009 11:20 am
Post subject: Re: Some questions about linux administration... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Lukasz Matuszewski <matuszewski.lukasz RemoveThis @gmail.com> wrote:
> Write commands, which are able to do following from shell level:
> A. send a signal to desired process
> B. find files which names are matched to desired pattern
> C. find files whos contents are matched to desired pattern
> D. cut a range of characters from every line
> E. view last N lines from desired file
> F. execute desired program step by step (debug him)
G. Do your homework for you.
--
| spike1 RemoveThis @freenet.co,uk | "Are you pondering what I'm pondering Pinky?" |
| Andrew Halliwell BSc | |
| in | "I think so brain, but this time, you control |
| Computer Science | the Encounter suit, and I'll do the voice..." |
Back to top
Login to vote
terryc

External


Since: Sep 11, 2009
Posts: 11



(Msg. 11) Posted: Thu Sep 10, 2009 11:20 pm
Post subject: Re: Some questions about linux administration... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Thu, 10 Sep 2009 15:13:23 +0100, Andrew Halliwell wrote:

> Lukasz Matuszewski <matuszewski.lukasz RemoveThis @gmail.com> wrote:
>> Write commands, which are able to do following from shell level:
>>A. send a signal to desired process

sighup?
>> B. find files which names are matched to desired pattern

find

>>C. find files whos contents are matched to desired pattern

grep

>> D. cut a range of characters from every line

awk or sed

>> E. view last N lines from desired file

tail -N

>> F. execute desired program step by step (debug him)

buggered if I know

> G. Do your homework for you.

These may or may not be correct {Smile
Back to top
Login to vote
Aragorn

External


Since: Dec 10, 2008
Posts: 65



(Msg. 12) Posted: Fri Sep 11, 2009 9:20 am
Post subject: Re: Some questions about linux administration... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Friday 11 September 2009 04:29, someone identifying as *terryc* wrote
in /comp.os.linux.setup:/

> On Thu, 10 Sep 2009 15:13:23 +0100, Andrew Halliwell wrote:
>
>> Lukasz Matuszewski <matuszewski.lukasz.DeleteThis@gmail.com> wrote:
>
>>> F. execute desired program step by step (debug him)
>
> buggered if I know

man strace

>> G. Do your homework for you.
>
> These may or may not be correct {Smile

It is obviously a homework assignment. Wink

--
*Aragorn*
(registered GNU/Linux user #223157)
Back to top
Login to vote
Andrew Halliwell

External


Since: Nov 14, 2008
Posts: 50



(Msg. 13) Posted: Fri Sep 11, 2009 9:20 am
Post subject: Re: Some questions about linux administration... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Aragorn <aragorn RemoveThis @chatfactory.invalid> wrote:
> On Friday 11 September 2009 04:29, someone identifying as *terryc* wrote
> in /comp.os.linux.setup:/
>
>> On Thu, 10 Sep 2009 15:13:23 +0100, Andrew Halliwell wrote:
>>
>>> Lukasz Matuszewski <matuszewski.lukasz RemoveThis @gmail.com> wrote:
>>
>>>> F. execute desired program step by step (debug him)
>>
>> buggered if I know
>
> man strace

That doesn't do single step does it?
the actual program sounds like some kind of gnu database if you just look at
the name...

Not saying what it is though, cos I'm not answering any of his questions....
no matter how indirectly.
--
| spike1 RemoveThis @freenet.co.uk | Windows95 (noun): 32 bit extensions and a |
| | graphical shell for a 16 bit patch to an 8 bit |
| Andrew Halliwell BSc | operating system originally coded for a 4 bit |
| in |microprocessor, written by a 2 bit company, that|
| Computer Science | can't stand 1 bit of competition. |
Back to top
Login to vote
Aragorn

External


Since: Dec 10, 2008
Posts: 65



(Msg. 14) Posted: Fri Sep 11, 2009 11:20 am
Post subject: Re: Some questions about linux administration... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Friday 11 September 2009 15:26, someone identifying as *Andrew
Halliwell* wrote in /comp.os.linux.setup:/

> Aragorn <aragorn.DeleteThis@chatfactory.invalid> wrote:
>> On Friday 11 September 2009 04:29, someone identifying as *terryc*
>> wrote in /comp.os.linux.setup:/
>>
>>> On Thu, 10 Sep 2009 15:13:23 +0100, Andrew Halliwell wrote:
>>>
>>>> Lukasz Matuszewski <matuszewski.lukasz.DeleteThis@gmail.com> wrote:
>>>
>>>>> F. execute desired program step by step (debug him)
>>>
>>> buggered if I know
>>
>> man strace
>
> That doesn't do single step does it?

Not step by step, no... I wouldn't know what does, actually.
However, /strace/ does at least give an overview of all operations a
program does.

> the actual program sounds like some kind of gnu database if you just
> look at the name...
>
> Not saying what it is though, cos I'm not answering any of his
> questions.... no matter how indirectly.

Well, I am always willing to help, but indeed, I am not willing to do
someone's homework for them. How are they hoping to actually learn
something if they're going to be so cheapskate as to ask for the
answers on Usenet? Wink

--
*Aragorn*
(registered GNU/Linux user #223157)
Back to top
Login to vote
terryc

External


Since: Sep 11, 2009
Posts: 11



(Msg. 15) Posted: Fri Sep 11, 2009 11:20 am
Post subject: Re: Some questions about linux administration... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Fri, 11 Sep 2009 15:17:44 +0200, Aragorn wrote:

> On Friday 11 September 2009 04:29, someone identifying as *terryc* wrote
> in /comp.os.linux.setup:/
>
>> On Thu, 10 Sep 2009 15:13:23 +0100, Andrew Halliwell wrote:
>>
>>> Lukasz Matuszewski <matuszewski.lukasz.DeleteThis@gmail.com> wrote:
>>
>>>> F. execute desired program step by step (debug him)
>>
>> buggered if I know
>
> man strace
>
>>> G. Do your homework for you.
>>
>> These may or may not be correct {Smile
>
> It is obviously a homework assignment. Wink

I know. {Smile, but I wouldn't mark my answers right. He needs to man each
and provide a decent example.
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Using VMWare to boot linux patition. - Hi, I regularly switch between winxp pro and mandrake 10.2. Lately this has become a bit of a pain so I looked into..

Problems with fonts rendering under ubuntu feisty ?! - hello my laptop mount an ATI mobility radeon 9700 , my screen resolution is 1280x800 I trying to set the correct..

The out-of-memory killer. - What can a process do to insure that it is the process which dies when the system runs out of memory. (This is as..

[Samba] Book: Automating UNIX and Linux Administration - This message is a shameless plug for my new book: Automating UNIX and Linux Administration. I feel this message is..

Administration - Just a Reminder; We feel you may be eligible for a degree based upon you past work experience. The date for..

Newbie Help - Remote Administration - Sorry for the utter newbishness, but I'm finding it difficult to find a clear, concise answer to my question. I would....
       Soft32 Home -> Linux -> Setup All times are: Pacific Time (US & Canada) (change)
Goto page 1, 2
Page 1 of 2

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]