In this practical, you’ll learn how to dual boot Linux alongside Windows.
Create a Folder named after TYIT.
Create a blank file named directory.txt
Now list the directories in the root directory and store the output in the directory.txt file
Now search for words in the directory.txt file which contains the alphabet e
Move the file named directory.txt from TYIT to a directory named FTYIT. Additionally, rename the file to Fourth.txt.
Finally remove the folder named TYIT.
List the permissions for Fourth.txt
Also list the hidden files in your home directory
Make a hidden file named secrets.txt
Start the gedit app in the background from the terminal.
Bring it to the foreground and suspend it.
Reactive it and then terminate it.
Start Firefox. List it’s process id. Terminate it using the kill command.
Make a file named A.txt in the home directory. This file can contain some text in it. Make a symbolic link on the desktop.Then make sure to check if a link is created. Try displaying the contents of the file by using the symbolic link.
Also list the inode numbers of the linked file and the original file.
Make a file named B.txt in the home directory. This file can contain some text in it. Make a hard link on the desktop. Then list out the number of links of that file. Also list the inode numbers of the linked file and the original file.
Install the following programs using apt:
Python Pip
Python Virtual Environments
ffmpeg
vscode
sqlite
chrome
Make sure to log the installations of the programs to a file named installer_log.txt
Write a basic shell script that:
Prints the current time.
Allows the user to create a folder within a specified directory.
Allows the user to generate multiple folders in a particular directory specified by the user.
Checks whether a file or folder exists based on the name provided by the user.
Allows the user to install an application easily.
Find out the number of words in the file excluding the numbers and punctation marks.
List all the numbers in the ascending order.
Find the top five words which are repeated in this file.
List all the single digit numbers from this document without repetitions
Separate the numbers and the words from the file. Remove the repetitions and store the numbers in a file called num.txt and the words in a file called words.txt.
Create three users with home directories: Bob, Sally and Larry
Set passwords for these users.
Create a group named coders and add these users to that group.
Create a file named prac6.txt
Handover the ownership of that file to the user named Larry and to the group named coders.
Set a sticky bit for the file named prac6.txt
Create a folder named prac6
By using an access control list, give Sally and Larry access to the folder named prac5
Act as Sally and create a file within that folder.
Act as Bob and create a file within that folder.
Write a shell script which does the following with a GUI interface
Create new files
Delete files
View files
Data Entry of basic employee info
Create an Ubuntu Server virtual machine using the virtual machine manager in Linux with the following configuration:
One 20 GB Boot Disk
Four 80 GB Disks
NAT Network
Next, follow these steps:
Now try to delete one 80gb disk to see if the system will boot.