Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2012
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Exclamation help with the control.

    1
    Last edited by evgen-20058; 08-09-2012 at 05:30 AM.




  2. #2
    Join Date
    Jul 2012
    Posts
    60
    Thanks
    0
    Thanked 10 Times in 9 Posts
    Rep Power
    1
    That vaguely looks like some basic linux sysadmin test issued by some college.
    Are you asking for help on it?


    Quote Originally Posted by evgen-20058 View Post
    1. Group these IP addresses by network:
    192.168.6.1 (255.255.255.224)
    192.168.6.24 (255.255.255.224)
    192.168.6.31 (255.255.255.224)
    192.168.6.33 (255.255.255.224)
    192.168.6.55 (255.255.255.224)
    192.168.6.61 (255.255.255.224)
    192.168.6.63 (255.255.255.224)
    192.168.6.64 (255.255.255.224)
    192.168.6.65 (255.255.255.224)
    192.168.6.75 (255.255.255.224)
    192.168.6.76 (255.255.255.224)
    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)




    Quote Originally Posted by evgen-20058 View Post
    2. Fill in the port numbers that come to mind when you see below service names (Hope you don’t have to Google; If you used Google – Mark it so)

    http 80, 8080
    ftp 21,20
    telnet 23
    pop3 110
    https 443
    dns 53
    snmp 161
    smtp 25
    tcp здесь я не понял что имелось в виду
    ssh 22

    3. Fill in the service names that come to mind when you see these ports (Hope you don’t have to Google; If you used Google – Mark it so)

    tcp port 110 pop3
    tcp port 3389 rdp
    tcp port 2689 -
    tcp port 139 netBios
    tcp port 389 ldap
    udp port 53 dns
    udp port 123 ntp
    udp port 500 isakmp
    udp port 514 shell, syslog
    tcp port 666 -
    tcp port 3128 kerio firewall
    http://en.wikipedia.org/wiki/List_of...P_port_numbers




    Quote Originally Posted by evgen-20058 View Post
    4. If a pc has a DHCP lease of one day, how long (in minutes) after obtaining that lease will this workstation attempt to renew it?
    720 min
    720 minutes is 12 hours; 12(hours) * 60(minutes) = 720(minutes); 1440 minutes is 24 hours.




    Quote Originally Posted by evgen-20058 View Post
    5. If a pc has a BOOTP address, how long (in minutes) after obtaining that address will this workstation attempt to renew it?
    By default, the BOOTP protocol allocates a dynamic IP-addresses to rent for 30 days.
    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)




    Quote Originally Posted by evgen-20058 View Post
    7. If a Computer’s IP address is 192.168.7.62 and its default gateway is 192.168.7.33, which of the following could not possibly be the pc’s netmask?

    255.255.255.128 no
    255.255.255.192 only
    255.255.255.224 no
    255.255.255.240 no
    255.255.255.248 no
    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.



    Quote Originally Posted by evgen-20058 View Post
    8. If I wanted to find out the IP address of the host(s) that accept(s) mail on behalf of domain foo. com, what DNS record would I be interested in?
    $ host foo. com
    That seems correct. The command `dig' is a more verbose dns lookup tool.




    Quote Originally Posted by evgen-20058 View Post
    9. What company owns the IP block 172.25.3.0?
    $ host 172.25.3.0
    Command `whois' actually does that.




    Quote Originally Posted by evgen-20058 View Post
    10. To display a list of all manual pages containing the keyword "date", what command would you type?
    $ man date;$ info date.
    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.




    Quote Originally Posted by evgen-20058 View Post
    11. Linux user accidentally entered cd; chmod 644 . into terminal followed by “Enter/Return” command
    - What problem occurs when he/she logs in the next time, and what level of privilege is required to undo the changes?
    644 – -rw-r--r-- All users have read access, the owner can edit
    You need execute permissions on the directory to cd into it. Root or the owner can fix this.




    Quote Originally Posted by evgen-20058 View Post
    This command is run as root. Defualt user can not change the attributes of files and directories.
    12. Write a shell script to append "echo\n123" to the file ".ocean” but only if "sea" and “.ocean” file already exists.
    [ -f sea ] && echo 123 >> .ocean
    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.




    Quote Originally Posted by evgen-20058 View Post
    14. How would you list 13 files / directories size wise in reverse order?
    $ ls -S
    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.
    Last edited by Kerms; 08-03-2012 at 05:08 PM.

  3. The Following User Says Thank You to Kerms For This Useful Post:

    evgen-20058 (08-04-2012)

  4. #3
    Join Date
    Aug 2012
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by Kerms View Post
    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)
    Why 60 (hours) in a day is 24 hours??
    30(days) * 24(hours) * 60(minutes) = 43200(Minutes)

    Quote Originally Posted by Kerms View Post
    That seems correct. The command `dig' is a more verbose dns lookup tool.
    but it is better to use $ host -t mx foo.com

    Quote Originally Posted by Kerms View Post
    ls -rS
    IMHO, I would use $ du -hs * | sort -r -h | head -13

    Quote Originally Posted by Kerms View Post
    if [ -f sea ] && [ -f .ocean ]; then; echo "echo\n123" >> .ocean; fi
    or
    [ -f sea ] && [ -f .ocean ] && echo "echo\n123" >> .ocean
    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
    Last edited by evgen-20058; 08-04-2012 at 06:52 AM.

  5. #4
    Join Date
    Jul 2012
    Posts
    60
    Thanks
    0
    Thanked 10 Times in 9 Posts
    Rep Power
    1
    Quote Originally Posted by evgen-20058 View Post
    Why 60 (hours) in a day is 24 hours??
    30(days) * 24(hours) * 60(minutes) = 43200(Minutes)
    Crap, you're right. Thought typo.


    Quote Originally Posted by evgen-20058 View Post
    wrong, an error... would be so true
    [[ -f sea && -f .ocean ]] && echo 123 >> .ocean
    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?)

  6. #5
    Join Date
    Aug 2012
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    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.

  7. #6
    Join Date
    Aug 2012
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    1

 

 

Similar Threads

  1. ACLs finer grained permissions control
    By grim76 in forum Linux-Howtos
    Replies: 3
    Last Post: 05-05-2012, 08:45 AM
  2. Replies: 0
    Last Post: 12-31-2011, 01:26 PM
  3. Replies: 0
    Last Post: 12-28-2011, 08:19 AM
  4. Replies: 0
    Last Post: 12-05-2011, 10:26 PM
  5. C development on Linux - Flow Control - IV.
    By Fred in forum Linux News
    Replies: 0
    Last Post: 11-29-2011, 01:40 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
           








Check out Linux Central for Linux software and other goodies!





» Stats

Members: 3,561
Threads: 3,917
Posts: 9,434
Top Poster: Fred (1,486)
Welcome to our newest member, groverha45

» Links



Powered by vBadvanced CMPS