Module 5 - Homework
- Go to your home directory and then go to superman directory
- Create a new file called "first4movies" using vi command
- Write
anything you know about all first 4 movies of superman. If you never
watched superman then you can enter at least 20 names of your family
members. This file should have 20 lines and each line should have 5-6
words
- Practice vi command by navigating the file content and remove some lines, edit or undo
- Create a new group superheros (if you don't already have one)
- Create a new user hulk and make sure its group should be superheros and its userid should be 2000
- Once the user hulk is create then change the password for hulk and then login as hulk
- Under hulk home directory create a file Skaar
- Change group ownership of Skaar from superheros to root
- Then create a new group continents
- Create a new users namerica, samerica, asia, europe, australia, africa and antartica
- Make sure all these users groups is continents
- Change
password for every user, then switch into each user one by one using su
- username command and create one file in each user account (e.g.
england file in europe, usa in namerica, japan in asia and so on)
- Also add user namerica to wheel group to allow it to run root commands as root and then test it
- Run last command and find out the number of users logged in. (Do not count duplicate users)
- Run id command on africa and australia users to verify their user id
- Change the date of your system to Aug 22 1998 at 1pm and verify
- Check system uptime
- List 1999 calendar
- List everything with uname command and find out where the system architecture information is located
- Become yourself "your username" and run df -h command. Output the df -h command to another file name it systemdiskinfo
- vi systemdiskinfo file and remove the first and second line and save the file
- Run dmesg command and output to dm-file
- vi dm-file and remove the last 5-7 lines
- Add text in the end of file dm-file using vi. Text = This is the end of the file. Then save the file
- Reboot the system using init command