Lab Task 5
Lab Task 5
University,
Islamabad
Submitted to:
Mrs. Tehmina Mehboob
Submitted by:
Anum Kousar 4503-FOC/BSSE-F22
Course title:
CS-224 Operating System
Date of submission:
05 March, 2025
Step 1: Navigate the File System
b. cd Lab1
7. Delete renamed_test.txt:
a. rm renamed_test.txt
4. Try modifying the file (It should fail due to read-only permission):
a. echo "New text" >> test.txt
1. Copy secret-of-the-universe to a new file called answer.txt. Use Tab to avoid typing the
existing file’s name in full.
6. Try copying secret-of-the-universe again, but don’t specify a filename to which to copy.
What happens now?
Input Values
Uname -a
Date
Show manual for
Command
man command
Search history
CTRL-r
!!
Run last command starting with
Abc
!abc
!abc:p
abc
!$
command
!*
command
env
variable
export NAME=value Set $NAME to value
$PATH
Home directory
$SHELL
Current shel
cmd < file