0% found this document useful (0 votes)
23 views

Assignment 1 Solution

This document provides instructions for an assignment in an Operating Systems course. It lists the deadline as March 30th, 2023 and provides the student's name and student ID number. It then lists and provides brief descriptions of various Linux commands that were covered in the assignment, such as cat, chmod, cd, date, cp, echo, grep, head, ls, more, mkdir, mv, pwd, rm, rmdir, sort, tail, and wc.

Uploaded by

Yajat Mehta
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Assignment 1 Solution

This document provides instructions for an assignment in an Operating Systems course. It lists the deadline as March 30th, 2023 and provides the student's name and student ID number. It then lists and provides brief descriptions of various Linux commands that were covered in the assignment, such as cat, chmod, cd, date, cp, echo, grep, head, ls, more, mkdir, mv, pwd, rm, rmdir, sort, tail, and wc.

Uploaded by

Yajat Mehta
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

Deadline - 30th March 2023

Assignment-1

Name-yajat Mehta

SID - 21103041

Course - Operating Systems

Course Code - CS1402


Assignment 1 solution

Cat - this command reads data from the file and gives
their content as output.

To view single file


To view multiple files

Create a new file


Chmod - this command is used to change the access mode
of a file/ change permissions
cd- it is used to change current working directory

Date - it is used to display and set date and time of


system
Cp- stands for copy. Used to copy files or directories
Echo- used to display line of text/string that are passed
as argument
Grep- filter searches a file for a particular pattern of
characters; and displays all lines that contain that
pattern
Head- It prints the top N number ofdata in given input.
By default it prints top 10 lines.
ls- command that list directory contents and directories

One file per line


Display all information using ls-l

More- used to view text files in command prompt


Mkdir- allows user to create directories
Mv-mv stands for more. Used to move one or more files or
directories from one place to another in a file system

Pwd-stands for print working directory


rm - used to remove objects such as files or directories

Rmdir - remove directory

Executed successfully
Sort - sort file

Tail- display last part of file. By default it is 10 lines.


wc - stands for word count. Mainly used for counting
purpose.

You might also like