Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

LINUX administration

Name: Anonymous 2011-03-07 4:24

Can any linux admin, or someone who knows how to do this help me?

1. Write a sequence of commands that find all appearances of file 'core' on the system. Output of the commands needs to be saved in a file '~/corefiles'. Printing of the errors that may be arisen during an execution of the commands needs to be ignored. In the output file for Moodle you need to attach the corresponding sequence of commands and the content of the file 'corefiles'. Answer to the following questions:

a) what mean has the file 'core' on the Linux system?
b) when it is arisen?

2 Write a sequence of commands that from the file '/etc/passwd' prints names of all users on the system sorted according to their lexicographic order. The users need to be listed on the console, then counted and at the end a status line with the following text "On the system is n users" should be printed. Note that n represents the number of users on the system. In addition, answer to the following questions:

a) what mean has the file '/etc/passwd' on the Linux systems?
b) how it is structured?

Guideline: counting of user must be performed with the quotation, i.e. orders comprised with '`'.

3 Write a sequence of commands that prints active processes of the user that is currently logged on the system. You need to print all processes, determine their count and at the end, display a status line with the text "An user u was activated n processes". Here, the variable u determines the user name and n the number of active processes. To display the status line, the quotation operations need to be used. Additionally, the regular expressions should be used by filtering of processes.

Name: Anonymous 2011-03-07 4:31

Is there a way to end the misery of Unix users? I feel sorry for them.

Name: Anonymous 2011-03-07 4:33

>>1
Moodle
was tempted to stop reading there.

what mean
when it is arisen?
`> mfw bad English

Name: Anonymous 2011-03-07 4:39

Do your own homework! You could find answers to all these questions with the allmighty Google search engine.

Name: Anonymous 2011-03-07 4:53

>>4
It's actually spelled "almighty." Try installing a spellcheck plugin or using a superior browser.

Name: Anonymous 2011-03-07 5:51

>>3
Don't greentext.

Name: Anonymous 2011-03-07 6:01

>>5
Thanks for pointing that out. In fact, I noticed after I hit submit, but by then I already was unable to unsubmit it.

Name: Anonymous 2011-03-07 6:05

>>6
`>implying telling me not to greentext won't cause me to greentext even moar

Name: Anonymous 2011-03-07 6:09

>>8
`>implying your gay

Name: Anonymous 2011-03-07 8:15

>>8
Back to /b/ please.

Name: Fuck off, !Ep8pui8Vw2 2011-03-07 8:29

>>10
Fuck off, ``faggot''.

Name: Back to /b/, !uaVa00FkCs 2011-03-07 14:28

>>11
Back to /b/, ``please''.

Name: Anonymous 2011-03-07 17:17

>>12

fuck you faggot

Name: Anonymous 2011-03-07 18:37

My college used Moodle.

Name: Anonymous 2011-03-14 3:49

What the hell is Moodle?

Name: Anonymous 2011-03-14 3:55

>>15
Everything blackboard/webct could never dream of being.

I.e., cluttered and overly-busy UI, easy to administer, and designed by web programmers instead of Java programmers pretending they're web programmers.

Name: Anonymous 2011-03-14 4:03

>>1
1) find / -name 'core' > ~/corefiles 2>/dev/null
2) cat /etc/passwd | cut -d':' -f1 | sort | xargs | awk '{ print $0, "\n",NF,"fucking users" }'
3) man ps

what did i win?

Name: Anonymous 2011-03-14 4:05

oops sorry i got #2 wrong because i forgot your ``faggot quotes'' guideline
here's a resubmission.
2)``cat /etc/passwd | cut -d':' -f1 | sort | xargs | awk '{ print $0, "\n",NF,"fucking users" }'''

Name: Anonymous 2011-03-14 4:59

So who wants to guess: obviously the OP's prof was not an English speaker. Is the terrible grammar the OP's fault or the prof's fault?

Name: Altruist 2011-03-14 6:28

>>19
Your grammar doesn't really impress me either.

Name: Anonymous 2011-03-14 6:33

>>20
That is acceptable—I have so much grammar that you shall most likely find yourself far too bewildered to make sense of all of it.

In fact, I might go so far as to assert that I have all of the grammar.

Name: Altruist 2011-03-14 6:39

>>21
oh waw anonymous you impress me so much! i feel like i'm becoming smarter by being here, do you ever get that feeling? i bet you don't :)

anyways don't forget: ALTRUISM!

Name: Anonymous 2011-03-14 8:37

thx OP i came on cat she hiss at penis

Name: cat 2011-03-14 16:33

>>23
HISSSSS

Name: NIGGGGGGGGGGER 2011-03-14 16:48

Whiteman.

Name: Anonymous 2011-03-15 3:35

>>17
WHY ARE YOU HELPING

Name: Anonymous 2011-03-15 8:52

Name: Anonymous 2011-03-16 4:28

fuque

Name: Anonymous 2011-03-16 4:31

f

Name: Anonymous 2011-03-16 4:32

f

Name: Anonymous 2011-03-16 5:24

<?php
// trollprog.php
function parseHitsFile(

Name: Anonymous 2011-03-16 5:26

Name: Anonymous 2011-03-17 1:38

>>19-22
I agree, the grammar of regular expressions can vary widely. Take for instance the negative lookahead assertion. perl,sed, and vim all seem to have different implementations of it. Quite frustrating.

Don't change these.
Name: Email:
Entire Thread Thread List