Lab 3

Topics: File system, Symbolic link, NTFS Pages: 5 (441 words) Published: November 6, 2014

2251710-308610
PUSAT PENGAJIAN DIPLOMA

LABORATORY REPORT

YEAR / PROGRAM

1 DAT

COURSE CODE/NAME

DAT10303
BASIC OPERATING SYSTEM

LAB No.– TITLE

LABSHEET 3 – DIRECTORY
STRUCTURE

LAB DATE

27 OCT 2014

No. NAME
MATRIC No. SECTION
1 ABDUL AZIZ BIN ABDUL HADI AA 140914 4
2 MU AHMAD UWAIS AL SYAQIQ BIN RAHAMAT AA 141570 4
3 MOHAMAD SAMIR BIN KHAIRUL ANUAR AA 141601 4

Comments (by Instructor)

Marks
Earned

Question 1

247650

-635116840
centertop
centertop
centertop
centertop
centertop
centertop
Question 2

Continue to explore the file system tree using cd,ls,pwd and cat . look in / bin/ usr/bin,/ sbin / tmp and boot. What do you see :

centertop

centertop
centertop

centertop
centertop

centertop
Question 3

1841546990

centertop

0259080

Question 4

Explore /proc. Display the contents of the files interrupts, devices, cpuinfo, meinfo and uptime using cat. Can you see why we say /proc is a pseudo-filesystem which allows access to kernel data structures :

centertop
centertop

centertop
centertop

centertop
centertop

Question 5

Type cd ~user1
63517780

Question 6

Type cd or cd /home/zizaozazi to back to your home directory 3048039370
Question 7

Type mkdir -p /home/zizaozazi/Downloads/work and mkdir -p /home/zizaozazi/Downloads/play to create directory work and play one by one. centertop
Question 8

Delete the subdirectory called work by typing rm -r /home/zizaozazi/Downloads/work centertop
Question 9

Type copy the file /etc/psswd into your home directory.
centertop
Question 10

Type mv passwd /home/zizaozazi/Downloads/play/
centertop
Question 11

Change into subdirectory play and create a symbolic link called terminal that points to your tty device . ehat happen if you try to make a hard link to the tty device.

Question 12

ls-l shows you huge amounts of information like permisions , owner , size when last modified . and ls-l list the file or directory the link refrences rather than the link itself: centertop

Question 13

Type cat>hello.txt and type hello world and then press ctrl+d to exit centertop
Question 14

The content of hello.txt file will be shown on the terminal window . cphello.txt/dev/usr/tty2

Question 15

centertop

Question 16

We can use this command:cat > “\$SHELL”
rm “\$SHELL”

Question 17

Use this command:cat > “#zizaozazi.txt”
rm “#zizaozazi.txt”

Question 18

Use this command:cat > “-hell.txt”
rm –f /-hell.txt

Question 19

Use this command:cp/etc/{passwd.group}/home/zizaozazi

Question 20

Use this command:cp-rf/homezizaozazi/play/home/zizaozazi/work

Question 21

Use this command:rm –r/home/zizaozazi/work

Question 22

Change into a directory that does not belong to you and try to delete all the files (avoid/proc or/ dev , just in case!)

Question 23

centertop

centertop
Continue Reading

Please join StudyMode to read the full document

You May Also Find These Documents Helpful

  • Essay about ECT122 W1 ILab 3
  • Computer Lab Rules & Regulations Essay
  • Computer Lab Managemetn System Essay
  • Essay about Online Computer Labs Monitoring System
  • Campus Computer Labs: The Issue at Hand Research Paper
  • Essay about AP Bio Lab 5
  • 3 Idiots Essay
  • Marketing : Week 3 Assignment Essay

Become a StudyMode Member

Sign Up - It's Free