LAB 01 OS Spring 2022 PDF

Title LAB 01 OS Spring 2022
Course Operating System
Institution FPT University
Pages 2
File Size 124.2 KB
File Type PDF
Total Downloads 9
Total Views 43

Summary

LAB 01 – Command line in LinuxCourse: OPERATING SYSTEMLecturer: Hoai-Vu Nguyen, [email protected] 1: Go to user directory with the command: cd ~. Make sure you are there ( pwd ). Create a directory naming by your name, for example: minhlong, kykhoi, ... Move to “your name” directory. Verify that ...


Description

LAB 01 – Command line in Linux Course: OPERATING SYSTEM Lecturer: Hoai-Vu Nguyen, [email protected]

Exercise 1: 1. Go to user directory with the command: cd ~ . Make sure you are there (pwd). 2. Create a directory naming by your name, for example: minhlong, kykhoi, … Move to “your name” directory. Verify that you are there. 3. In your directory, create three subdirectories with the name: OS, PRO, and TEM. Look at content of your directory. It should contain 3 above directories. 4. In OS directory, you create the follows. a. A subdirectory naming SW b. A file naming test1 with the content as “Finished today’s lab exercise” c. An empty test2 file 5. In PRO directory, you create the following directories and files: a. HW directory b. An empty test5 file 6. Copy test1 file to TEM directory with the name is test3 7. Move test1 file to HW directory of PRO. 8. Add more content into test5 file 9. Delete test2 file 10. Delete SW and HW directories. 11. Back to root directory Exercise 2: Using command-line to do the following tasks:  Create the following empty files: test.c, test.cpp, test.java, demo.c, lab.cpp  List all C files?  

List all C++ files? List all JAVA files?

 

Show the kernel and determine the version of your Linux Operating system. Show date – time in Vietnamese and English.

Exercise 3:

1. Go to HOME directory: ................................................................................................................ 2. List detail of your directory content (included hidden files): ...................................................... 3. Do list and redirect the result of the list command on content ~ directory (home) to home.txt file: ............................................................................................................................................... 4. Sort on data input is the home.txt file in the ascending of alphabetical order:........................... 5. Search recursive on the /etc directory for all files in which contain ‘log’ word: ......................... 6. Search all ‘if’ word in /etc/profile file: ......................................................................................... 7. How many number of lines in the /etc/profile file: ..................................................................... Answer above questions & capture screen of you comand-line executed! Exercise 4: -

Create a file named user.txt. Then, you add 5 usernames (each in one line). Display the content of user.txt file. Display list of n sorted usernames in your file and store that sorted list into a new file named suser.txt Count the number of users in your file and display it. Remove the “Read” right of the owner of user.txt file. Try to display the content of user.txt and see the result.

Exercise 5: Install Ubuntu OS into your computer. You could install dual OS or install in a virtual machine such as VMWare. Install Unikey to type Vietnamese

Submission: You should capture the result screen of each exercise and include in your DOCX file, and upload to CMS. Your created file should be named like --Lab-01, e.g. SE1620-QuangTV-HE150023-Lab01.DOCX...


Similar Free PDFs