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

Lab 1

The document shows the user navigating their file system and performing basic file operations on their desktop computer. It contains commands like pwd to print the current working directory, ls to list files, touch to create empty files, cp to copy files, rm to remove files, mkdir to create directories, mv to move files/directories, and vi to edit files. Basic permissions are set using chmod. The user creates a shell script file and tries to execute it after making it executable.

Uploaded by

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

Lab 1

The document shows the user navigating their file system and performing basic file operations on their desktop computer. It contains commands like pwd to print the current working directory, ls to list files, touch to create empty files, cp to copy files, rm to remove files, mkdir to create directories, mv to move files/directories, and vi to edit files. Basic permissions are set using chmod. The user creates a shell script file and tries to execute it after making it executable.

Uploaded by

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

User@DESKTOP-O2KROQH MINGW64 ~

$ pwd
/c/Users/User

User@DESKTOP-O2KROQH MINGW64 ~
$ ls
AppData/
'Application Data'@
Contacts/
Cookies@
Desktop/
Documents/
Downloads/
Favorites/
IntelGraphicsProfiles/
Links/
'Local Settings'@
Music/
'My Documents'@
NTUSER.DAT
NTUSER.DAT{a2332f18-cdbf-11ec-8680-002248483d79}.TM.blf
NTUSER.DAT{a2332f18-cdbf-11ec-8680-
002248483d79}.TMContainer00000000000000000001.regtrans-ms
NTUSER.DAT{a2332f18-cdbf-11ec-8680-
002248483d79}.TMContainer00000000000000000002.regtrans-ms
NetHood@
OneDrive/
Pictures/
PrintHood@
Recent@
'Saved Games'/
Searches/
SendTo@
'Start Menu'@
Templates@
Videos/
ntuser.dat.LOG1
ntuser.dat.LOG2
ntuser.ini

User@DESKTOP-O2KROQH MINGW64 ~
$ cd

User@DESKTOP-O2KROQH MINGW64 ~
$ pwd
/c/Users/User

User@DESKTOP-O2KROQH MINGW64 ~
$ cd..
bash: cd..: command not found

User@DESKTOP-O2KROQH MINGW64 ~
$ cd ..

User@DESKTOP-O2KROQH MINGW64 /c/Users


$ pwd
/c/Users
User@DESKTOP-O2KROQH MINGW64 /c/Users
$ cd ~

User@DESKTOP-O2KROQH MINGW64 ~
$ pwd
/c/Users/User

User@DESKTOP-O2KROQH MINGW64 ~
$ cd ..

User@DESKTOP-O2KROQH MINGW64 /c/Users


$ pwd
/c/Users

User@DESKTOP-O2KROQH MINGW64 /c/Users


$ ls
'All Users'@ Default/ 'Default User'@ Public/ User/ desktop.ini

User@DESKTOP-O2KROQH MINGW64 /c/Users


$ cd ~

User@DESKTOP-O2KROQH MINGW64 ~
$ pwd
/c/Users/User

User@DESKTOP-O2KROQH MINGW64 ~
$ ls
AppData/
'Application Data'@
Contacts/
Cookies@
Desktop/
Documents/
Downloads/
Favorites/
IntelGraphicsProfiles/
Links/
'Local Settings'@
Music/
'My Documents'@
NTUSER.DAT
NTUSER.DAT{a2332f18-cdbf-11ec-8680-002248483d79}.TM.blf
NTUSER.DAT{a2332f18-cdbf-11ec-8680-
002248483d79}.TMContainer00000000000000000001.regtrans-ms
NTUSER.DAT{a2332f18-cdbf-11ec-8680-
002248483d79}.TMContainer00000000000000000002.regtrans-ms
NetHood@
OneDrive/
Pictures/
PrintHood@
Recent@
'Saved Games'/
Searches/
SendTo@
'Start Menu'@
Templates@
Videos/
ntuser.dat.LOG1
ntuser.dat.LOG2
ntuser.ini

User@DESKTOP-O2KROQH MINGW64 ~
$ cd Music/

User@DESKTOP-O2KROQH MINGW64 ~/Music


$ cd ~

User@DESKTOP-O2KROQH MINGW64 ~
$ cd Desktop/

User@DESKTOP-O2KROQH MINGW64 ~/Desktop


$ cd ~

User@DESKTOP-O2KROQH MINGW64 ~
$ cd Downloads/

User@DESKTOP-O2KROQH MINGW64 ~/Downloads


$ pwd
/c/Users/User/Downloads

User@DESKTOP-O2KROQH MINGW64 ~/Downloads


$ ls
03.10.23_11.00-12.15_Part-1.mp4
03.10.23_11.00-12.15_Part-2.mp4
10.10.23_11.00-12.15.mp4
17.10.23_11.00-12.15.mp4
191002312.pdf
'22.10.23 (Extra)_11.00-12.15.mp4'
26.09.23_11.00-12.15.mp4
31.10.23_11.00-12.15.mp4
Abraham-Silberschatz-Operating-System-Concepts-10th-2018.pdf
Apache-NetBeans-20r1-bin-windows-x64.exe*
CNX_Econ_C03_026.jpg
'CSE-Class work on GDP-Fall 2023.docx'
'CSE-GED 301-Chapter-4-Mankiew-Fall 2023.pptx'
'CSE-MacroEconomic-Chapter-4 .pptx'
'CSE303-Grpup Presentation-tas.pptx'
'CSE303-Grpup Presentation.pptx'
'CSEE311-Grpup Presentation-RaS.pptx'
'Chapter (1 to 3) (1).pdf'
'Class test-2.pdf'
Controlsignalminmode.png
DENmin.png
'GDP Calculation-Corrected.docx'
Git-2.43.0-64-bit.exe*
'Gross National Product.docx'
HED_009_022.zip
'Induction Motor.pdf'
KL_AMD_D8086.jpg
'Lab Project Report Template (CSE).zip'
'Lab Report 01-1.pdf'
'Lab Report 02-1.pdf'
'Lab Report 03.pdf'
'Lecture 1-2.pptx'
'Lecture 3-4.pptx'
'Lecture 5-6.pptx'
'Lecture 7-8.pptx'
'Lecture 9-10.pptx'
Minmode-660x560.jpg
'Operating System Lab Contents-20230919T084102Z-001'/
'Operating System Lab Contents-20230919T084102Z-001.zip'
Place_Your_Project_Title_at_Here__10_.pdf
Place_Your_Project_Title_at_Here__9_.pdf
'Presentation Script-RaS.pdf'
RptSpecialExamAdmitCardDownload.pdf
'Synchronous Motor (1).pptx'
'Synchronous Motor.pdf'
'Synchronous Motor.pptx'
Tasnim.pptx
'Telegram Desktop'/
Transducer.pdf
Untitleddrawing17.jpg
'Zoom_cm_ftbukfZ9vvrZo4_m65-
ui581wI9VPutmFTrlZlMnSMC8q7HXQoA4@vrqTYejr2EZahASk_k7f2f02546d675c1b_.exe'*
ch23_trending_figure_1-1.png
codeblocks-20.03mingw-setup.exe*
desktop.ini
equilibrium-price.png
hfhgf.phg
jdk-21_windows-x64_bin.exe*
main-qimg-60fb4bbf99bd8ab5371cf40ab64a9cfb.png
main-qimg-7a055b3605a9398e5f4fb1c2f0c3193e-pjlq.jpg
market_equilibrium_g12.png
market_equilibrium_g34.gif
'photo_2023-12-22_19-56-03 (2).jpg'
'photo_2023-12-22_19-56-03 (3) (1).pdf'
'photo_2023-12-22_19-56-03 (3) (2).pdf'
'photo_2023-12-22_19-56-03 (3).jpg'
'photo_2023-12-22_19-56-03 (3).pdf'
photo_2023-12-22_19-56-03.jpg
rsz1rszuntitleddrawing9.jpg
rszuntitleddrawing10.jpg
tsetup-x64.4.12.2.exe*
zopener_8a4800ea0a3f43f4bafd7706c1a4e7ee.log

User@DESKTOP-O2KROQH MINGW64 ~/Downloads


$ cd ~

User@DESKTOP-O2KROQH MINGW64 ~
$ cd Desktop/

User@DESKTOP-O2KROQH MINGW64 ~/Desktop


$ ls
CodeBlocks.lnk* Firefox.lnk* Word.lnk* 'ibisPaint -
Shortcut.lnk'*
Discord.lnk* Grammarly.lnk* Zoom.lnk*
'Firefox Private Browsing.lnk'* PowerPoint.lnk* desktop.ini

User@DESKTOP-O2KROQH MINGW64 ~/Desktop


$ touch Test.txt

User@DESKTOP-O2KROQH MINGW64 ~/Desktop


$ ls
CodeBlocks.lnk* Firefox.lnk* Test.txt desktop.ini
Discord.lnk* Grammarly.lnk* Word.lnk* 'ibisPaint -
Shortcut.lnk'*
'Firefox Private Browsing.lnk'* PowerPoint.lnk* Zoom.lnk*
User@DESKTOP-O2KROQH MINGW64 ~/Desktop
$ cp Test.txt Testcopy.txt

User@DESKTOP-O2KROQH MINGW64 ~/Desktop


$ ls
CodeBlocks.lnk* Firefox.lnk* Test.txt Zoom.lnk*
Discord.lnk* Grammarly.lnk* Testcopy.txt desktop.ini
'Firefox Private Browsing.lnk'* PowerPoint.lnk* Word.lnk* 'ibisPaint -
Shortcut.lnk'*

User@DESKTOP-O2KROQH MINGW64 ~/Desktop


$ rm Test.txt

User@DESKTOP-O2KROQH MINGW64 ~/Desktop


$ ls
CodeBlocks.lnk* Firefox.lnk* Testcopy.txt desktop.ini
Discord.lnk* Grammarly.lnk* Word.lnk* 'ibisPaint -
Shortcut.lnk'*
'Firefox Private Browsing.lnk'* PowerPoint.lnk* Zoom.lnk*

User@DESKTOP-O2KROQH MINGW64 ~/Desktop


$ rmdir TestFolder.txt
rmdir: failed to remove 'TestFolder.txt': No such file or directory

User@DESKTOP-O2KROQH MINGW64 ~/Desktop


$ rmdir Testcopy.txt
rmdir: failed to remove 'Testcopy.txt': Not a directory

User@DESKTOP-O2KROQH MINGW64 ~/Desktop


$ mkdir dir1

User@DESKTOP-O2KROQH MINGW64 ~/Desktop


$ ls
CodeBlocks.lnk* Firefox.lnk* Testcopy.txt desktop.ini
Discord.lnk* Grammarly.lnk* Word.lnk* dir1/
'Firefox Private Browsing.lnk'* PowerPoint.lnk* Zoom.lnk* 'ibisPaint -
Shortcut.lnk'*

User@DESKTOP-O2KROQH MINGW64 ~/Desktop


$ mkdir dir2

User@DESKTOP-O2KROQH MINGW64 ~/Desktop


$ ls
CodeBlocks.lnk* Grammarly.lnk* Zoom.lnk* 'ibisPaint -
Shortcut.lnk'*
Discord.lnk* PowerPoint.lnk* desktop.ini
'Firefox Private Browsing.lnk'* Testcopy.txt dir1/
Firefox.lnk* Word.lnk* dir2/

User@DESKTOP-O2KROQH MINGW64 ~/Desktop


$ mv dir1 dir2

User@DESKTOP-O2KROQH MINGW64 ~/Desktop


$ ls
CodeBlocks.lnk* Firefox.lnk* Testcopy.txt desktop.ini
Discord.lnk* Grammarly.lnk* Word.lnk* dir2/
'Firefox Private Browsing.lnk'* PowerPoint.lnk* Zoom.lnk* 'ibisPaint -
Shortcut.lnk'*
User@DESKTOP-O2KROQH MINGW64 ~/Desktop
$ cd dir2/

User@DESKTOP-O2KROQH MINGW64 ~/Desktop/dir2


$ ls
dir1/

User@DESKTOP-O2KROQH MINGW64 ~/Desktop/dir2


$ rmdir dir1

User@DESKTOP-O2KROQH MINGW64 ~/Desktop/dir2


$ ls

User@DESKTOP-O2KROQH MINGW64 ~/Desktop/dir2


$ cd ~

User@DESKTOP-O2KROQH MINGW64 ~
$ pwd
/c/Users/User

User@DESKTOP-O2KROQH MINGW64 ~
$ cd Desktop/

User@DESKTOP-O2KROQH MINGW64 ~/Desktop


$ ls
CodeBlocks.lnk* Firefox.lnk* Testcopy.txt desktop.ini
Discord.lnk* Grammarly.lnk* Word.lnk* dir2/
'Firefox Private Browsing.lnk'* PowerPoint.lnk* Zoom.lnk* 'ibisPaint -
Shortcut.lnk'*

User@DESKTOP-O2KROQH MINGW64 ~/Desktop


$ vi New

[1]+ Stopped vi New

User@DESKTOP-O2KROQH MINGW64 ~/Desktop


$ ls -l New.txt
ls: cannot access 'New.txt': No such file or directory

User@DESKTOP-O2KROQH MINGW64 ~/Desktop


$ ls -l New
ls: cannot access 'New': No such file or directory

User@DESKTOP-O2KROQH MINGW64 ~/Desktop


$ ls -l Testcopy.txt
-rw-r--r-- 1 User 197121 0 Jan 2 10:42 Testcopy.txt

User@DESKTOP-O2KROQH MINGW64 ~/Desktop


$ touch addition.sh

User@DESKTOP-O2KROQH MINGW64 ~/Desktop


$ vi addition

[2]+ Stopped vi addition

User@DESKTOP-O2KROQH MINGW64 ~/Desktop


$ vi addition
[3]+ Stopped vi addition

User@DESKTOP-O2KROQH MINGW64 ~/Desktop


$ chmod +x addition
chmod: cannot access 'addition': No such file or directory

User@DESKTOP-O2KROQH MINGW64 ~/Desktop


$ chmod +x addition.sh

User@DESKTOP-O2KROQH MINGW64 ~/Desktop


$ addition
bash: addition: command not found

User@DESKTOP-O2KROQH MINGW64 ~/Desktop


$ vi addition

[4]+ Stopped vi addition

User@DESKTOP-O2KROQH MINGW64 ~/Desktop


$ chmod +x addition1.sh

User@DESKTOP-O2KROQH MINGW64 ~/Desktop


$ ls -l addition.sh
-rw-r--r-- 1 User 197121 119 Jan 2 10:56 addition.sh

User@DESKTOP-O2KROQH MINGW64 ~/Desktop


$

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy