Linux
LINUX Installation
Download Ubuntu LTS
1. First install Virtual Box
Virtualbox installing just go with the flow
Click next next and ignore the network interference warnings.
Give permission and install the drivers and all
- Click on start and open Virtual Box.
- Click on machine
- Give name
- Ubuntu 64 - version (depends on bit)
- Create
- Memory size allocation
- Recommended 3.5 Gb of space.
- Virtual harddisk (10Gb of Hard disk)
- Next next next and create the machine
- Click on start
- Now we have to download Ubuntu
- Download and instal Ubuntu
- Click on install ubuntu and follow the steps of next next next
_________________________________________________________________________
USING LINUX
Click on Activities and write terminal or use the shortcut - cltrl + alt + T
Terminal programming / shell scripting
Ubuntu - Linux’s distribution
Unix - Unix foundation of Linux
MacOS is also unix based
Cli - Command Line Interface
Gui - Graphical user interface
Task manager
Ls command - It shows the name of files and folders in which you are currently in.
Ls -a - It show hidden files and folders of the directory
Pwd - print working directory - to get the absolute path of the directory which you are working
on.
It shows which directory that you are working on.
Cd- change directory
Cd bin
Will get you in the bin folder
Cd..
Will work as a back button of the directory
Mkdir
Mkdir harry - will create a new directory name - harry
Touch - creates a blank file
Touch [Link] example
Mv - mv [Link] this/
Move [Link] to this folder
Man and then command name
It will show you how the command works
Ex man cp
Clear command
To clear the text from command line.
Cp command
To copy file from one place to another
Cp filename Destination directory and /
Cat command
Concatenate 2 files in one
Ex: cat [Link] [Link] > [Link]
Tac [Link]
Sudo command
Require administrative or root permissions.