Sie sind auf Seite 1von 2

Lab 1

1.1) Install Linux


- create virtual machie with
* 1 cpu
* 1 GB memory
* 1 harddisk 20GB space
* 1 network interface
- Install with English language and English keyboard
- Install with mininal packages
- enable network on boot
- set hostname to "srv+last 4 digit of your student ID"
exmple : srv5000
- login to server via console and check ip of server with command "ip addr
show".
1.2) Try to login to server via ssh ( by putty ).
1.3) At server console .Change terminal to tty2 and login with root user.
1.4) Display current user login.

Lab 2
2.1) Display manual page of command "uname"
2.2) Display server name and version of kernel by command "uname"
2.3) create directory lab2
2.4) change directory to lab2
2.5) copy file /etc/hosts to lab2
2.6) copy file /etc/hosts to lab2 and change name to new_hosts
2.7) how many line of file new_host
2.8) display size of file hosts
2.9) remove directory lab2
2.10) show all commands that run by you.

Lab 3
3.1) login to server
3.2) change directory to / and dislay all files and directories in /
filesystem
3.3) issue command "file /usr" and compare output with "file /bin"
3.4) create directory lab3
3.5) create empty file in lab3 direcory ( touch a )
3.6) issue command "ls" and redirect output to file output.txt
3.7) issue command "ls c" and redirect error to error.txt
3.8) issue command "ls output.txt c" and redirect output and error to
same file ( all.txt )
3.9) issue command "ls output.txt c" and redirect output and error to
same file ( all.txt ) and terminal

Lab 4)
4.1) create user
- username --> user+last 4 digit of your student ID ( + 1000 if
less than 1000 )
- group --> last 4 digit of your student ID ( + 1000 if less than
1000 )
- home directory ---> /home/student/username
- shell --> /bin/bash
- comment --> firstname and lastname
4.2) create user
- username usera
4.3) create user
- username userb
4.4) login as root user and switch user to usera
4.5) from usera swith to userb
4.6) from userb swith to root user
4.7) login as root user and change password of usera
4.8) login as usera and change passwdord of userb
4.9) login as userb and change password
4.10) login as root user and force userb change password after next login
4.11) login as root user and lock usera

Das könnte Ihnen auch gefallen