Student ID: Kingdom of Saudi Arabia
Ministry of Higher Education
Name: Najran University
College of Computer Science and
Information Systems
المملكة العربية السعودية
وزارة التعليم العالي
جامعة نجران
1446/1447
كلية علوم الحاسب ونظم
المعلومات
Lab Assignment (Operating Systems, 227CSS-3 & 332CSS-3)
First Semester 2024/2025
TABLE OF CONTENTS
INTRODUCTION ………………........................................................ 2
ASSIGNEMNT # 01 …......................................................................... 3
EXAMPLE …………………………………………………………… 4
APPENDIX ......................................................................................... 5
MARKING SCHEME FOR ASSIGNMENT # 01…………………… 5
1
INTRODUCTION
Page 1 of 25
First Semester 2023/2024 (1445/1446)
Submissio Content
Assignments Plagiarism Total
n s
Assignment 01 1.00 0.75 3.25 5.0
Total Marks 5.0
GUIDELINE
1. The assignment deadline is very important. Any assignment submitted after the deadline will lose marks
according to the marking scheme given in the appendix.
2. The first page of the assignment must contain the student ID and student name.
LAB ASSIGNMENT # 01
Deadline: Tuesday - September 24, 2024
Page 2 of 25
Question No. 1: Briefly explain the usage of the following UNIX commands. Also, include the screenshot of
each command after implementation.
S. No UNIX Command
1 ls –alF
2 mkdir
3 rmdir
4 cd
5 cp
6 rm
7 mv
8 man
9 more
10 passwd
11 grep
12 ps <opt>
13 kill <opt> <ID>
14 gcc
15 gzip <file>
16 telnet <host>
17 ssh <host>
18 ftp <host>
19 who
20 finger
21 date
22 history
23 cal <mo><year>
24 xcalc
25 ispell <fname>
26 gnuplot
27 alias
28 du
Page 3 of 25
29 df
30 exit
EXAMPLE (How to complete assignment)
Each student has to complete the assignment as it is given in the example below for UNIX command
“mkdir”.
Command No. 1 ls –alF
Description Lists files in current directory in long format
Page 4 of 25
Screenshot
Command No. 2 mkdir
Description “mkdir” command is used to make a new directory. For example, “mkdir Najran”
Page 5 of 25
Screenshot
Command No.
3
rmdir
Description The rmdir command is used to delete empty directories. Example “ Najran”
Screenshot
Command No. 4 cd
To move the shell’s current directory to another directory, use the cd ("change directory")
Description
command cp
Screenshot
Page 6 of 25
Command No.
5
cp
Description The cp command is used to copy files or directories.
Screenshot
Command No. 6 Rm
Description The rm command is used to delete files and directories Use rm -r to delete a directory and
all the files within the directory.)
Screenshot
Command No. 7 Mv
Description The mv command moves or renames a file
Page 7 of 25
Screenshot
Comman
d No. 8
Man
Descripti
used to display the user manual of any command that we can runon the terminal.
on
Screensho
t
Page 8 of 25
Comman
d No. 9
More
Descripti
reads files and displays the text one screen at a time
on
Screensho
t
Page 9 of 25
Comman
d No. 10
Passwd
The passwd command allows a user to change her password. The root user can also use this
Descripti
command to change any user password or to change other password-based features for a user
on
account.
Screensho
t
Page 10 of 25
Command No. 11 Grep
Use the grep command to search files for lines that contain a specific pattern. By
Description
default, the grep command displays the entire line when it finds a matching pattern.
Screenshot
Page 11 of 25
Command No. 12 ps <opt>
Description Show all active operations
Screenshot
Comman
d No. 13
kill <opt> <ID>
Descripti
Terminate a process specified by process ID
on
Screensho
t
Page 12 of 25
Command No. 14 Gcc
Description The Unix command for compiling C code is gcc.
Screenshot
Page 13 of 25
Command No. 15 gzip <file>
Description Use the gzip command to compress files, as shown here:
Screenshot
Command No. 16 telnet <host>
Description a protocol that allows you to connect to remote computers (called hosts)
Screenshot
Command No. 17 ssh <host>
Page 14 of 25
Description command is a utility that allows you to connect to a Secure Shell(SSH) server.
Screenshot
Command No. 18 ftp <host>
he ftp command uses the File Transfer Protocol (FTP) to transfer files between the
Description
local host and a remote host or between two remote hosts
Screenshot
Command No. 19 Who
Description The who command shows who is currently logged in
Screenshot
Page 15 of 25
\
Command No. 20 Finger
Description command displays information about the users currently logged in to a host.
Screenshot
Command No. 21 Date
Description The date command will print the current system date and time of your system
Screenshot
Page 16 of 25
Command No. 22 History
The history command is used to view and manage previously executed commands in
Description
the terminal, making it easier to repeat past commands.
Screenshot
Command No. 23 cal <mo><year>
Description This command for Shows calendar of selected month and year.
Screenshot
Page 17 of 25
Comman
d No. 24
Xcalc
Descripti
on
Screensho
t
Page 18 of 25
Command No.
25
ispell <fname>
Description
Screenshot
Page 19 of 25
Command No. 26 Gunplot
Description
Screenshot
Command No. 27 Alias
Description is a shortcut to reference a command. It can be used to avoid typing long commands
Screenshot
Page 20 of 25
Command No. 28 Du
The du command provides an estimated amount of disk space usage in a directory
Description
structure
Screenshot
Command No. 29 Df
Description The df command displays usage of partitions and logical devices:
Screenshot
Page 21 of 25
Command No. 30 Exit
Description This is command is doing closing the terminal
Screenshot
"When you press "Inter" , the terminal will be closed"
Page 22 of 25
APPENDIX
MARKING SCHEME FOR ASSIGNMENT # 01
Total Marks: 5.0
A. Assignment Submission & Plagiarism
Criteria Possible Points per Criteria
Excellent Good Fair Poor Score
(85%-100%) (60%-84%) (45%-59%) (0%-44%)
Submission Submitted early then Submitted on time. Submitted 1 day late. Submitted 2 days late.
(1.00) deadline.
Plagiarism Free of plagiarism. May contain some Almost half is Serious plagiarism.
(0.75) plagiarism. plagiarized.
Total
Question No. 1: Briefly explain the usage of the following UNIX commands, also include the screenshot of
each command after implementing.
Criteria Possible Points per Criteria
Excellent Good Fair Poor Score
(85%-100%) (60%-84%) (45%-59%) (0%-44%)
Content Address the usage of Address the usage Address the usage Address only a few
(1.75) all UNIX commands of most UNIX of some UNIX components of the
and the answer is commands and commands and the question and
Page 23 of 25
relevant and the answer is answer is not fully answer is not
justifiable. relevant and relevant and relevant.
justifiable. justifiable.
Screenshot Almost all Most of the Some of the Only a few
(1.50) screenshots are screenshots are screenshots are screenshots are
included for given included for given included for given included for given
UNIX commands. UNIX commands. UNIX commands. UNIX commands.
Total
Page 24 of 25