Linux Assignment
Linux Assignment
Create a text file "Production" under the directory "Kalinga" under /tmp
path.
Create a text file "Development" under the directory " Kalinga "
.
List the history of the commands and save it in the file, history.txt using
output redirection
Copy the file "Development" to the directory "Mindtree"
Display the foreground process that are running in the linux server
Display the background process and filter the processes starts with "sy"
Editing files using Vi editor in Linux
Save the file
Enter to insert mode
To enter into insert mode click ‘i’.
Find the string “Mindtree” in the text file
Find the string “Kalinga” in the text file by ignoring case
Find the string 2017 and replace with 2018
Copy the line number 4 and paste it in end of the file
Enter into command mode and type :4 to go to 4th line
Type esc + yy and move the cursor to bottom of file and enter p to
paste the line.
Go to the line number 9
Enter to command mode and enter :9
.
The cursor moved to 9th line
Delete the line number 10 from the current position
Line 10 is deleted
Delete the current line
Delete the character under the cursor
Move the cursor to charcter and click escape and enter x
Creating and managing user accounts
create 6 users Alice, Bob, Joe, Amy, Willam, JoJo and verify the users
information.
Create a group "Development", "Testing" and "Infrastructure". And add
the Bob and Joe user to Development Group, Amy and Alice to Testing
group and Willam and JoJo to Infrastructure group explicitly.
Giving access to Development group for Testing group members
Remove the user Alice from testing group and remove the user Bob
from the server respectively .
File permissions