help with the control.

Discussion in 'Command Line' started by evgen-20058, Aug 2, 2012.

  1. evgen-20058

    evgen-20058 New Member

    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
  2. Kerms

    Kerms New Member

    Messages:
    59
    Likes Received:
    12
    Trophy Points:
    0
    That vaguely looks like some basic linux sysadmin test issued by some college.
    Are you asking for help on it?


    What does `by network' mean? You gave 10 local IPs with what seems to be a netmask, and some of the IPs are illegal from the netmask rules. (Allowed 192.168.6.1 - 192.168.6.30)




    http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers




    720 minutes is 12 hours; 12(hours) * 60(minutes) = 720(minutes); 1440 minutes is 24 hours.




    You answered in days; for the time, it's correct, but the question was asking for minutes.
    30(days) * 60(hours) * 60(minutes) = 108000(Minutes)




    Assuming 192.168.7.62 is the highest available IP, you need a netmask that at least allocates 64 raw IPs; so the subnet can be 255.255.255.192 or less.
    Therefore, 255.255.255.224, 255.255.255.240, 255.255.255.248, are illegal subnets.



    That seems correct. The command `dig' is a more verbose dns lookup tool.




    Command `whois' actually does that.




    What you gave is the man page for the command date. What I think you want is `man -k keyword'.
    If you want all manpages that contains the instance of the word `date' in the man pages' context, I'm afraid you have to create a script to do that.




    You need execute permissions on the directory to cd into it. Root or the owner can fix this.




    if [ -f sea ] && [ -f .ocean ]; then; echo "echo\n123" >> .ocean; fi
    or
    [ -f sea ] && [ -f .ocean ] && echo "echo\n123" >> .ocean
    You wrote "If sea exists, append '123' to .ocean" and the question asked if both .ocean and sea exists, write.




    ls -rS
    -r Ascends (reverses) it.




    Lastly, taking a class to learn Linux or to become a sysadmin is the wrong way. Yes, it's useful, it teaches you stuff, but what makes a good Linux user or sysadmin is self exploration/education.
    What this class/test is teaching you is that there is only one way to do things. This is wrong. There are literally hundreds, if not thousands of ways to do what this test is asking for.
    And on top of that, the test is implying that you have to remember this crap. To put it, no sysadmin/linux user will ever blame a Google-class sysadmin to search some trivial how-to or reference charts in some man page or via search engine.
    Google is your best friend you will ever have; don't try to alienate him.
    Hell, I even used google on more than half of these questions.
    evgen-20058 likes this.
  3. evgen-20058

    evgen-20058 New Member

    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Why 60 (hours) in a day is 24 hours??
    30(days) * 24(hours) * 60(minutes) = 43200(Minutes)

    but it is better to use $ host -t mx foo.com

    IMHO, I would use $ du -hs * | sort -r -h | head -13

    wrong, an error... would be so true
    [[ -f sea && -f .ocean ]] && echo 123 >> .ocean


    thank you for your help
    have tried Russian forums, there are not many avail
  4. Kerms

    Kerms New Member

    Messages:
    59
    Likes Received:
    12
    Trophy Points:
    0
    Crap, you're right. Thought typo.


    At least on Bash, my way worked; I don't think it's an error.


    Lastly,
    Sadly, I don't speak Russian, and using a Translator will be a bit awkward for me.
    But either way, I'd be glad to help with a few.
    (Where is the Russian forums?)
  5. evgen-20058

    evgen-20058 New Member

    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    the only forum that helped me a linuxforum.ru
    there besides my questions were still a lot of useful information that can take note.
  6. evgen-20058

    evgen-20058 New Member

    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0

Share This Page