Skip to content
/ init Public

Introduction subject to System and Network Administration, which (oddly) originated from a heavy drinking night.

Notifications You must be signed in to change notification settings

mchocho/init

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

init

This is an initiatian subject that will give you the opportunity to discover basic system and network commands. You can find the subject here


Mandatory part

V.1 Let’s be friends
  • Follow Slash16 on Facebook, Twitter and Linkedin
V.2 Network
    1. Get the list of the network interfaces of the machine without displaying any detail for these interfaces. Only the list of names.
    1. Identify and display the Ethernet interface characteristics:
    • (a) Identify broadcast address
    • (b) Identify all IP addresses which are part of the same subnet
    1. Identify the MAC address of the Wi-Fi card
    1. Identifiy the default gateway in the routing table
    1. Identify the IP address of the DNS that responds to the following url: slash16.org
    1. Get the complete path of the file that contains the IP address of the DNS server you’re using
    1. Query an external DNS server on the slash16.org domain name (ie. : google 8.8.8.8)
    1. Find the provider of slash16.org
    1. Find the external IP of 42.fr
    1. Identify the network devices between your computer and the slash16.org domain
    1. Use the output of the previous command to find the name and IP address of the device that makes the link between you (local network) and the outside world
    1. Find the IP that was assigned to you by dhcp server
    1. Thanks to the previous question and the reverse DNS find the name of your host
    1. What file contains the local DNS entries?
    1. Make the intra.42.fr address reroute to 46.19.122.85
V.3 System
    1. In what file can you find the installed version of your Debian?
    1. What command can you use to rename your system?
    1. What file has to be modified to make it permanent?
    1. What command gives you the time since your system was last booted?
    1. Name the command that determines the state of the SSH service.
    1. Name the command that reboots the SSH service.
    1. Figure out the PID of the SSHD service.
    1. What file contains the RSA keys of systems that are authorized to connect via SSH?
    1. What command lets you know who is connected to the System?
    1. Name the command that lists the partition tables of drives?
    1. Name the command that displays the available space left and used on the system in an humanly understandable way
    1. Figure out the exact size of each folder of /var in a humanly understandable way followed by the path of it.
    1. Name the command that find, in real time, currently running processes
    1. Run the ‘tail -f /var/log/syslog‘ command in background
    1. Find the command that kills the background command’s process
    1. Find the service which makes it possible to run specific tasks following a regular schedule
    1. Find the command that allows you to connect via ssh on the VM. (In parallel with the graphic session)
    1. Find the command that kills ssh service
    1. List all services which are started at boot time and name this kind of services
    1. List all existing users on the VM
    1. List all real users on the VM
    1. Find the command that add a new local user
    1. Explain how connect yourself as new user. (With graphic session and ssh session)
    1. Find the command that list all packages
V.4 Scripting
    1. Write a script which displays only the login, UID and Path of each entry of the /etc/passwd file.
    1. Write a script which delete an ACTIVE user on the VM.
    1. Three’s a Charm. Write a script of you choice.
References

Kisses and chocolates

About

Introduction subject to System and Network Administration, which (oddly) originated from a heavy drinking night.

Topics

Resources

Stars

Watchers

Forks

Languages