Launching A Virtual Machine
Launching A Virtual Machine
Type 📒 Lecture
Date @December 22, 2021
Lecture # 1
Week # 1
Requirements
An .iso image of the operating system we want
A Hypervisor
Source: https://www.vmware.com/topics/glossary/content/hypervisor.html
Oracle VirtualBox
Steps
Download the Ubuntu .iso file from https://ubuntu.com/download/desktop
Install them
Adjust the RAM and Storage as per your liking, make sure to keep the minimum specs
Uhh it’s just Next, Next, Next .... Next ... Restart
When you install it correctly and get it up and running, you might see something like this ...
Lecture # 2
Week # 1
Terminal in Ubuntu
clear
pwd
By default, you are placed in the home directory of the currently logged in user
ls
ps
uname
exit
Or you can also press Ctrl + D to exit out of the terminal session
like, ls -al
man <command-name>
For example
man ls
Filesystem in Linux
To change directory
cd <location>
Examples
cd without any arguments will take us to the home directory of the currently logged in user
/usr hierarchy
/usr/bin → User commands
/usr/lib → Libraries
/var hierarchy
/var/cache → Application cache data
Lecture # 3
Week # 1
Typical output of ls -l
File types
- → Regular file
d → Directory
l → Symbolic link
c → Character file
b → Block file
s → Socket file
p → Named pipe
Permission string
mkdir <folder-name>
chmod g-w <folder-name> to remove the write permission from the group
Similarly, chmod g-x <folder-name> to remove the execute permission from the group
To add permission, chmod g+w <folder-name> to give write permission to the group
u → User
g → Group
o → Others
- → To remove permission
+ → To add permission
r → Read
w → Write
x → Execute
touch command
Used to modify the timestamp of a file or folder
cp command
mv command
mv <file-name> <new-path> to move a file to a new path
rm command
rm <file-name> to remove a file
Alias
We can also set an alias for long commands, for example ...
whoami
less <file-name>
file <file-name>
Some commands
chmod → Change permissions of a file
mv → Rename/Move a file
rm → Remove a file