1. Trang chủ
  2. » Tất cả

nhập môn điện toán,phạm trần vũ,dhbkhcm

2 4 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Operating System Lab 1
Trường học DHBK HCM
Chuyên ngành Nhap Mon Dien Toan
Thể loại Bai tap lon
Thành phố Ho Chi Minh City
Định dạng
Số trang 2
Dung lượng 56,82 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

nhập môn điện toán,phạm trần vũ,dhbkhcm Operating System Lab 1 Student name Student ID Login 1 What is the HOME directory of your account Commands on directory 2 View the current directory 3 Move to d[.]

Trang 1

Operating System Lab 1

Student name: Student ID:

Login: 1 What is the HOME directory of your account:

Commands on directory: 2 View the current directory:

3 Move to directory /tmp:

4 Move to your HOME directory:

5 Create a directory “lab1” After that create 3 directories “data”, “script”, “temp” as subdirectories of “lab1”:

6 Move to “lab1” and show all file and directories there:

7 Delete directory “temp”:

Commands on file 8 Move to ~/lab1/data Use “vi” to create a file name “exercise.txt” with the content: ACM International Collegiate Programming Contest (ACM ICPC) [Enter] is the largest computer programming contest in the world [Enter] The ACM ICPC is [Enter] an activity of the ACM [Enter] that provides college students with an opportunity [Enter] to demonstrate and sharpen [Enter] their problem-solving and computing skills [Enter] 9 Show the content of “exercise.txt”:

10 Copy file /etc/passwd to ~/lab1/data:

11 Show all lines that has the word “ssh” in file /etc/passwd:

Hint: using grep 12 What is the owner, group and the access right of file /etc/inittab: Owner:

Group: Access right (owner, group, other):

CuuDuongThanCong.com https://fb.com/tailieudientucntt

Trang 2

13 The right access of a directory is 751 What is the right access of:

Owner:

Group: Others: 14 Change the access right of file exercise.txt: owner and group has access right to read, write Others can only read:

15 Move to ~/lab1/data Create 2 files tmp1 and tmp2 (the content is your favorite poem) What is the difference of the two commands: cp tmp1 tmp2 mv tmp1 tmp2

Using help 16 The command the show the usage of the command “cat”:

Change direction of input-output 17 Show all files and directories in /usr and save the result in file usr.txt:

18 Show all files in /usr/bin and stop when the screen is full:

Hint: use command pipe and more 19 Find all files in /etc that the file name contains the word “log”:

Hint: use command grep 20 How many lines in the file /etc/profile?

Hint: use wc -l

CuuDuongThanCong.com https://fb.com/tailieudientucntt

Ngày đăng: 25/11/2022, 16:42