Practical 3 OS
Practical 3 OS
Practical 3
Practical 3: Working with Processes, System Resources, and Advanced File Operations
Objective:
To enhance the understanding of process management, system resources, and advanced file
operations in a Unix/Linux environment.
bash
ps aux
bash
ps aux | grep bash
3. Terminate a Process:
Use kill to terminate a running process by its PID (Process ID). First, use ps to find the
PID, then kill it:
bash
kill <PID>
Example:
bash
kill 1234
bash
sleep 100 &
jobs
bash
mkdir second_practical
cp example.txt second_practical/
bash
mv example.txt second_practical/
bash
mkdir -p parent_dir/child_dir/inner_dir
bash
find / -name example.txt
bash
chmod u+rwx example.txt
bash
bash
ls -l example.txt
bash
top
bash
df -h
bash
free -h
bash
uptime
Evaluation Criteria: