# Day 3 linux assignment

1. **List the top 5 used processes running on the system**
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1692891378329/925b4eff-5656-48f8-bf79-98b85f36324d.png align="center")

**2 . Get details of all processes running on the system. Observe what happens when you put ps -eaf and describe the output here.**

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1692891484862/9cd8c849-059d-41bd-8e7f-37b42686e9e6.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1692891789298/deea36e0-73f6-4f57-be68-741ab24932f9.png align="center")

**3 . Find all the files which are over +2M on your Ubuntu machine**

find / -size +2M

**4\. Check if tree utility is installed. If not, Install tree utility on your ubuntu machine.**

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1692944924620/42fe8533-fce4-4c02-8ac3-ad6b479c23b5.png align="center")

**5\. Download and install Google Chrome on your ubuntu machine using terminal. Verify if installation is successful.**

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1692945023853/c289c081-1648-4394-9a41-163f527ea74b.png align="center")

**6.Check Add a crontab entry to log time value(using date command) in a log file op.txt. Run the cron job to execute every 5 mins.the disk usage on your laptop and log the output to a text file.**

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1692945071213/c57a2c47-b656-4551-95a3-bd364509e850.png align="center")

**7\. Install network utility nmap on your ubuntu machine. Verify namp –version and see its working.**

1. ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1692944261983/f4427c47-75f6-441b-a849-35f6c5b03d4f.png align="center")
    

**8.Using grep, do the following exercise:**

1. **1.Create a file with the following data. Use vi or cat command –**
    

**boot**

**book**

**boots**

**bungie**

**robot**

**broken**

**bark**

1. **Use grep to list all words matching “boo”**
    
2. **Use grep to list all words that do not match “boo”**
    
3. **List the number of lines that match “boo”**
    
4. **Use grep to print only filename that match the string “boo”**
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1692898073872/24f37595-eec7-4264-84d4-780d02d07beb.png align="center")
    
    **9 .Use sed command to replace the above file where we have boo to woo**
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1693311893364/b5b89a11-ac4b-40fd-9710-457fd0dcc77a.png align="center")
