Skip to content

Assignment 4

Sayan Bhattacharya edited this page Nov 13, 2025 · 2 revisions

1. Use grep to find the word root in the file /etc/passwd.

image

2. Search for the word error in the file /var/log/messages.

no idea

3. Display all lines in /etc/passwd that contain “bash”.

image

4. Search for the word oracle in all files inside your home directory.

image

5.Find lines in /etc/passwd that do not contain the word nologin.

image

6. Show all the processes currently running on your system.

image

7. Display only your own processes using ps.

image

8. View the file /etc/passwd one page at a time using more.

image

9. WUse ifconfig to check your system’s IP address and network interfaces.

image

10. Create a new file called test.sh and give it execute permission to owner

image

11. Remove read permission for group user and public on the file test.sh

image

Clone this wiki locally