Command line way of working
- Refer the cheatsheets
- understand basic commandline
<command/executable> <arguments>
ping google.com
command => ping
google.com => argument
ping directdevops.blog
ping -n 10 directdevops.blog
command => ping
arguments => -n 10 directdevops.blog
- Any application has two types of arguments
- positional arguments
- keyword arguments
position arguments
- Example
cp <src> <dest>
* In the above case passing arguments was necessary & along with that maintaining position was also criticial
* Generally position arguments are passed directly
Keyword arguments
- Example:
ping -n 1 google.com
- Here -n stands for number of echo requests and 1 represents value
-n => name of the argument
1 => value of the argument
- Generally in most of linux commands. Named arguments will be in the following form
-<singlecharacter>
--<word>
cp --recursive
cp -r
- To learn any command
- linux comes with inbuild manual
man cp
orcp --help
- Windows Powershell commands
Get-Help <command>
Get-Help <command> -Online
- linux comes with inbuild manual
Install some softwares
- Windows:
- 10: Terminal
- Git:
- Install manually in windows
- Mac:
brew install git
- Visual Studio Code:
- Windows:
choco install vscode -y
- Mac:
brew install --cask visual-studio-code
- Windows:
Exercise: Watch the video to install softwares on your laptop
- Refer Here for the video