Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kunal-kushwaha committed Feb 9, 2022
2 parents 5d7ca27 + 39cadc5 commit 37e2c87
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 8 deletions.
17 changes: 17 additions & 0 deletions Linux and Terminal commands/Commands For Windows.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
| ZSH Commands | PowerShell Commmands |
| --- | --- |
| where | where.exe |
| open | Use Shortcut- Win + R|
| $PATH | $Env:Path |
| ls -a </br> [To see all files[hidden and visible]] | dir -Force |
| vi | vim </br> [need to download] |
| ls -l </br> [To see all files & directories] | Get-ChildItem |
| cat > </br> [To edit] | vim |
| cat file.txt two.txt > total.txt | cat file.txt, two.txt > total.txt |
| cat file.txt | tr a-z A-Z > upper.txt | (cat 'file.txt').ToUpper() > upper.txt |
| \ </br> [For new line] | ` |
| mkdir random </br> mkdir random/hello </br> [we need to create random first here] | mkdir random/hello </br> [only one line to execute, no need to create random first, it can be created together] |
| touch | [you need to define touch] </br> function touch { </br> Param( </br> [Parameter(Mandatory=$true)] </br> [string]$Path </br> ) </br> if (Test-Path -LiteralPath $Path) { </br> (Get-Item -Path $Path).LastWriteTime = Get-Date </br> } </br> else { </br> New-Item -Type File -Path $Path </br> } </br> } |
| sudo | runas |
| df | gdr |
| du | [need to define du] </br> function du($path=".") { </br> Get-ChildItem $path \| </br> ForEach-Object { </br> $file = $_ </br> Get-ChildItem -File -Recurse $_.FullName \| Measure-Object -Property length -Sum \| </br> Select-Object -Property @{Name="Name";Expression={$file}}, </br> @{Name="Size(MB)";Expression={[math]::round(($_.Sum / 1MB),2)}} # round 2 decimal places </br> } </br>} |
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,14 @@
<a href="https://www.linkedin.com/in/kunal-kushwaha/">
<img width="30px" src="https://www.vectorlogo.zone/logos/linkedin/linkedin-icon.svg" />
</a>&ensp;
<a href="https://www.youtube.com/channel/UCBGOUQHNNtNGcGzVq5rIXjw">
<img width="30px" src="https://i.pinimg.com/originals/46/02/cb/4602cbc18967da9c1eba7452905cd99b.png" />
</a>&ensp;
<a href="https://www.instagram.com/kunalsig/">
<img width="30px" src="https://www.vectorlogo.zone/logos/instagram/instagram-icon.svg" />
</a>&ensp;
<a href="https://kunalkushwaha.com">
<img width="30px" src="https://cdn.hashnode.com/res/hashnode/image/upload/v1611902473383/CDyAuTy75.png?auto=compress" />
</a>

## Join Community Classroom Groups
Expand All @@ -37,7 +43,11 @@
</a>&ensp;
<a href="https://www.instagram.com/commclassroom/">
<img width="30px" src="https://www.vectorlogo.zone/logos/instagram/instagram-icon.svg" />

</a>&ensp;
<a href="https://www.youtube.com/channel/UCwY7chGINzoVuEB3mWOi_zw">
<img width="30px" src="https://i.pinimg.com/originals/46/02/cb/4602cbc18967da9c1eba7452905cd99b.png" />
</a>

## Thanks to all the contributors ❤️
<a href = "https://github.com/kunal-kushwaha/DevOps-Bootcamp/graphs/contributors">
<img src = "https://contrib.rocks/image?repo=kunal-kushwaha/DevOps-Bootcamp"/>
Expand Down
Binary file added YAML/Complete YAML Course Handwritten Notes.pdf
Binary file not shown.
14 changes: 7 additions & 7 deletions YAML/datatypes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ myself: Kunal Kushwaha
fruit: "apple"
job: 'swe'

bio: |
hey my name is kunal kushwaha.
i am a very nice dude.
bio: |
hey my name is kunal kushwaha.
i am a very nice dude.
# write a single line in multiple lines
message: >
this will
all be
in one single line
this will
all be
in one single line.
# same as
message: !!str this will all be in one single line
Expand All @@ -30,7 +30,7 @@ octalNum: !!int 06574
hexa: !!int 0x45
commaValue: !!int +540_000 # 540,000
exponential numbers: 6.023E56

---
# floating point numbers
marks: !!float 56.89
infinite: !!float .inf
Expand Down

0 comments on commit 37e2c87

Please sign in to comment.