0% found this document useful (0 votes)
44 views13 pages

School of Information Technology& Engineering M.Tech Software Engineering Course Code: Swe 3001 Subject - Operating System

This document provides an overview of common Linux commands for navigating directories, manipulating files, and viewing file contents. It lists commands like ls, mkdir, cd, pwd, vi, cp, mv, rmdir, cat, less, head, tail, and sort. The commands are organized into tutorials on directory navigation, copying/moving files, removing directories, and viewing/manipulating file contents.

Uploaded by

nithish kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views13 pages

School of Information Technology& Engineering M.Tech Software Engineering Course Code: Swe 3001 Subject - Operating System

This document provides an overview of common Linux commands for navigating directories, manipulating files, and viewing file contents. It lists commands like ls, mkdir, cd, pwd, vi, cp, mv, rmdir, cat, less, head, tail, and sort. The commands are organized into tutorials on directory navigation, copying/moving files, removing directories, and viewing/manipulating file contents.

Uploaded by

nithish kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

School of Information Technology& Engineering

M.Tech Software Engineering

COURSE CODE: SWE 3001

Subject –OPERATING SYSTEM

LAB ASSESMENT -1
This FILE CONTAINS:

COMMANDS:
COMMAND 1: ls(list)
To list the contents of our working directory.

COMMAND 2: mkdir(make directory)


To create new directory or folder:
Command 3: cd . (shows current directory(.))
Command 4: cd .. (takes to parent directory)

Command 5: pwd(print working directory)


Shows the filepath

Command 6: cd (change directory)


Redirects into name of the folder
Command 7: vi
Syntax: vi<filename><file format>
to create new file
Tutorial -2

Command 1: cp (copy)
Syntax: cp <filename1> <filename2>
Copy the file from one file to another.

Command 2: mv (move)
Syntax: mv <filename1> <filename2>
move the content of file from one file to another.
Command 3: rmdir (remove directory)
Syntax: rmdir <filename1>
Remove the directory/file.

Command 4: cat(concatenate)
Syntax: cat <filename1>
Display the contents of the file.
Command 5: less
Syntax: less <filename1>
Display the contents of the file

Command 6: head
Syntax: head <filename1>
Display first few lines of the file
Command 7: tail
Syntax: tail <filename1>
Display last few lines of the file
Tutorial -3
Command 1: cat > <filename>
To direct the output of a command

Command 2: cat > ><filename>


To enter more details in the file.
Command 2: cat <filename1> <filename> ><another file in which the both the
file contents will be save here>

Command 2: sort
Sorts in ascending order

You might also like