- Search Words
- Run Multiple Commands
- Pipe Command
- User Management
- Group Management
- Assign Permissions for User Management
Command: grep
Description: Searches the text file f1.txt for lines containing the word a (case-insensitive).
Description:
- Lists the files and directories in the current path.
- Creates a directory named abc.
- Creates an empty file named f30.
- Lists the updated files and directories.
- End of line ;
Description:
- output of ls -l work as input of head -n 6
Description:
- Lists files with detailed information.
- Extracts the first 20 lines.
- Retrieves the last 5 of those 20 lines.
- Displays the first of the 5 lines.
useradd oggy cat /etc/passwd
Explanation of fields: oggy: Username X: Password placeholder 1001: User ID (UID) 1001: Group ID (GID) home/oggy: Home directory bin/bash: Default shell
cat /etc/passwd
cat /etc/passwd
Again change / to /bin/bash
- login as varun
when we login as user, '#' is chanage into '$'
'su' cammand use return to root
- password file are present in cat /etc/shadow
Fields explained:
- chage -E "2024-09-23" varun for account expire
- chage -I 3 varun for password inactive
Add the line to grant varun privileges: varun ALL=(ALL) ALL














































