210050026-git

Name Roll Number
Atishay Jain 210050026

About this Repository

This is repository is a part of an Inlab Assignment of SSL course - CS251. The assignment was about learning Bash and Version Control using Git/Github. The Hash Function is used for implementing a dictionary type Data Structure which maps its keys to their respective values. A Hash Function maps the input (which may be a string, integer, float or any other data type) to a certain integer which is then used as its key for dictionary. This kind of Hashing gives more secure, adjustable and quicker method of fetching data. The enhanced Hash function used here is - $$h(s) = \sum_{i=1}^n s[i-1]p^i$$ And then took final key as h(s) % m.

Instructions to run code

The Bash script file (test.sh) has all the compilation commands required to run the code.So, you have to just run test.sh script. Type the following command to compile and run the code - ./test.sh <arguement> Pass the string that you want to give as input in the

My Solution to Q1

  • Q1 -
    1. alias sizeOfFiles = "du -ah"
    2. alias numberOfFiles = "find . | wc -l"

References

https://krishnaiitd.github.io/gitcommands/git-clone/

https://docs.oracle.com/cd/E36784_01/html/E36834/sysresdiskuse-3.html#:~:text=Using%20the%20ls%20Command,-The%20ls%20commands&text=%E2%80%93l%20%E2%80%93%20displays%20a%20list%20of,shows%20the%20sizes%20in%20blocks.

https://gist.github.com/octocat/9257657

https://git-scm.com/book/en/v2/Git-Basics-Getting-a-Git-Repository