Mini Project Assignment Os
Mini Project Assignment Os
CSF204-Operating System
Submitted By
Rollno: 220102775
SapID: 1000019189
Name: Moli Garg
Section: B “P2”
Submitted to
1) Ls:-
Ls is a Linux shell command that lists directory contents of files and directories. It provides
valuable information about files, directories, and their attributes.
Code:-
ls
Output:-
2) Mkdir:-
The mkdir command in Linux/Unix is a command-line utility that allows users to create new
directories. You can also set permissions, create multiple directories at once, and much more.
Code:-
mkdir <directory_name>
Output:-
3) Rm:-
rm command in Linux is used to remove files from directories.
Code:-
Rm -rf <directory_name>
Output:-
4) Cat:-
Cat command in Linux can be used to display the content of a file, copy content from one file to
another, and concatenate the contents of multiple files.
Code:-
Cat <file_name>
Output:-
5) Cp:-
Cp command in Linux is used to copy file data from one file to another.
Code:-
Cp -f <filename1> <filename2>
Output:-
6) Mv:-
Mv command in Linux can be used to change a directory or a file’s name.
Code:-
Mv <file/directory_name1> <file/directory_name2>
Output:-
7) Touch:-
Touch command in Linux can be used to create an empty file in the directory. Touch create
empty files in the directory or a folder.
Code:-
Touch <file_name>
Output:-
8) Find:-
Find command in Linux is used to search for a file or directory in the system.
Code:-
Find . -name <file_name>
Output:-
9) Grep:-
Grep command in Linux is used to search for particular alphabets or letters in the certain file
using cat command.
Code:-
Cat <file_name> | grep <item_for_search>
Output:-
10)chmod:-
Chmod command in linus can be used to modify the permissions and access mode of files and
directories.
Code:-
Chmod a+<permission> <file_name>
Output:-
Conclusion:-
In this course, we learned using Linux commands to navigate Linux directories, search for files,
search for patterns, create files and directories, and remove files and directories.
Certificate:-