By default, the du utility shall write to standard output the size of the file space allocated to, and the size of the file space allocated to each subdirectory of, the file hierarchy rooted in each of the specified files. By default, when a symbolic link is encountered on the command line or in the file hierarchy, du shall count the size of the symbolic link (rather than the file referenced by the link), and shall not follow the link to another portion of the file hierarchy.
How did I accomplish my task?
Log in my Github account, go to https://github.com/filerjs/filer, click the “fork” button on the top right of the page to fork this project to my account. Now I have the most up-to-date copy this project.
Clone the project to my computer:
git clone email@example.com:GaryDeng/filer.git
Set up my develop environment:
Read through all the documentation and try to understand the project, play around with the source code, and run the test.
Research, research, and research, if you are lucky enough, you would be able to find similar solution to solve your problem. At least, you could be inspired by other programmers’ approach to solve identical problem. I am lucky enough to find a very similar implementation in the same project. The “ls” command in this project is exactly what I need.
Create a new branch, start to write test cases and implement it
Finally, commit my codes and push to my Github account, and send pull request against my professor’s Github reopsitory.