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