0% found this document useful (0 votes)
30 views5 pages

Lab Report 01

The document discusses a Linux lab report on file manipulation commands, wildcards, and permissions. It covers commands like pwd, ls, cd, touch, mkdir, rmdir, chmod, and their usage. It also explains wildcards like *, ?, [] and their functions. The lab report details implementing these commands and testing permissions with chmod.

Uploaded by

Sajjad Khan8254
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)
30 views5 pages

Lab Report 01

The document discusses a Linux lab report on file manipulation commands, wildcards, and permissions. It covers commands like pwd, ls, cd, touch, mkdir, rmdir, chmod, and their usage. It also explains wildcards like *, ?, [] and their functions. The lab report details implementing these commands and testing permissions with chmod.

Uploaded by

Sajjad Khan8254
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/ 5

Green University of Bangladesh

Department of Computer Science and Engineering (CSE)


Faculty of Sciences and Engineering
Semester: (Summer, Year:2023), B.Sc. in CSE (Day)

Lab Report NO #01


Course Title: Operating System Lab
Course Code: CSE 310 Section:D4

Lab Experiment Name: Implementation Linux Command File Manipulation,


Wildcards and Permissions.

Student Details

Name ID
1. Md Sajjad Hossen 212902032

Lab Date : 30/09/2023


Submission Date : 7/10/2023
Course Teacher’s Name : Md. Jahidul Islam

Lab Report Status


Marks: ………………………………… Signature:.....................
Comments:.............................................. Date:..............................
1. TITLE OF THE LAB REPORT EXPERIMENT
Implementation Linux Command File Manipulation, Wildcards and Permissions.

2. OBJECTIVES/AIM
i) How to work Linux command line.
ii) How to manipulation files and directory.
iii) How to give read, write and execution permissions.
iv) How to work wildcards and there zero , single and range characters.
3. PROCEDURE / ANALYSIS / DESIGN
At first install Linux operating system on your computer. Open Linux terminal and write down
command that can manipulation and easy to user friendly.
File Manipulation :
The file manipulation is the process of make find your terminal location file read and write
permission and control files rules and regulation.
Command of file manipulation:

Pwd , ls, cd, cd.., cd ~, cp, mv, rm, touch, mkdir, rmdir, chomd, clear and exit.

Wildcards :
A wildcard is a character that can be used as a substitute for any of a class of characters in a
search.

Symbol * ? [] ^ $
Name zero or more one characters Range of Beginning End
characters. characters. characters characters

Command of Wild cards:

Permission:
The Linux-OS have three things that read, write and execution permission.

Command of permission :
Chmod rwx, r is read and view , w is change the file contents and execute the file and see this
script.
4. IMPLEMENTATION

File Manipulation:
Pwd: is print work directory, if you want where are you now, write terminal pwd it can show
your present address.
Ls: list directory, if you also want to see your present address or file how many people or file
store there.

Fig: 0.1

Cd: change directory , it can able to change your work directory.


Cd ..: change directory and return you one level up.
Cd~: change home directory.

Fig: 0.2
Mkdir : Make directory, it can able to make a new directory.
Touch : create any empty file including audio, video, txt, sh and png.
Rm : remove directory, it can able to delete or remove and file .
Clear: clear display command.

Fig: 0.3
Mv: move file other directory , it like windows cut.
Cp: copy file other directory, it like also windows copy.
Exit: exit the terminal.
Fig: 0.4
File Wildcards:
This is a faster searching method, we could find the file name, size, range and character wise.
Ls *.txt : find before the extension.
Ls ?audio: character find out .
Ls [a-d]*: range of characters.

Fig: 0.4

5. TEST RESULT / OUTPUT

Permission:
Ls – l: show all files which have read, write and execution permission.
chmod is command which controlling all files permission.
Chomd u+r, it mean gives view permission.
Chomd u+w, write and change contain permission
Chomd u+x , execution permission
Chomd u-r, didn’t want to give any permissions.
Short Summary of this Report:
This comprehensive report delves into the intricate world of Linux file manipulation, focusing on
wildcard usage and permissions control. Armed with a deep understanding of Linux file access and
command line nuances, this exploration uncovers the smart strategies for efficient and secure file
handling.

You might also like